| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <bootblock_common.h> |
| 4 | #include <soc/qupv3_i2c_common.h> |
| 5 | #include <soc/qcom_qup_se.h> |
| 6 | #include <soc/qupv3_spi_common.h> |
| 7 | #include "board.h" |
| 8 | |
| 9 | void bootblock_mainboard_init(void) |
| 10 | { |
| 11 | setup_chromeos_gpios(); |
| 12 | |
| 13 | if (CONFIG(I2C_TPM)) |
| 14 | i2c_init(CONFIG_DRIVER_TPM_I2C_BUS, I2C_SPEED_FAST); /* H1/TPM I2C */ |
| 15 | |
| 16 | if (CONFIG(EC_GOOGLE_CHROMEEC)) |
| 17 | qup_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, 1010 * KHz); /* EC SPI */ |
| 18 | } |