summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Warren <twarren@nvidia.com>2014-08-18 13:50:06 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-03-27 08:03:23 +0100
commitdbe7085be6c3d3261562ad54d3ed62407fe11d50 (patch)
treeab6801ce53d9e43837d02bd3b9caf91a17a586a6 /src
parent842f76c90ca874e6497f6af49ee36ec758265171 (diff)
downloadcoreboot-dbe7085be6c3d3261562ad54d3ed62407fe11d50.tar.xz
ryu: Add pad/funit init for i2c6 (audio codec, etc.)
BUG=none BRANCH=none TEST=built ryu, booted to recovery mode OK Ran TegraShell and could r/w I2C6 regs OK Change-Id: I7dca131ab5bd4dac50891937f792ac70b1bb532f Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 29591a97fbb8fc42143ff6c7838c9935834ca516 Original-Change-Id: Ic74e3518ab69ec7b1bc3bc4f637b7b38b85734c9 Original-Signed-off-by: Tom Warren <twarren@nvidia.com> Original-Reviewed-on: https://chromium-review.googlesource.com/212926 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/8993 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/rush_ryu/romstage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/rush_ryu/romstage.c b/src/mainboard/google/rush_ryu/romstage.c
index f6de3d5b7d..d461872cf6 100644
--- a/src/mainboard/google/rush_ryu/romstage.c
+++ b/src/mainboard/google/rush_ryu/romstage.c
@@ -46,6 +46,8 @@ static const struct funit_cfg funits[] = {
FUNIT_CFG(I2C3, PLLP, 400, tpm_pads, ARRAY_SIZE(tpm_pads)),
/* EC on I2C2 - pulled to 3.3V @ 100kHz */
FUNIT_CFG(I2C2, PLLP, 100, ec_i2c_pads, ARRAY_SIZE(ec_i2c_pads)),
+ /* I2C6 for audio, temp sensor, etc. */
+ FUNIT_CFG(I2C6, PLLP, 400, NULL, 0),
};
void romstage_mainboard_init(void)
@@ -53,11 +55,14 @@ void romstage_mainboard_init(void)
/* Bring up controller interfaces for ramstage loading. */
soc_configure_funits(funits, ARRAY_SIZE(funits));
soc_configure_pads(padcfgs, ARRAY_SIZE(padcfgs));
+ soc_configure_i2c6pad();
/* TPM */
i2c_init(2);
/* EC */
i2c_init(1);
+ /* I2C6 bus (audio, etc.) */
+ i2c_init(5);
}
void mainboard_configure_pmc(void)