Skip to content
Snippets Groups Projects
Commit b738654d authored by Mike Nuss's avatar Mike Nuss Committed by Stefan Roese
Browse files

PPC440EPx: Optionally enable second I2C bus


The option CONFIG_I2C_MULTI_BUS does not have any effect on Sequoia, the
PPC440EPx reference platform, because IIC1 is never enabled. Add Sequoia board
code to turn on IIC1 if CONFIG_I2C_MULTI_BUS is selected.

Signed-off-by: default avatarMike Nuss <mike@terascala.com>
Cc: Stefan Roese <sr@denx.de>
parent ef5b4f22
No related branches found
No related tags found
No related merge requests found
...@@ -86,10 +86,13 @@ int board_early_init_f(void) ...@@ -86,10 +86,13 @@ int board_early_init_f(void)
/* enable USB device */ /* enable USB device */
out_8((u8 *) CFG_BCSR_BASE + 0x09, 0x20); out_8((u8 *) CFG_BCSR_BASE + 0x09, 0x20);
/* select Ethernet pins */ /* select Ethernet (and optionally IIC1) pins */
mfsdr(SDR0_PFC1, sdr0_pfc1); mfsdr(SDR0_PFC1, sdr0_pfc1);
sdr0_pfc1 = (sdr0_pfc1 & ~SDR0_PFC1_SELECT_MASK) | sdr0_pfc1 = (sdr0_pfc1 & ~SDR0_PFC1_SELECT_MASK) |
SDR0_PFC1_SELECT_CONFIG_4; SDR0_PFC1_SELECT_CONFIG_4;
#ifdef CONFIG_I2C_MULTI_BUS
sdr0_pfc1 |= ((sdr0_pfc1 & ~SDR0_PFC1_SIS_MASK) | SDR0_PFC1_SIS_IIC1_SEL);
#endif
mfsdr(SDR0_PFC2, sdr0_pfc2); mfsdr(SDR0_PFC2, sdr0_pfc2);
sdr0_pfc2 = (sdr0_pfc2 & ~SDR0_PFC2_SELECT_MASK) | sdr0_pfc2 = (sdr0_pfc2 & ~SDR0_PFC2_SELECT_MASK) |
SDR0_PFC2_SELECT_CONFIG_4; SDR0_PFC2_SELECT_CONFIG_4;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment