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_TEGRA210_CHIP_H__
4 #define __SOC_NVIDIA_TEGRA210_CHIP_H__
5 #include <soc/addressmap.h>
6 #include <stdint.h>
7 #include <soc/nvidia/tegra/dc.h>
8 
10  /*
11  * panel resolution
12  * The two parameters below provides dc about panel spec.
13  */
14  u32 xres; /* the width of H display active area */
15  u32 yres; /* the height of V display active area */
17  u32 color_depth; /* color format */
18 
19  u64 display_controller; /* dc block base address */
21 
22  /*
23  * Technically, we can compute this. At the same time, some platforms
24  * might want to specify a specific size for their own reasons. If it
25  * is zero the soc code will compute it as
26  * xres*yres*framebuffer_bits_per_pixel/8
27  */
29 
30  /*
31  * Framebuffer resolution
32  * The two parameters below provides dc about framebuffer's sdram size.
33  * When they are not the same as panel resolution, we need to program
34  * dc's DDA_INCREMENT and some other registers to resize dc output.
35  */
38 
39  int href_to_sync; /* HSYNC position with respect to line start */
40  int hsync_width; /* the width of HSYNC pulses */
41  int hback_porch; /* the distance between HSYNC trailing edge to
42  beginning of H display active area */
43  int hfront_porch; /* the distance between end of H display active
44  area to the leading edge of HSYNC */
49  int refresh; /* display refresh rate */
50 
51  int pixel_clock; /* dc pixel clock source rate */
52 
54 
55  /* dp specific fields */
56  struct {
57  /* pwm to use to set display contrast */
58  int pwm;
59 
60  /* HPD related timing */
65 
66  /* The minimum link configuration settings */
73  } dp;
74 
75  int win_opt;
76  void *dc_data;
77 };
78 
79 #endif /* __SOC_NVIDIA_TEGRA210_CHIP_H__ */
uint64_t u64
Definition: stdint.h:54
uint32_t u32
Definition: stdint.h:51
u32 framebuffer_bits_per_pixel
Definition: chip.h:16
struct soc_nvidia_tegra210_config::@1287 dp