summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/rush/romstage.c9
-rw-r--r--src/mainboard/google/rush_ryu/romstage.c15
2 files changed, 13 insertions, 11 deletions
diff --git a/src/mainboard/google/rush/romstage.c b/src/mainboard/google/rush/romstage.c
index 8edcba8d6a..b4d9714699 100644
--- a/src/mainboard/google/rush/romstage.c
+++ b/src/mainboard/google/rush/romstage.c
@@ -34,7 +34,7 @@ static void configure_tpm_i2c_bus(void)
i2c_init(2);
}
-void mainboard_init_tpm_i2c(void)
+static void mainboard_init_tpm_i2c(void)
{
clock_enable_clear_reset(0, 0, CLK_U_I2C3, 0, 0, 0);
@@ -51,7 +51,7 @@ void mainboard_init_tpm_i2c(void)
configure_tpm_i2c_bus();
}
-void mainboard_init_ec_spi(void)
+static void mainboard_init_ec_spi(void)
{
clock_enable_clear_reset(0, CLK_H_SBC1, 0, 0, 0, 0);
@@ -75,9 +75,10 @@ void mainboard_init_ec_spi(void)
clock_configure_source(sbc1, CLK_M, 500);
}
-void mainboard_init_ec_i2c(void)
+void romstage_mainboard_init(void)
{
- /* Empty - Rush uses SPI to communicate with the EC */
+ mainboard_init_tpm_i2c();
+ mainboard_init_ec_spi();
}
void mainboard_configure_pmc(void)
diff --git a/src/mainboard/google/rush_ryu/romstage.c b/src/mainboard/google/rush_ryu/romstage.c
index 1c08718543..4ebb8edf24 100644
--- a/src/mainboard/google/rush_ryu/romstage.c
+++ b/src/mainboard/google/rush_ryu/romstage.c
@@ -38,7 +38,7 @@ static void configure_ec_i2c_bus(void)
i2c_init(1);
}
-void mainboard_init_tpm_i2c(void)
+static void mainboard_init_tpm_i2c(void)
{
clock_enable_clear_reset(0, 0, CLK_U_I2C3, 0, 0, 0);
@@ -54,12 +54,7 @@ void mainboard_init_tpm_i2c(void)
configure_tpm_i2c_bus();
}
-void mainboard_init_ec_spi(void)
-{
- /* Empty - Ryu uses I2C to communicate with the EC */
-}
-
-void mainboard_init_ec_i2c(void)
+static void mainboard_init_ec_i2c(void)
{
clock_enable_clear_reset(0, CLK_H_I2C2, 0, 0, 0, 0);
@@ -73,6 +68,12 @@ void mainboard_init_ec_i2c(void)
configure_ec_i2c_bus();
}
+void romstage_mainboard_init(void)
+{
+ mainboard_init_tpm_i2c();
+ mainboard_init_ec_i2c();
+}
+
void mainboard_configure_pmc(void)
{
}