projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename CFG_ macros to CONFIG_SYS
[platform/kernel/u-boot.git]
/
drivers
/
rtc
/
mcfrtc.c
diff --git
a/drivers/rtc/mcfrtc.c
b/drivers/rtc/mcfrtc.c
index
c2af197
..
979c466
100644
(file)
--- a/
drivers/rtc/mcfrtc.c
+++ b/
drivers/rtc/mcfrtc.c
@@
-32,7
+32,7
@@
#undef RTC_DEBUG
#undef RTC_DEBUG
-#ifndef C
FG
_MCFRTC_BASE
+#ifndef C
ONFIG_SYS
_MCFRTC_BASE
#error RTC_BASE is not defined!
#endif
#error RTC_BASE is not defined!
#endif
@@
-41,7
+41,7
@@
int rtc_get(struct rtc_time *tmp)
{
int rtc_get(struct rtc_time *tmp)
{
- volatile rtc_t *rtc = (rtc_t *) (C
FG
_MCFRTC_BASE);
+ volatile rtc_t *rtc = (rtc_t *) (C
ONFIG_SYS
_MCFRTC_BASE);
int rtc_days, rtc_hrs, rtc_mins;
int tim;
int rtc_days, rtc_hrs, rtc_mins;
int tim;
@@
-70,7
+70,7
@@
int rtc_get(struct rtc_time *tmp)
int rtc_set(struct rtc_time *tmp)
{
int rtc_set(struct rtc_time *tmp)
{
- volatile rtc_t *rtc = (rtc_t *) (C
FG
_MCFRTC_BASE);
+ volatile rtc_t *rtc = (rtc_t *) (C
ONFIG_SYS
_MCFRTC_BASE);
static int month_days[12] = {
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
static int month_days[12] = {
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
@@
-112,7
+112,7
@@
int rtc_set(struct rtc_time *tmp)
void rtc_reset(void)
{
void rtc_reset(void)
{
- volatile rtc_t *rtc = (rtc_t *) (C
FG
_MCFRTC_BASE);
+ volatile rtc_t *rtc = (rtc_t *) (C
ONFIG_SYS
_MCFRTC_BASE);
if ((rtc->cr & RTC_CR_EN) == 0) {
printf("real-time-clock was stopped. Now starting...\n");
if ((rtc->cr & RTC_CR_EN) == 0) {
printf("real-time-clock was stopped. Now starting...\n");