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 <device/pci_ops.h>
#include <drivers/i2c/ptn3460/ptn3460.h>
#include <hwilib.h>
#include <soc/pci_devs.h>
#include <types.h>
Include dependency graph for lcd_panel.c:

Go to the source code of this file.

Functions

static void igd_disable (void)
 
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

◆ igd_disable()

static void igd_disable ( void  )
static

Definition at line 11 of file lcd_panel.c.

References pci_read_config16(), pci_read_config8(), pci_write_config16(), pci_write_config8(), pcidev_path_on_root(), and SA_DEVFN_ROOT.

Here is the call graph for this function:

◆ 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 66 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 11 of file lcd_panel.c.

◆ 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 57 of file lcd_panel.c.