![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#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"
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 |
_Static_assert | ( | CONFIG(BOARD_GOOGLE_KINGLER_COMMON)+CONFIG(BOARD_GOOGLE_KRABBY_COMMON) | = =1 , |
"Exactly one of KINGLER and KRABBY must be set" | |||
) |
Definition at line 105 of file display.c.
Referenced by configure_display().
Definition at line 86 of file display.c.
References anx7625_dp_get_edid(), anx7625_init(), BIOS_ERR, and printk.
Definition at line 99 of file display.c.
References anx7625_dp_start().
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().
Definition at line 52 of file display.c.
References BIOS_ERR, chip, printk, ps8640_get_edid(), and ps8640_init().
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().
int configure_display | ( | void | ) |
Definition at line 128 of file display.c.
References anx7625_bridge, edid::ascii_string, assert, backlight_control(), BIOS_ERR, BIOS_INFO, bridge, CONFIG, edid_set_framebuffer_bits_per_pixel(), fb_new_framebuffer_info_from_edid(), edid_mode::ha, I2C0, I2C_SPEED_FAST, edid::manufacturer_name, MIPI_DSI_FMT_RGB888, MIPI_DSI_MODE_EOT_PACKET, MIPI_DSI_MODE_LPM, MIPI_DSI_MODE_VIDEO, MIPI_DSI_MODE_VIDEO_SYNC_PULSE, edid::mode, mtcmos_display_power_on(), mtcmos_protect_display_bus(), mtk_ddp_init(), mtk_ddp_mode_set(), mtk_dsi_init(), mtk_i2c_bus_init(), name, NULL, printk, ps8640_bridge, edid_mode::refresh, and edid_mode::va.
|
static |
Definition at line 105 of file display.c.
Referenced by configure_display().
|
static |
Definition at line 105 of file display.c.
Referenced by configure_display().