coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lcd_panel.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <drivers/i2c/ptn3460/ptn3460.h>
#include <hwilib.h>
#include <types.h>
Include dependency graph for lcd_panel.c:

Go to the source code of this file.

Functions

enum cb_err mb_get_edid (uint8_t edid_data[0x80])
 This function provides EDID data to the driver for DP2LVDS Bridge (PTN3460) More...
 
uint8_t mb_select_edid_table (void)
 This function provides EDID block [0..6] to the driver for DP2LVDS Bridge (PTN3460) which has to be used. More...
 
int mb_adjust_cfg (struct ptn_3460_config *cfg)
 Function to enable mainboard to adjust the config data of PTN3460. More...
 

Function Documentation

◆ mb_adjust_cfg()

int mb_adjust_cfg ( struct ptn_3460_config cfg)

Function to enable mainboard to adjust the config data of PTN3460.

Parameters
*cfg_ptrPointer to the PTN config structure to modify.
Returns
-1 on error; PTN_CFG_MODIFIED if data was modified and needs to be updated.

Definition at line 41 of file lcd_panel.c.

References ptn_3460_config::backlight_ctrl, BIOS_ERR, CB_SUCCESS, ptn_3460_config::dp_interface_ctrl, ptn_3460_config::lvds_interface_ctrl1, ptn_3460_config::lvds_interface_ctrl2, ptn_3460_config::lvds_interface_ctrl3, printk, PTN_CFG_MODIFIED, ptn_3460_config::t12_timing, ptn_3460_config::t2_delay, ptn_3460_config::t3_timing, ptn_3460_config::t4_timing, and ptn_3460_config::t5_delay.

◆ mb_get_edid()

enum cb_err mb_get_edid ( uint8_t  edid_data[0x80])

This function provides EDID data to the driver for DP2LVDS Bridge (PTN3460)

Parameters
edid_datapointer to EDID data in driver

Definition at line 1 of file lcd_panel.c.

References BIOS_ERR, CB_ERR, CB_SUCCESS, printk, and PTN_EDID_LEN.

◆ mb_select_edid_table()

uint8_t mb_select_edid_table ( void  )

This function provides EDID block [0..6] to the driver for DP2LVDS Bridge (PTN3460) which has to be used.

Definition at line 32 of file lcd_panel.c.