| 1 |
|
| 2 |
|
| 3 |
#include <bootblock_common.h> |
| 4 |
#include <console/console.h> |
| 5 |
#include <intelblocks/lpc_lib.h> |
| 6 |
#include <soc/intel/common/block/lpc/lpc_def.h> |
| 7 |
#include <superio/aspeed/ast2400/ast2400.h> |
| 8 |
#include <superio/aspeed/common/aspeed.h> |
| 9 |
|
| 10 |
#define ASPEED_SIO_PORT 0x2E |
| 11 |
|
| 12 |
void bootblock_mainboard_early_init(void) |
| 13 |
{ |
| 14 |
|
| 15 |
lpc_io_setup_comm_a_b(); |
| 16 |
lpc_enable_fixed_io_ranges(LPC_IOE_SUPERIO_2E_2F); |
| 17 |
|
| 18 |
if (CONFIG_UART_FOR_CONSOLE == 0) { |
| 19 |
|
| 20 |
const pnp_devfn_t serial_dev = PNP_DEV(ASPEED_SIO_PORT, AST2400_SUART1); |
| 21 |
aspeed_enable_serial(serial_dev, CONFIG_TTYS0_BASE); |
| 22 |
} else |
| 23 |
die("COMs other than COM1 not supported\n"); |
| 24 |
} |