]> Git Repo - u-boot.git/blame - drivers/video/am335x-fb.h
Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[u-boot.git] / drivers / video / am335x-fb.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
3c5fabd1 2/*
e880a5e2
HS
3 * Copyright (C) 2013-2018 Hannes Schmelzer <[email protected]> -
4 * B&R Industrial Automation GmbH - http://www.br-automation.com
3c5fabd1
HP
5 */
6
7#ifndef AM335X_FB_H
8#define AM335X_FB_H
9
96b109ba
DB
10#if !CONFIG_IS_ENABLED(DM_VIDEO)
11
a2f47064 12#define HSVS_CONTROL BIT(25) /*
3c5fabd1
HP
13 * 0 = lcd_lp and lcd_fp are driven on
14 * opposite edges of pixel clock than
15 * the lcd_pixel_o
16 * 1 = lcd_lp and lcd_fp are driven
17 * according to bit 24 Note that this
18 * bit MUST be set to '0' for Passive
19 * Matrix displays the edge timing is
20 * fixed
21 */
a2f47064 22#define HSVS_RISEFALL BIT(24) /*
3c5fabd1
HP
23 * 0 = lcd_lp and lcd_fp are driven on
24 * the rising edge of pixel clock (bit
25 * 25 must be set to 1)
26 * 1 = lcd_lp and lcd_fp are driven on
27 * the falling edge of pixel clock (bit
28 * 25 must be set to 1)
29 */
a2f47064 30#define DE_INVERT BIT(23) /*
3c5fabd1
HP
31 * 0 = DE is low-active
32 * 1 = DE is high-active
33 */
a2f47064 34#define PXCLK_INVERT BIT(22) /*
3c5fabd1
HP
35 * 0 = pix-clk is high-active
36 * 1 = pic-clk is low-active
37 */
a2f47064 38#define HSYNC_INVERT BIT(21) /*
3c5fabd1
HP
39 * 0 = HSYNC is active high
40 * 1 = HSYNC is avtive low
41 */
a2f47064 42#define VSYNC_INVERT BIT(20) /*
3c5fabd1
HP
43 * 0 = VSYNC is active high
44 * 1 = VSYNC is active low
45 */
46
47struct am335x_lcdpanel {
48 unsigned int hactive; /* Horizontal active area */
49 unsigned int vactive; /* Vertical active area */
50 unsigned int bpp; /* bits per pixel */
51 unsigned int hfp; /* Horizontal front porch */
52 unsigned int hbp; /* Horizontal back porch */
53 unsigned int hsw; /* Horizontal Sync Pulse Width */
54 unsigned int vfp; /* Vertical front porch */
55 unsigned int vbp; /* Vertical back porch */
56 unsigned int vsw; /* Vertical Sync Pulse Width */
8a094f50 57 unsigned int pxl_clk; /* Pixel clock */
3c5fabd1 58 unsigned int pol; /* polarity of sync, clock signals */
3b4e16eb
HP
59 unsigned int pup_delay; /*
60 * time in ms after power on to
61 * initialization of lcd-controller
62 * (VCC ramp up time)
63 */
3c5fabd1 64 unsigned int pon_delay; /*
3b4e16eb
HP
65 * time in ms after initialization of
66 * lcd-controller (pic stabilization)
3c5fabd1
HP
67 */
68 void (*panel_power_ctrl)(int); /* fp for power on/off display */
69};
70
71int am335xfb_init(struct am335x_lcdpanel *panel);
72
96b109ba
DB
73#endif /* CONFIG_DM_VIDEO */
74
3c5fabd1 75#endif /* AM335X_FB_H */
This page took 0.239547 seconds and 4 git commands to generate.