soc/intel: Remove blank lines before '}' and after '{'
[coreboot2.git] / src / mainboard / amd / bilby / bootblock.c
blob94a132938fc6c9568dcb6f1c7c7eeff1b52a9007
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootblock_common.h>
4 #include <amdblocks/lpc.h>
5 #include <superio/smsc/sio1036/sio1036.h>
6 #include "gpio.h"
8 #define SERIAL_DEV PNP_DEV(CONFIG_SUPERIO_ADDR_BASE, SIO1036_SP1)
10 void bootblock_mainboard_early_init(void)
12 mainboard_program_early_gpios();
14 if (CONFIG(SUPERIO_SMSC_SIO1036)) {
15 if (CONFIG_SUPERIO_ADDR_BASE == 0x4e) {
16 lpc_enable_sio_decode(LPC_SELECT_SIO_4E4F);
17 } else {
18 // set up 16 byte wide I/O range window for the super IO
19 lpc_set_wideio_range(CONFIG_SUPERIO_ADDR_BASE & ~0xF, 16);
21 lpc_enable_decode(DECODE_ENABLE_SERIAL_PORT0 << CONFIG_UART_FOR_CONSOLE);
22 sio1036_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);