1251018Sgonzo/*-
2251018Sgonzo * Copyright (c) 2013 Oleksandr Tymoshenko <gonzo@freebsd.org>
3251018Sgonzo * All rights reserved.
4251018Sgonzo *
5251018Sgonzo * Redistribution and use in source and binary forms, with or without
6251018Sgonzo * modification, are permitted provided that the following conditions
7251018Sgonzo * are met:
8251018Sgonzo * 1. Redistributions of source code must retain the above copyright
9251018Sgonzo *    notice, this list of conditions and the following disclaimer.
10251018Sgonzo * 2. Redistributions in binary form must reproduce the above copyright
11251018Sgonzo *    notice, this list of conditions and the following disclaimer in the
12251018Sgonzo *    documentation and/or other materials provided with the distribution.
13251018Sgonzo *
14251018Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15251018Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16251018Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17251018Sgonzo * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18251018Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19251018Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20251018Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21251018Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22251018Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23251018Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24251018Sgonzo * SUCH DAMAGE.
25251018Sgonzo *
26251018Sgonzo * $FreeBSD$
27251018Sgonzo */
28251018Sgonzo#ifndef __AM335X_LCD_H__
29251018Sgonzo#define __AM335X_LCD_H__
30251018Sgonzo
31251018Sgonzostruct panel_info {
32251018Sgonzo	uint32_t panel_width;
33251018Sgonzo	uint32_t panel_height;
34251018Sgonzo	uint32_t panel_hfp;
35251018Sgonzo	uint32_t panel_hbp;
36251018Sgonzo	uint32_t panel_hsw;
37251018Sgonzo	uint32_t panel_vfp;
38251018Sgonzo	uint32_t panel_vbp;
39251018Sgonzo	uint32_t panel_vsw;
40251018Sgonzo	uint32_t ac_bias;
41251018Sgonzo	uint32_t ac_bias_intrpt;
42251018Sgonzo	uint32_t dma_burst_sz;
43251018Sgonzo	uint32_t bpp;
44251018Sgonzo	uint32_t fdd;
45251018Sgonzo	uint32_t invert_line_clock;
46251018Sgonzo	uint32_t invert_frm_clock;
47251018Sgonzo	uint32_t sync_edge;
48251018Sgonzo	uint32_t sync_ctrl;
49251018Sgonzo	uint32_t panel_pxl_clk;
50251018Sgonzo	uint32_t panel_invert_pxl_clk;
51251018Sgonzo};
52251018Sgonzo
53251018Sgonzoint am335x_lcd_syscons_setup(vm_offset_t vaddr, vm_paddr_t paddr,
54251018Sgonzo    struct panel_info *panel);
55251018Sgonzo
56251018Sgonzo#endif /* __AM335X_LCD_H__ */
57