diff options
Diffstat (limited to 'src/mainboard/supermicro/x11ssh/bootblock.c')
-rw-r--r-- | src/mainboard/supermicro/x11ssh/bootblock.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/mainboard/supermicro/x11ssh/bootblock.c b/src/mainboard/supermicro/x11ssh/bootblock.c deleted file mode 100644 index 8bc8ab00e5..0000000000 --- a/src/mainboard/supermicro/x11ssh/bootblock.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2016 Google Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include <bootblock_common.h> -#include <soc/gpio.h> -#include "gpio.h" -#include <superio/aspeed/common/aspeed.h> -#include <superio/aspeed/ast2400/ast2400.h> -#include <delay.h> -#include <console/uart.h> - -static void early_config_gpio(void) -{ - /* This is a hack for FSP because it does things in MemoryInit() - * which it shouldn't do. We have to prepare certain gpios here - * because of the brokenness in FSP. */ - gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table)); -} - -static void early_config_superio(void) -{ - const pnp_devfn_t serial_dev = PNP_DEV(0x2e, AST2400_SUART1); - if (CONFIG(CONSOLE_SERIAL)) { - aspeed_enable_serial(serial_dev, CONFIG_TTYS0_BASE); - /* The serial output is garbeled before this timeout. - * FIXME: Find out why and remove delay. - */ - mdelay(1000); - } -} - -void bootblock_mainboard_early_init(void) -{ - early_config_gpio(); - early_config_superio(); -} |