| 1 |
|
| 2 |
|
| 3 |
#include <bootblock_common.h> |
| 4 |
#include <superio/ite/common/ite.h> |
| 5 |
#include <superio/ite/it8613e/it8613e.h> |
| 6 |
|
| 7 |
#define GPIO_DEV PNP_DEV(0x2e, IT8613E_GPIO) |
| 8 |
#define UART_DEV PNP_DEV(0x2e, IT8613E_SP1) |
| 9 |
|
| 10 |
void bootblock_mainboard_early_init(void) |
| 11 |
{ |
| 12 |
|
| 13 |
ite_reg_write(GPIO_DEV, 0x26, 0xfb); |
| 14 |
ite_reg_write(GPIO_DEV, 0x29, 0x01); |
| 15 |
ite_reg_write(GPIO_DEV, 0x2c, 0x41); |
| 16 |
ite_reg_write(GPIO_DEV, 0x2d, 0x02); |
| 17 |
ite_reg_write(GPIO_DEV, 0xbc, 0xc0); |
| 18 |
ite_reg_write(GPIO_DEV, 0xbd, 0x03); |
| 19 |
ite_reg_write(GPIO_DEV, 0xc1, 0x0a); |
| 20 |
ite_reg_write(GPIO_DEV, 0xc8, 0x00); |
| 21 |
ite_reg_write(GPIO_DEV, 0xc9, 0x0a); |
| 22 |
ite_reg_write(GPIO_DEV, 0xda, 0xb0); |
| 23 |
ite_reg_write(GPIO_DEV, 0xdb, 0x44); |
| 24 |
|
| 25 |
ite_delay_pwrgd3(GPIO_DEV); |
| 26 |
|
| 27 |
ite_enable_serial(UART_DEV, CONFIG_TTYS0_BASE); |
| 28 |
} |
| 29 |
|
| 30 |
void bootblock_mainboard_init(void) |
| 31 |
{ |
| 32 |
} |