coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
display.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOC_NVIDIA_TEGRA210_INCLUDE_SOC_DISPLAY_H__
4 #define __SOC_NVIDIA_TEGRA210_INCLUDE_SOC_DISPLAY_H__
5 
6 #define COLOR_WHITE 0xFFFFFF
7 #define COLOR_BLACK 0x000000
8 
9 #define hsync_start(mode) \
10  (mode->xres + mode->hfront_porch)
11 
12 #define hsync_end(mode) \
13  (mode->xres + mode->hfront_porch + mode->hsync_width)
14 
15 #define htotal(mode) \
16  (mode->xres + mode->hfront_porch + \
17  mode->hsync_width + mode->hback_porch)
18 
19 #define vtotal(mode) \
20  (mode->yres + mode->vfront_porch + \
21  mode->vsync_width + mode->vback_porch)
22 
23 enum {
24  /* norrin64 */
26 };
27 
28 /* refresh rate = 60/s */
29 #define FRAME_IN_MS 17
30 
31 /* forward declaration */
33 struct display_controller;
34 
35 void dsi_display_startup(struct device *dev);
36 void dp_display_startup(struct device *dev);
37 
38 int tegra_dc_init(struct display_controller *disp_ctrl);
39 int update_display_mode(struct display_controller *disp_ctrl,
43  u32 shift_clock_div);
46 #endif /* __SOC_NVIDIA_TEGRA210_INCLUDE_SOC_DISPLAY_H__ */
enum board_config config
Definition: memory.c:448
int tegra_dc_init(struct display_controller *disp_ctrl)
Definition: dc.c:173
void pass_mode_info_to_payload(struct soc_nvidia_tegra210_config *config)
Definition: dc.c:212
@ TEGRA_EDID_I2C_ADDRESS
Definition: display.h:25
void update_window(const struct soc_nvidia_tegra210_config *config)
Definition: dc.c:130
void update_display_shift_clock_divider(struct display_controller *disp_ctrl, u32 shift_clock_div)
Definition: dc.c:113
int update_display_mode(struct display_controller *disp_ctrl, struct soc_nvidia_tegra210_config *config)
Definition: dc.c:66
void dsi_display_startup(struct device *dev)
Definition: dsi.c:952
void dp_display_startup(struct device *dev)
Definition: dp.c:1561
uint32_t u32
Definition: stdint.h:51
Definition: device.h:107