diff options
author | wdenk <wdenk> | 2004-02-23 16:11:30 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-02-23 16:11:30 +0000 |
commit | 3f85ce27858c44ee75d3650a53154ebcec0e24f2 (patch) | |
tree | 92513db897b0ffe90354f3b1b9021f04ca4a77b9 /rtc/ds1306.c | |
parent | 3c74e32a98187c792edcea3e0e39150de5a8dda6 (diff) | |
download | u-boot-imx-3f85ce27858c44ee75d3650a53154ebcec0e24f2.zip u-boot-imx-3f85ce27858c44ee75d3650a53154ebcec0e24f2.tar.gz u-boot-imx-3f85ce27858c44ee75d3650a53154ebcec0e24f2.tar.bz2 |
* CVS add missing files
* Cleanup compiler warnings
* Fix problem with side effects in macros in include/usb.h
* Patch by David Benson, 13 Nov 2003:
bug 841358 - fix TFTP download size limit
* Fixing bug 850768:
improper flush_cache() in load_serial()
* Fixing bug 834943:
MPC8540 - missing volatile declarations
* Patch by Stephen Williams, 09 Feb 2004:
Add support for Xilinx SystemACE chip:
- New files common/cmd_ace.c and include/systemace.h
- Hook systemace support into cmd_fat and the partition manager
* Patch by Travis Sawyer, 09 Feb 2004:
Add bi_opbfreq & bi_iic_fast to 440GX bd_info as needed for Linux
Diffstat (limited to 'rtc/ds1306.c')
-rw-r--r-- | rtc/ds1306.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rtc/ds1306.c b/rtc/ds1306.c index 4d1115e..e143bf7 100644 --- a/rtc/ds1306.c +++ b/rtc/ds1306.c @@ -75,8 +75,6 @@ static unsigned char bcd2bin (unsigned char c); /* ************************************************************************* */ #ifdef CONFIG_SXNI855T /* !!! SHOULD BE CHANGED TO NEW CODE !!! */ -static unsigned char rtc_read (unsigned char reg); -static void rtc_write (unsigned char reg, unsigned char val); static void soft_spi_send (unsigned char n); static unsigned char soft_spi_read (void); static void init_spi (void); @@ -302,6 +300,9 @@ void rtc_reset (void) #else /* not CONFIG_SXNI855T */ /* ************************************************************************* */ +static unsigned char rtc_read (unsigned char reg); +static void rtc_write (unsigned char reg, unsigned char val); + /* read clock time from DS1306 and return it in *tmp */ void rtc_get (struct rtc_time *tmp) { |