coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ps8640.c File Reference
#include <delay.h>
#include <device/i2c_simple.h>
#include <edid.h>
#include <console/console.h>
#include <timer.h>
#include <dp_aux.h>
#include "ps8640.h"
Include dependency graph for ps8640.c:

Go to the source code of this file.

Functions

int ps8640_get_edid (uint8_t bus, uint8_t chip, struct edid *out)
 
int ps8640_init (uint8_t bus, uint8_t chip)
 
static enum cb_err ps8640_bridge_aux_request (uint8_t bus, uint8_t chip, unsigned int target_reg, unsigned int total_size, enum aux_request request, uint8_t *data)
 
void ps8640_backlight_enable (uint8_t bus, uint8_t chip)
 

Function Documentation

◆ ps8640_backlight_enable()

void ps8640_backlight_enable ( uint8_t  bus,
uint8_t  chip 
)

◆ ps8640_bridge_aux_request()

static enum cb_err ps8640_bridge_aux_request ( uint8_t  bus,
uint8_t  chip,
unsigned int  target_reg,
unsigned int  total_size,
enum aux_request  request,
uint8_t data 
)
static

Definition at line 45 of file ps8640.c.

References BIOS_INFO, chip, i2c_readb(), i2c_write_field(), i2c_writeb(), MCS_EN_MASK, MCS_EN_SHIFT, mdelay(), PAGE2_GPIO_H, PAGE2_MCS_EN, PAGE3_SET_ADD, PAGE3_SET_VAL, printk, PS_GPIO9, stopwatch_expired(), stopwatch_init_msecs_expire(), VDO_CTL_ADD, VDO_DIS, and VDO_EN.

Referenced by ps8640_backlight_enable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ps8640_get_edid()

int ps8640_get_edid ( uint8_t  bus,
uint8_t  chip,
struct edid out 
)

Definition at line 11 of file ps8640.c.

References BIOS_INFO, chip, decode_edid(), EDID_CONFORMANT, EDID_EXTENSION_FLAG, EDID_I2C_ADDR, EDID_LENGTH, I2C_BYPASS_EN, i2c_read_bytes(), i2c_writeb(), PAGE2_I2C_BYPASS, and printk.

Referenced by bridge_ps8640_get_edid(), display_startup(), get_panel_description(), and read_edid_from_ps8640().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ps8640_init()

int ps8640_init ( uint8_t  bus,
uint8_t  chip 
)

Definition at line 45 of file ps8640.c.

Referenced by bridge_ps8640_get_edid(), display_startup(), get_panel_description(), and read_edid_from_ps8640().

Here is the caller graph for this function: