From 15ef8a5d17181ea376fac94579dce0af1cfcdeb7 Mon Sep 17 00:00:00 2001 From: wdenk Date: Wed, 18 Jun 2003 20:22:24 +0000 Subject: Add support for DS12887 RTC; add RTC support for ATC board --- include/configs/atc.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/configs/atc.h b/include/configs/atc.h index 0e968b1d3d..68984965b9 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 *----------------------------------------------------------------------- -- cgit v1.2.1