coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
display.c File Reference
#include <assert.h>
#include <console/console.h>
#include <delay.h>
#include <drivers/analogix/anx7625/anx7625.h>
#include <drivers/parade/ps8640/ps8640.h>
#include <gpio.h>
#include <soc/ddp.h>
#include <soc/dsi.h>
#include <soc/gpio_common.h>
#include <soc/regulator.h>
#include <soc/i2c.h>
#include <soc/mtcmos.h>
#include "display.h"
Include dependency graph for display.c:

Go to the source code of this file.

Functions

static void bridge_ps8640_power_on (void)
 
static int bridge_ps8640_get_edid (u8 i2c_bus, struct edid *edid)
 
static int bridge_ps8640_post_power_on (u8 i2c_bus, struct edid *edid)
 
static void bridge_anx7625_power_on (void)
 
static int bridge_anx7625_get_edid (u8 i2c_bus, struct edid *edid)
 
static int bridge_anx7625_post_power_on (u8 i2c_bus, struct edid *edid)
 
static void backlight_control (void)
 
 _Static_assert (CONFIG(BOARD_GOOGLE_KINGLER_COMMON)+CONFIG(BOARD_GOOGLE_KRABBY_COMMON)==1, "Exactly one of KINGLER and KRABBY must be set")
 
int configure_display (void)
 

Variables

static const struct edp_bridge anx7625_bridge
 
static const struct edp_bridge ps8640_bridge
 

Function Documentation

◆ _Static_assert()

_Static_assert ( CONFIG(BOARD_GOOGLE_KINGLER_COMMON)+CONFIG(BOARD_GOOGLE_KRABBY_COMMON)  = =1,
"Exactly one of KINGLER and KRABBY must be set"   
)

◆ backlight_control()

static void backlight_control ( void  )
static

Definition at line 105 of file display.c.

Referenced by configure_display().

Here is the caller graph for this function:

◆ bridge_anx7625_get_edid()

static int bridge_anx7625_get_edid ( u8  i2c_bus,
struct edid edid 
)
static

Definition at line 86 of file display.c.

References anx7625_dp_get_edid(), anx7625_init(), BIOS_ERR, and printk.

Here is the call graph for this function:

◆ bridge_anx7625_post_power_on()

static int bridge_anx7625_post_power_on ( u8  i2c_bus,
struct edid edid 
)
static

Definition at line 99 of file display.c.

References anx7625_dp_start().

Here is the call graph for this function:

◆ bridge_anx7625_power_on()

static void bridge_anx7625_power_on ( void  )
static

Definition at line 73 of file display.c.

References GPIO_EDPBRDG_PWREN, GPIO_EDPBRDG_RST_L, GPIO_EN_PP1000_EDPBRDG, GPIO_EN_PP1800_EDPBRDG, GPIO_EN_PP3300_EDPBRDG, gpio_output(), and mdelay().

Here is the call graph for this function:

◆ bridge_ps8640_get_edid()

static int bridge_ps8640_get_edid ( u8  i2c_bus,
struct edid edid 
)
static

Definition at line 52 of file display.c.

References BIOS_ERR, chip, printk, ps8640_get_edid(), and ps8640_init().

Here is the call graph for this function:

◆ bridge_ps8640_post_power_on()

static int bridge_ps8640_post_power_on ( u8  i2c_bus,
struct edid edid 
)
static

Definition at line 67 of file display.c.

◆ bridge_ps8640_power_on()

static void bridge_ps8640_power_on ( void  )
static

Definition at line 20 of file display.c.

References GPIO_EDPBRDG_PWREN, GPIO_EDPBRDG_RST_L, gpio_output(), mainboard_set_regulator_vol(), mdelay(), MTK_REGULATOR_VCN33, MTK_REGULATOR_VRF12, and udelay().

Here is the call graph for this function:

◆ configure_display()

Variable Documentation

◆ anx7625_bridge

const struct edp_bridge anx7625_bridge
static
Initial value:
= {
.post_power_on = bridge_anx7625_post_power_on,
}
static int bridge_anx7625_get_edid(u8 i2c_bus, struct edid *edid)
Definition: display.c:86
static void bridge_anx7625_power_on(void)
Definition: display.c:73
static int bridge_anx7625_post_power_on(u8 i2c_bus, struct edid *edid)
Definition: display.c:99

Definition at line 105 of file display.c.

Referenced by configure_display().

◆ ps8640_bridge

const struct edp_bridge ps8640_bridge
static
Initial value:
= {
.post_power_on = bridge_ps8640_post_power_on,
}
static int bridge_ps8640_post_power_on(u8 i2c_bus, struct edid *edid)
Definition: display.c:67
static void bridge_ps8640_power_on(void)
Definition: display.c:20
static int bridge_ps8640_get_edid(u8 i2c_bus, struct edid *edid)
Definition: display.c:52

Definition at line 105 of file display.c.

Referenced by configure_display().