coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dc.c File Reference
#include <console/console.h>
#include <device/mmio.h>
#include <stdint.h>
#include <device/device.h>
#include <soc/nvidia/tegra/dc.h>
#include <soc/display.h>
#include <framebuffer_info.h>
#include "chip.h"
Include dependency graph for dc.c:

Go to the source code of this file.

Functions

unsigned long READL (void *p)
 
void WRITEL (unsigned long value, void *p)
 
static int tegra_calc_refresh (const struct soc_nvidia_tegra210_config *config)
 
static void print_mode (const struct soc_nvidia_tegra210_config *config)
 
int update_display_mode (struct display_controller *disp_ctrl, struct soc_nvidia_tegra210_config *config)
 
void update_display_shift_clock_divider (struct display_controller *disp_ctrl, u32 shift_clock_div)
 
void update_window (const struct soc_nvidia_tegra210_config *config)
 
int tegra_dc_init (struct display_controller *disp_ctrl)
 
void pass_mode_info_to_payload (struct soc_nvidia_tegra210_config *config)
 

Variables

int dump = 0
 

Function Documentation

◆ pass_mode_info_to_payload()

void pass_mode_info_to_payload ( struct soc_nvidia_tegra210_config config)

Definition at line 212 of file dc.c.

References ALIGN_UP, config, DIV_ROUND_UP, and fb_add_framebuffer_info().

Referenced by dp_display_startup(), and dsi_display_startup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_mode()

static void print_mode ( const struct soc_nvidia_tegra210_config config)
static

Definition at line 54 of file dc.c.

References BIOS_ERR, config, printk, refresh, and tegra_calc_refresh().

Referenced by update_display_mode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ READL()

unsigned long READL ( void p)

◆ tegra_calc_refresh()

static int tegra_calc_refresh ( const struct soc_nvidia_tegra210_config config)
static

Definition at line 39 of file dc.c.

References config, htotal, refresh, and vtotal.

Referenced by print_mode().

Here is the caller graph for this function:

◆ tegra_dc_init()

◆ update_display_mode()

◆ update_display_shift_clock_divider()

void update_display_shift_clock_divider ( struct display_controller disp_ctrl,
u32  shift_clock_div 
)

Definition at line 113 of file dc.c.

References BIOS_DEBUG, display_controller::disp, dc_disp_reg::disp_clk_ctrl, PIXEL_CLK_DIVIDER_PCD1, PIXEL_CLK_DIVIDER_SHIFT, printk, SHIFT_CLK_DIVIDER_SHIFT, and WRITEL().

Referenced by tegra_output_dsi_setup_clock(), and update_display_mode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_window()

◆ WRITEL()

Variable Documentation

◆ dump

int dump = 0

Definition at line 13 of file dc.c.

Referenced by READL(), and WRITEL().