![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <bootblock_common.h>
#include <console/console.h>
#include <delay.h>
#include <gpio.h>
#include "include/ec.h"
#include "include/gpio.h"
Go to the source code of this file.
Macros | |
#define | ADC_3V_10BIT_GRANULARITY_MAX (3005 / 1023) |
#define | PCB_VER_AD 1 |
#define | MODEL_ID_AD 3 |
#define | DGPU_PRESENT GPP_A20 /* Active low */ |
#define | DGPU_HOLD_RST GPP_B4 /* Active low */ |
#define | DGPU_PWR_EN GPP_B21 /* Active low */ |
Functions | |
static void | board_detect (void) |
static void | dgpu_power_on (void) |
void | bootblock_mainboard_init (void) |
void | bootblock_mainboard_early_init (void) |
#define ADC_3V_10BIT_GRANULARITY_MAX (3005 / 1023) |
Definition at line 10 of file bootblock.c.
#define DGPU_HOLD_RST GPP_B4 /* Active low */ |
Definition at line 15 of file bootblock.c.
#define DGPU_PRESENT GPP_A20 /* Active low */ |
Definition at line 14 of file bootblock.c.
#define DGPU_PWR_EN GPP_B21 /* Active low */ |
Definition at line 16 of file bootblock.c.
#define MODEL_ID_AD 3 |
Definition at line 12 of file bootblock.c.
#define PCB_VER_AD 1 |
Definition at line 11 of file bootblock.c.
Definition at line 19 of file bootblock.c.
References ADC_3V_10BIT_GRANULARITY_MAX, BIOS_CRIT, BIOS_DEBUG, BIOS_ERR, MODEL_ID_AD, PCB_VER_AD, printk, and read_ec_adc_converter().
Referenced by bootblock_mainboard_init().
Definition at line 85 of file bootblock.c.
References mainboard_config_stage_gpios().
Definition at line 75 of file bootblock.c.
References board_detect(), and dgpu_power_on().
Definition at line 58 of file bootblock.c.
References BIOS_DEBUG, DGPU_HOLD_RST, DGPU_PRESENT, DGPU_PWR_EN, gpio_get(), gpio_set(), mdelay(), and printk.
Referenced by bootblock_mainboard_init().