diff options
author | wdenk <wdenk> | 2003-05-20 14:25:27 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-05-20 14:25:27 +0000 |
commit | 7f70e85309c6367138c0ebd14abdd49964b8d50a (patch) | |
tree | 07a10be9b048491fd4a1da6b459728ac16739861 /rtc | |
parent | 59de2ed6b5631c709d6e9c6dce7c0bffdf5a2058 (diff) | |
download | u-boot-7f70e85309c6367138c0ebd14abdd49964b8d50a.tar.gz u-boot-7f70e85309c6367138c0ebd14abdd49964b8d50a.tar.xz u-boot-7f70e85309c6367138c0ebd14abdd49964b8d50a.zip |
* Patch by David Updegraff, 22 Apr 2003:LABEL_2003_05_20_1630
update for CrayL1 board
* Patch by Pantelis Antoniou, 21 Apr 2003:
add boot support for ARTOS (a proprietary OS)
* Patch by Steven Scholz, 11 Apr 2003:
Add support for RTC DS1338
* Patch by Rod Boyce, 24 Jan 2003:
Fix counting of extended partitions in diskboot command
Diffstat (limited to 'rtc')
-rw-r--r-- | rtc/ds1307.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rtc/ds1307.c b/rtc/ds1307.c index 247494c34d..d2b6bbe82e 100644 --- a/rtc/ds1307.c +++ b/rtc/ds1307.c @@ -25,7 +25,7 @@ /* * Date & Time support (no alarms) for Dallas Semiconductor (now Maxim) - * DS1307 Real Time Clock (RTC). + * DS1307 and DS1338 Real Time Clock (RTC). * * based on ds1337.c */ @@ -35,7 +35,8 @@ #include <rtc.h> #include <i2c.h> -#if defined(CONFIG_RTC_DS1307) && (CONFIG_COMMANDS & CFG_CMD_DATE) +#if (defined(CONFIG_RTC_DS1307) || defined(CONFIG_RTC_DS1338) ) && \ + (CONFIG_COMMANDS & CFG_CMD_DATE) /*---------------------------------------------------------------------*/ #undef DEBUG_RTC @@ -200,4 +201,4 @@ static unsigned char bin2bcd (unsigned int n) return (((n / 10) << 4) | (n % 10)); } -#endif /* CONFIG_RTC_DS1307 && (CFG_COMMANDS & CFG_CMD_DATE) */ +#endif /* (CONFIG_RTC_DS1307 || CONFIG_RTC_DS1338) && (CFG_COMMANDS & CFG_CMD_DATE) */ |