From 859c0d4fde2cf098cb829e96a5d6dec394bea600 Mon Sep 17 00:00:00 2001 From: Tom Warren Date: Tue, 5 Aug 2014 15:05:19 -0700 Subject: [PATCH] rush/ryu: restore full-speed clocks to TPM I2C and EC SPI Now that there's a working udelay() in tegra132, upclock CAM_I2C and SPI1 to the same speeds as used on Nyan. BUG=chrome-os-partner:30998 BRANCH=rush_ryu TEST=Built Rush and tested, no nack errors seen. Change-Id: I58fd03ed3512c2498c793cfe30b0c302e4b0e3d4 Signed-off-by: Tom Warren Reviewed-on: https://chromium-review.googlesource.com/211043 Reviewed-by: Aaron Durbin --- src/mainboard/google/rush/romstage.c | 4 ++-- src/mainboard/google/rush_ryu/romstage.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mainboard/google/rush/romstage.c b/src/mainboard/google/rush/romstage.c index dae26efbce..b54058fd38 100644 --- a/src/mainboard/google/rush/romstage.c +++ b/src/mainboard/google/rush/romstage.c @@ -43,11 +43,11 @@ static void configure_clocks(void) { /* EC on SPI1 controller. */ clock_enable_clear_reset(0, CLK_H_SBC1, 0, 0, 0, 0); - clock_configure_source(sbc1, CLK_M, 500); + clock_configure_source(sbc1, CLK_M, 3000); /* TPM on I2C3 controller */ clock_enable_clear_reset(0, 0, CLK_U_I2C3, 0, 0, 0); - clock_configure_i2c_scl_freq(i2c3, PLLP, 19); + clock_configure_i2c_scl_freq(i2c3, PLLP, 400); } void romstage_mainboard_init(void) diff --git a/src/mainboard/google/rush_ryu/romstage.c b/src/mainboard/google/rush_ryu/romstage.c index 8ca1a7b7a4..47c3df66ee 100644 --- a/src/mainboard/google/rush_ryu/romstage.c +++ b/src/mainboard/google/rush_ryu/romstage.c @@ -41,7 +41,7 @@ static void configure_clocks(void) { /* TPM on I2C3 */ clock_enable_clear_reset(0, 0, CLK_U_I2C3, 0, 0, 0); - clock_configure_i2c_scl_freq(i2c3, PLLP, 19); + clock_configure_i2c_scl_freq(i2c3, PLLP, 400); /* EC on I2C2 */ clock_enable_clear_reset(0, CLK_H_I2C2, 0, 0, 0, 0);