coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ptn3460.h File Reference
#include <types.h>
Include dependency graph for ptn3460.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ptn_3460_config
 
struct  ptn_3460_flash
 

Macros

#define PTN_EDID_OFF   0x00
 
#define PTN_EDID_LEN   0x80
 
#define PTN_CONFIG_OFF   0x80
 
#define PTN_CONFIG_LEN   0x19
 
#define PTN_FLASH_CFG_OFF   0xE8
 
#define PTN_FLASH_CFG_LEN   0x04
 
#define PTN_MAX_EDID_NUM   6
 
#define PTN_ENABLE_EMULATION   (1 << 0)
 
#define PTN_SUCCESS   0x00000000
 
#define PTN_CFG_MODIFIED   0x00000001
 
#define PTN_BUS_ERROR   0x10000000
 
#define PTN_INVALID_EDID   0x20000000
 
#define PTN_INVALID_EDID_BLOCK   0x30000000
 
#define PTN_ERROR   0x40000000
 

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_ptr)
 Function to enable mainboard to adjust the config data of PTN3460. More...
 

Variables

struct ptn_3460_config __packed
 

Macro Definition Documentation

◆ PTN_BUS_ERROR

#define PTN_BUS_ERROR   0x10000000

Definition at line 20 of file ptn3460.h.

◆ PTN_CFG_MODIFIED

#define PTN_CFG_MODIFIED   0x00000001

Definition at line 19 of file ptn3460.h.

◆ PTN_CONFIG_LEN

#define PTN_CONFIG_LEN   0x19

Definition at line 11 of file ptn3460.h.

◆ PTN_CONFIG_OFF

#define PTN_CONFIG_OFF   0x80

Definition at line 10 of file ptn3460.h.

◆ PTN_EDID_LEN

#define PTN_EDID_LEN   0x80

Definition at line 9 of file ptn3460.h.

◆ PTN_EDID_OFF

#define PTN_EDID_OFF   0x00

Definition at line 8 of file ptn3460.h.

◆ PTN_ENABLE_EMULATION

#define PTN_ENABLE_EMULATION   (1 << 0)

Definition at line 15 of file ptn3460.h.

◆ PTN_ERROR

#define PTN_ERROR   0x40000000

Definition at line 23 of file ptn3460.h.

◆ PTN_FLASH_CFG_LEN

#define PTN_FLASH_CFG_LEN   0x04

Definition at line 13 of file ptn3460.h.

◆ PTN_FLASH_CFG_OFF

#define PTN_FLASH_CFG_OFF   0xE8

Definition at line 12 of file ptn3460.h.

◆ PTN_INVALID_EDID

#define PTN_INVALID_EDID   0x20000000

Definition at line 21 of file ptn3460.h.

◆ PTN_INVALID_EDID_BLOCK

#define PTN_INVALID_EDID_BLOCK   0x30000000

Definition at line 22 of file ptn3460.h.

◆ PTN_MAX_EDID_NUM

#define PTN_MAX_EDID_NUM   6

Definition at line 14 of file ptn3460.h.

◆ PTN_SUCCESS

#define PTN_SUCCESS   0x00000000

Definition at line 18 of file ptn3460.h.

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 122 of file ptn3460.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.

Referenced by ptn3460_init().

Here is the caller graph for this function:

◆ 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 114 of file ptn3460.c.

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

Referenced by ptn3460_init().

Here is the caller graph for this function:

◆ 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 118 of file ptn3460.c.

Referenced by ptn3460_init().

Here is the caller graph for this function:

Variable Documentation

◆ __packed