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
/
mc146818.c
diff --git
a/drivers/rtc/mc146818.c
b/drivers/rtc/mc146818.c
index
1225454
..
38484ce
100644
(file)
--- a/
drivers/rtc/mc146818.c
+++ b/
drivers/rtc/mc146818.c
@@
-38,7
+38,7
@@
static void rtc_write (uchar reg, uchar val);
static uchar bin2bcd (unsigned int n);
static unsigned bcd2bin(uchar c);
static uchar bin2bcd (unsigned int n);
static unsigned bcd2bin(uchar c);
-#define RTC_PORT_MC146818 C
FG
_ISA_IO_BASE_ADDRESS + 0x70
+#define RTC_PORT_MC146818 C
ONFIG_SYS
_ISA_IO_BASE_ADDRESS + 0x70
#define RTC_SECONDS 0x00
#define RTC_SECONDS_ALARM 0x01
#define RTC_MINUTES 0x02
#define RTC_SECONDS 0x00
#define RTC_SECONDS_ALARM 0x01
#define RTC_MINUTES 0x02
@@
-141,18
+141,18
@@
void rtc_reset (void)
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
-#ifdef C
FG
_RTC_REG_BASE_ADDR
+#ifdef C
ONFIG_SYS
_RTC_REG_BASE_ADDR
/*
* use direct memory access
*/
static uchar rtc_read (uchar reg)
{
/*
* use direct memory access
*/
static uchar rtc_read (uchar reg)
{
- return(in8(C
FG
_RTC_REG_BASE_ADDR+reg));
+ return(in8(C
ONFIG_SYS
_RTC_REG_BASE_ADDR+reg));
}
static void rtc_write (uchar reg, uchar val)
{
}
static void rtc_write (uchar reg, uchar val)
{
- out8(C
FG
_RTC_REG_BASE_ADDR+reg, val);
+ out8(C
ONFIG_SYS
_RTC_REG_BASE_ADDR+reg, val);
}
#else
static uchar rtc_read (uchar reg)
}
#else
static uchar rtc_read (uchar reg)