diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-08-01 16:50:27 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-25 22:31:28 +0100 |
commit | d25ead2589c47ae476975cb6c42354c3a12fb3f9 (patch) | |
tree | 99f08fb783800efae7cc9af6403479e9d2994df7 /src/mainboard/google/rush_ryu/romstage.c | |
parent | e06771c74ebf3b307b6b8690c9c68233bbee14ac (diff) | |
download | coreboot-d25ead2589c47ae476975cb6c42354c3a12fb3f9.tar.xz |
tegra132: introduce romstage_mainboard_init()
Instead of calling out with function names all the possible
combinations of interface and device provide one call to the
mainboard to configure all the necessary bits.
BUG=chrome-os-partner:31104
BUG=chrome-os-partner:31105
BRANCH=None
TEST=Built and ran on rush.
Change-Id: Id7817e85065884d64f90ac514bf698bf539f2afe
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: f4f63f5965d403a32872d7b52c180694f5ef679d
Original-Change-Id: Id27d9c2da4dccdff38c48dc5cdeb1a68cf23cbfc
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/210838
Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/8901
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/google/rush_ryu/romstage.c')
-rw-r--r-- | src/mainboard/google/rush_ryu/romstage.c | 15 |
1 files changed, 8 insertions, 7 deletions
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) { } |