diff options
author | Sekhar Nori <nsekhar@ti.com> | 2009-03-21 19:26:31 +0530 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2009-09-09 14:03:21 -0400 |
commit | 8e9047cb45b24a2db1e5cb9144ab592b8e507e1d (patch) | |
tree | 22ab0b4c6895cf200767c5822aa535059e83a5c5 | |
parent | e7579b33ad625c5ccdb129f61186b7b580077527 (diff) |
cleanup DA850 Pinmux settings.
Nothing major, just support MII (in case) and use only the required SPI pins
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
-rw-r--r-- | board/da8xx/da8xx-evm/da850.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/board/da8xx/da8xx-evm/da850.c b/board/da8xx/da8xx-evm/da850.c index 76a2d39a87..c36f645c73 100644 --- a/board/da8xx/da8xx-evm/da850.c +++ b/board/da8xx/da8xx-evm/da850.c @@ -131,20 +131,27 @@ int board_init(void) /* Pin Muxing support */ #ifdef CONFIG_SPI_FLASH - /* SPI0 */ - REG(PINMUX3) &= 0xFFFF0000; - REG(PINMUX3) |= 0x00001111; + /* SPI0, use CLK, SOMI, SIMO, CS[0] */ + REG(PINMUX3) &= 0xFFFF00F0; + REG(PINMUX3) |= 0x00001101; REG(PINMUX4) &= 0xFFFFFF0F; REG(PINMUX4) |= 0x00000010; #endif #ifdef CONFIG_DRIVER_TI_EMAC - /* RMII clock is sourced externally */ - REG(PINMUX15) &= 0xFFFFFFF0; + + /* Assumes RMII clock sourced externally */ +#ifdef CONFIG_DRIVER_TI_EMAC_USE_RMII REG(PINMUX14) &= 0x000000FF; REG(PINMUX14) |= 0x88888800; - REG(PINMUX15) &= 0xFFFFFF0F; + REG(PINMUX15) &= 0xFFFFFF00; REG(PINMUX15) |= 0x00000080; +#else /* Use MII */ + REG(PINMUX2) &= 0x0000000F; + REG(PINMUX2) |= 0x88888880; + REG(PINMUX3) = 0x88888880; +#endif + /* MDIO */ REG(PINMUX4) &= 0xFFFFFF00; REG(PINMUX4) |= 0x00000088; #endif |