| 1 |
|
| 2 |
|
| 3 |
#include <bootblock_common.h> |
| 4 |
#include <soc/gpio.h> |
| 5 |
#include "gpio.h" |
| 6 |
|
| 7 |
#include <superio/nuvoton/common/nuvoton.h> |
| 8 |
#include <superio/nuvoton/nct6776/nct6776.h> |
| 9 |
|
| 10 |
#define SERIAL_DEV PNP_DEV(0x2e, NCT6776_SP1) |
| 11 |
|
| 12 |
static void early_config_gpio(void) |
| 13 |
{ |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table)); |
| 18 |
} |
| 19 |
|
| 20 |
void bootblock_mainboard_init(void) |
| 21 |
{ |
| 22 |
early_config_gpio(); |
| 23 |
} |
| 24 |
|
| 25 |
void bootblock_mainboard_early_init(void) |
| 26 |
{ |
| 27 |
nuvoton_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); |
| 28 |
} |