summaryrefslogtreecommitdiff
path: root/include/configs/atc.h
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-18 20:22:24 +0000
committerwdenk <wdenk>2003-06-18 20:22:24 +0000
commit15ef8a5d17181ea376fac94579dce0af1cfcdeb7 (patch)
tree2c1b3f24078b0f68b0748b0d493860abe8d432f1 /include/configs/atc.h
parent2abbe0754759f94c79125a2534fbc4be74f416bc (diff)
downloadu-boot-imx-15ef8a5d17181ea376fac94579dce0af1cfcdeb7.zip
u-boot-imx-15ef8a5d17181ea376fac94579dce0af1cfcdeb7.tar.gz
u-boot-imx-15ef8a5d17181ea376fac94579dce0af1cfcdeb7.tar.bz2
Add support for DS12887 RTC; add RTC support for ATC board
Diffstat (limited to 'include/configs/atc.h')
-rw-r--r--include/configs/atc.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/include/configs/atc.h b/include/configs/atc.h
index 0e968b1..6898496 100644
--- a/include/configs/atc.h
+++ b/include/configs/atc.h
@@ -129,7 +129,10 @@
CFG_CMD_EEPROM | \
CFG_CMD_PCI | \
CFG_CMD_PCMCIA | \
+ CFG_CMD_DATE | \
CFG_CMD_IDE)
+
+
#define CONFIG_DOS_PARTITION
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
@@ -168,6 +171,14 @@
#define CONFIG_SPI
+#define CONFIG_RTC_DS12887
+
+#define RTC_BASE_ADDR 0x02800000
+#define RTC_PORT_ADDR RTC_BASE_ADDR + 0x800
+#define RTC_PORT_DATA RTC_BASE_ADDR + 0x808
+
+#define CONFIG_MISC_INIT_R
+
/*
* For booting Linux, the board info and command line data
* have to be in the first 8 MB of memory, since this is
@@ -179,8 +190,6 @@
* Flash configuration
*/
-#define CFG_BOOTROM_BASE 0xFF800000
-#define CFG_BOOTROM_SIZE 0x00080000
#define CFG_FLASH_BASE 0xFF000000
#define CFG_FLASH_SIZE 0x00800000
@@ -452,6 +461,13 @@
#define CFG_PSDMR CFG_PSDMR_8COL
#endif /* CFG_RAMBOOT */
+#define CFG_BR4_PRELIM ((RTC_BASE_ADDR & BRx_BA_MSK) |\
+ BRx_PS_8 |\
+ BRx_MS_UPMA |\
+ BRx_V)
+
+#define CFG_OR4_PRELIM (ORxU_AM_MSK | ORxU_BI)
+
/*-----------------------------------------------------------------------
* PCMCIA stuff
*-----------------------------------------------------------------------