Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
T Michael Turney | 626a537 | 2019-10-15 07:40:30 -0700 | [diff] [blame] | 2 | |
| 3 | #include <bootblock_common.h> |
| 4 | #include "board.h" |
T Michael Turney | 9bf0dd8 | 2019-11-27 19:28:50 -0800 | [diff] [blame] | 5 | #include <soc/qupv3_spi.h> |
T Michael Turney | 626a537 | 2019-10-15 07:40:30 -0700 | [diff] [blame] | 6 | |
| 7 | void bootblock_mainboard_init(void) |
| 8 | { |
| 9 | setup_chromeos_gpios(); |
Julius Werner | 561b8cc | 2020-02-06 16:44:40 -0800 | [diff] [blame^] | 10 | qup_spi_init(CONFIG_DRIVER_TPM_SPI_BUS, 1010 * KHz); |
| 11 | qup_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, 1010 * KHz); |
T Michael Turney | 626a537 | 2019-10-15 07:40:30 -0700 | [diff] [blame] | 12 | } |