coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOC_NVIDIA_TEGRA124_CHIP_H__
4 #define __SOC_NVIDIA_TEGRA124_CHIP_H__
5 
6 #include <gpio.h>
7 #include <soc/addressmap.h>
8 
9 #define EFAULT 1
10 #define EINVAL 2
11 
12 /* this is a misuse of the device tree. We're going to let it go for now but
13  * we should at minimum have a struct for the display controller, since
14  * the chip supports two.
15  */
22  /* there are two. It's not unimaginable that we might someday
23  * have two of these structs in a single mainboard.
24  */
27  /* Technically, we can compute this. At the same time, some platforms
28  * might want to specify a specific size for their own reasons. If it is
29  * zero the soc code will compute it as xres*yres*framebuffer_bits_per_pixel/4
30  */
32  /* GPIOs -- all, some, or none are used. Unused ones can be ignored
33  * in devicetree.cb since if they are not set there they default to 0,
34  * and 0 for a gpio means 'unused GPIO'.
35  */
40 
41  /* required info. */
42  /* pwm to use to set display contrast */
43  int pwm;
44  /* timings -- five numbers, all relative to the previous
45  * event, not to absolute time. e.g., vdd_data_delay is the
46  * delay from vdd on to data, not from power on to data.
47  * This is stated to be four timings in the
48  * u-boot docs. In any event, in coreboot, we generally
49  * only delay long enough to let the panel wake up and then
50  * do the control operations -- meaning, for *coreboot*
51  * we probably only need the vdd_delay, but payloads may
52  * need the other info.
53  */
54  /* Delay before from power on asserting vdd */
56 
57  /* Delay between pwm and backlight_en_gpio is asserted */
59 
60  /* Delay before HPD high */
62 
66 
75 
77 
78  /* The minimum link configuration settings */
85 
86  void *dc_data;
87 };
88 
89 #endif /* __SOC_NVIDIA_TEGRA124_CHIP_H__ */
uint32_t u32
Definition: stdint.h:51
u32 framebuffer_bits_per_pixel
Definition: chip.h:19
gpio_t backlight_vdd_gpio
Definition: chip.h:38
gpio_t lvds_shutdown_gpio
Definition: chip.h:37
gpio_t backlight_en_gpio
Definition: chip.h:36