diff options
author | wdenk <wdenk> | 2003-06-27 21:31:46 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-06-27 21:31:46 +0000 |
commit | 8bde7f776c77b343aca29b8c7b58464d915ac245 (patch) | |
tree | 20f1fd99975215e7c658454a15cdb4ed4694e2d4 /rtc/ds12887.c | |
parent | 993cad9364c6b87ae429d1ed1130d8153f6f027e (diff) | |
download | u-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.zip u-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.gz u-boot-imx-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.bz2 |
* Code cleanup:
- remove trailing white space, trailing empty lines, C++ comments, etc.
- split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
* Patches by Kenneth Johansson, 25 Jun 2003:
- major rework of command structure
(work done mostly by Michal Cendrowski and Joakim Kristiansen)
Diffstat (limited to 'rtc/ds12887.c')
-rw-r--r-- | rtc/ds12887.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rtc/ds12887.c b/rtc/ds12887.c index cf572cc..8b12893 100644 --- a/rtc/ds12887.c +++ b/rtc/ds12887.c @@ -56,7 +56,7 @@ static uchar rtc_read (uchar reg) { uchar val; - *(volatile unsigned char*)(RTC_PORT_ADDR) = reg; + *(volatile unsigned char*)(RTC_PORT_ADDR) = reg; __asm__ __volatile__ ("sync"); val = *(volatile unsigned char*)(RTC_PORT_DATA); @@ -65,7 +65,7 @@ static uchar rtc_read (uchar reg) static void rtc_write (uchar reg, uchar val) { - *(volatile unsigned char*)(RTC_PORT_ADDR) = reg; + *(volatile unsigned char*)(RTC_PORT_ADDR) = reg; __asm__ __volatile__ ("sync"); *(volatile unsigned char*)(RTC_PORT_DATA) = val; @@ -218,14 +218,14 @@ void rtc_reset (void) tmp.tm_sec = 0; #ifdef RTC_DEBUG - printf ( "RTC: %4d-%02d-%02d %2d:%02d:%02d UTC\n", - tmp.tm_year, tmp.tm_mon, tmp.tm_mday, + printf ( "RTC: %4d-%02d-%02d %2d:%02d:%02d UTC\n", + tmp.tm_year, tmp.tm_mon, tmp.tm_mday, tmp.tm_hour, tmp.tm_min, tmp.tm_sec); #endif ctrl_rg = RTC_CB_SET | RTC_CB_24_12 | RTC_CB_DM; rtc_write(RTC_CONTROL_B,ctrl_rg); - rtc_set(&tmp); + rtc_set(&tmp); rtc_write(RTC_HOURS_ALARM, 0), rtc_write(RTC_MINUTES_ALARM, 0), |