| 1 |
|
| 2 |
|
| 3 |
#include <bootblock_common.h> |
| 4 |
#include "board.h" |
| 5 |
#include <soc/qupv3_i2c_common.h> |
| 6 |
#include <soc/qcom_qup_se.h> |
| 7 |
#include <soc/qupv3_spi_common.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); |
| 15 |
|
| 16 |
if (CONFIG(SPI_TPM)) |
| 17 |
qup_spi_init(CONFIG_DRIVER_TPM_SPI_BUS, 1010 * KHz); |
| 18 |
|
| 19 |
if (CONFIG(EC_GOOGLE_CHROMEEC)) |
| 20 |
qup_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, 1010 * KHz); |
| 21 |
} |