diff options
author | Guennadi Liakhovetski <lg@denx.de> | 2008-04-15 13:33:11 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-24 17:06:39 +0200 |
commit | 0a0b606faaec4afb3f750b09aa4df1e40a39dcb8 (patch) | |
tree | acbe010bb6a7c7ae67cfd85f88ee6bbe28159428 /board | |
parent | 022f12163595b9a55380c6d77c3119b93d6a9a4b (diff) | |
download | u-boot-imx-0a0b606faaec4afb3f750b09aa4df1e40a39dcb8.zip u-boot-imx-0a0b606faaec4afb3f750b09aa4df1e40a39dcb8.tar.gz u-boot-imx-0a0b606faaec4afb3f750b09aa4df1e40a39dcb8.tar.bz2 |
MX31ADS environment variable update, spi and rtc support
Update MX31ADS default environment to better match the flash layout and
the memory map, support SPI and RTC.
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/mx31ads/mx31ads.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/mx31ads/mx31ads.c b/board/mx31ads/mx31ads.c index 5a7d8c9..a75cc2d 100644 --- a/board/mx31ads/mx31ads.c +++ b/board/mx31ads/mx31ads.c @@ -57,6 +57,18 @@ int board_init (void) mx31_gpio_mux(MUX_RTS1__UART1_RTS_B); mx31_gpio_mux(MUX_RTS1__UART1_CTS_B); + /* SPI2 */ + mx31_gpio_mux((MUX_CTL_FUNC << 8) | MUX_CTL_CSPI2_SS2); + mx31_gpio_mux((MUX_CTL_FUNC << 8) | MUX_CTL_CSPI2_SCLK); + mx31_gpio_mux((MUX_CTL_FUNC << 8) | MUX_CTL_CSPI2_SPI_RDY); + mx31_gpio_mux((MUX_CTL_FUNC << 8) | MUX_CTL_CSPI2_MOSI); + mx31_gpio_mux((MUX_CTL_FUNC << 8) | MUX_CTL_CSPI2_MISO); + mx31_gpio_mux((MUX_CTL_FUNC << 8) | MUX_CTL_CSPI2_SS0); + mx31_gpio_mux((MUX_CTL_FUNC << 8) | MUX_CTL_CSPI2_SS1); + + /* start SPI2 clock */ + __REG(CCM_CGR2) = __REG(CCM_CGR2) | (3 << 4); + /* PBC setup */ /* Enable UART transceivers also reset the Ethernet/external UART */ readw(CS4_BASE + 4); |