| 1 |
|
| 2 |
|
| 3 |
#include <bootblock_common.h> |
| 4 |
#include <device/pnp_type.h> |
| 5 |
|
| 6 |
#include <superio/nuvoton/common/nuvoton.h> |
| 7 |
#include <superio/nuvoton/nct6779d/nct6779d.h> |
| 8 |
|
| 9 |
#include <option.h> |
| 10 |
|
| 11 |
#include <northbridge/intel/sandybridge/raminit.h> |
| 12 |
#include <northbridge/intel/sandybridge/pei_data.h> |
| 13 |
|
| 14 |
#define SERIAL_DEV PNP_DEV(CONFIG_SUPERIO_PNP_BASE, NCT6779D_SP2) |
| 15 |
|
| 16 |
void bootblock_mainboard_early_init(void) |
| 17 |
{ |
| 18 |
nuvoton_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); |
| 19 |
} |
| 20 |
|
| 21 |
void mainboard_fill_pei_data(struct pei_data *pei_data) |
| 22 |
{ |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
pei_data->usb3.mode = get_uint_option("usb3_mode", 1) & 0x3; |
| 32 |
|
| 33 |
pei_data->usb3.preboot_support = get_uint_option("usb3_drv", 1) & 0x1; |
| 34 |
|
| 35 |
pei_data->usb3.xhci_streams = get_uint_option("usb3_streams", 1) & 0x1; |
| 36 |
} |