libpayload: configs: Add new config.featuretest to broaden CI
[coreboot2.git] / src / mainboard / cavium / cn8100_sff_evb / bootblock.c
blob37691f325ae598676355f14f10c2fb4b59e6951a
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootblock_common.h>
4 #include <soc/soc.h>
5 #include <soc/spi.h>
6 #include <soc/uart.h>
8 void bootblock_mainboard_early_init(void)
10 if (CONFIG(BOOTBLOCK_CONSOLE)) {
11 if (!uart_is_enabled(CONFIG_UART_FOR_CONSOLE))
12 uart_setup(CONFIG_UART_FOR_CONSOLE, CONFIG_TTYS0_BAUD);
16 static void configure_spi_flash(void)
18 /* FIXME: Only tested on EM100 Pro */
19 spi_init_custom(0, // bus
20 25000000, // speed Hz
21 0, // idle low disabled
22 0, // zero idle cycles between transfers
23 0, // MSB first
24 0, // Chip select 0
25 1); // assert is high
28 void bootblock_mainboard_init(void)
30 configure_spi_flash();