diff options
author | Magnus Lilja <lilja.magnus@gmail.com> | 2008-04-20 10:38:12 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-26 00:26:55 +0200 |
commit | f9204e15173834ff8d123e36279ce49c3c6c74fc (patch) | |
tree | a42dfcbac65050a6efa297808d54a2971bd12a60 /board/imx31_litekit/imx31_litekit.c | |
parent | f97abbfb47d9e407354e157cae3f6369e460cd37 (diff) | |
download | u-boot-imx-f9204e15173834ff8d123e36279ce49c3c6c74fc.zip u-boot-imx-f9204e15173834ff8d123e36279ce49c3c6c74fc.tar.gz u-boot-imx-f9204e15173834ff8d123e36279ce49c3c6c74fc.tar.bz2 |
i.MX31: Enable SPI and MC13783/RTC support for the Litekit board
This patch enables SPI and MC13783/RTC support for the Litekit board.
Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Diffstat (limited to 'board/imx31_litekit/imx31_litekit.c')
-rw-r--r-- | board/imx31_litekit/imx31_litekit.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/imx31_litekit/imx31_litekit.c b/board/imx31_litekit/imx31_litekit.c index e0fbf25..263dd9f 100644 --- a/board/imx31_litekit/imx31_litekit.c +++ b/board/imx31_litekit/imx31_litekit.c @@ -52,6 +52,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); + gd->bd->bi_arch_number = MACH_TYPE_MX31LITE; /* board id for linux */ gd->bd->bi_boot_params = (0x80000100); /* adress of boot parameters */ |