summaryrefslogtreecommitdiff
path: root/include/configs/imx31_litekit.h
diff options
context:
space:
mode:
authorMagnus Lilja <lilja.magnus@gmail.com>2008-08-29 10:36:18 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-09-12 01:23:44 +0200
commit1a6337b01351b82a45b0defa76f08744511c580b (patch)
tree2a9a9e97ad896b5f337be1edfd747b3e57bff32b /include/configs/imx31_litekit.h
parent8c4ebec25b21e355b8488698ec1594da9701fff4 (diff)
i.MX31: Make the SPI bus and chip select configurable for MC13783
The i.MX31 has three SPI buses and each bus has several chip selects and the MC13783 chip can be connected to any of these. The current RTC driver for MC13783 is hardcoded for CSPI2/SS2. This patch makes make MC13783 SPI bus and chip select configurable via CONFIG_MC13783_SPI_BUS and CONFIG_MC13783_SPI_CS. Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Diffstat (limited to 'include/configs/imx31_litekit.h')
-rw-r--r--include/configs/imx31_litekit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/imx31_litekit.h b/include/configs/imx31_litekit.h
index c4763335b..62a03fac8 100644
--- a/include/configs/imx31_litekit.h
+++ b/include/configs/imx31_litekit.h
@@ -69,6 +69,9 @@
#define CONFIG_DEFAULT_SPI_MODE (SPI_MODE_2 | SPI_CS_HIGH)
#define CONFIG_RTC_MC13783 1
+/* MC13783 connected to CSPI2 and SS0 */
+#define CONFIG_MC13783_SPI_BUS 1
+#define CONFIG_MC13783_SPI_CS 0
/* allow to overwrite serial and ethaddr */
#define CONFIG_ENV_OVERWRITE