8 #include <soc/pci_devs.h>
37 const char *hwi_block =
"hwinfo.hex";
39 if (hwilib_find_blocks(hwi_block) !=
CB_SUCCESS) {
40 printk(
BIOS_ERR,
"LCD: Info block \"%s\" not found!\n", hwi_block);
48 printk(
BIOS_ERR,
"LCD: No EDID data available in %s\n", hwi_block);
68 const char *hwi_block =
"hwinfo.hex";
71 if (hwilib_find_blocks(hwi_block) !=
CB_SUCCESS) {
72 printk(
BIOS_ERR,
"LCD: Info block \"%s\" not found!\n", hwi_block);
76 if (hwilib_get_field(PF_DisplCon, &disp_con,
sizeof(disp_con)) !=
sizeof(disp_con)) {
77 printk(
BIOS_ERR,
"LCD: Missing panel features from %s\n", hwi_block);
82 printk(
BIOS_ERR,
"LCD: Missing panel features from %s\n", hwi_block);
89 if (disp_con == PF_DISPLCON_LVDS_DUAL) {
cb_err
coreboot error codes
@ CB_ERR
Generic error code.
@ CB_SUCCESS
Call completed successfully.
#define printk(level,...)
DEVTREE_CONST struct device * pcidev_path_on_root(pci_devfn_t devfn)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
static __always_inline void pci_write_config16(const struct device *dev, u16 reg, u16 val)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
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 u...
int mb_adjust_cfg(struct ptn_3460_config *cfg)
Function to enable mainboard to adjust the config data of PTN3460.
enum cb_err mb_get_edid(uint8_t edid_data[0x80])
This function provides EDID data to the driver for DP2LVDS Bridge (PTN3460)
static void igd_disable(void)