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>
This commit is contained in:
Tom Warren 2014-08-18 13:50:06 -07:00 committed by Patrick Georgi
parent 842f76c90c
commit dbe7085be6
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,8 @@ static const struct funit_cfg funits[] = {
FUNIT_CFG(I2C3, PLLP, 400, tpm_pads, ARRAY_SIZE(tpm_pads)), FUNIT_CFG(I2C3, PLLP, 400, tpm_pads, ARRAY_SIZE(tpm_pads)),
/* EC on I2C2 - pulled to 3.3V @ 100kHz */ /* EC on I2C2 - pulled to 3.3V @ 100kHz */
FUNIT_CFG(I2C2, PLLP, 100, ec_i2c_pads, ARRAY_SIZE(ec_i2c_pads)), 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) void romstage_mainboard_init(void)
@ -53,11 +55,14 @@ void romstage_mainboard_init(void)
/* Bring up controller interfaces for ramstage loading. */ /* Bring up controller interfaces for ramstage loading. */
soc_configure_funits(funits, ARRAY_SIZE(funits)); soc_configure_funits(funits, ARRAY_SIZE(funits));
soc_configure_pads(padcfgs, ARRAY_SIZE(padcfgs)); soc_configure_pads(padcfgs, ARRAY_SIZE(padcfgs));
soc_configure_i2c6pad();
/* TPM */ /* TPM */
i2c_init(2); i2c_init(2);
/* EC */ /* EC */
i2c_init(1); i2c_init(1);
/* I2C6 bus (audio, etc.) */
i2c_init(5);
} }
void mainboard_configure_pmc(void) void mainboard_configure_pmc(void)