RTC: Don't drop the alpha specific code but get it in shape for our Kconfig scheme.
(trivial) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5010 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
fb333c423e
commit
2fbbea0f30
@@ -121,15 +121,15 @@ static void rtc_set_checksum(int range_start, int range_end, int cks_loc)
|
|||||||
cmos_write(((sum >> 0) & 0x0ff), cks_loc+1);
|
cmos_write(((sum >> 0) & 0x0ff), cks_loc+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_ARCH_X86
|
||||||
#define RTC_CONTROL_DEFAULT (RTC_24H)
|
#define RTC_CONTROL_DEFAULT (RTC_24H)
|
||||||
#define RTC_FREQ_SELECT_DEFAULT (RTC_REF_CLCK_32KHZ | RTC_RATE_1024HZ)
|
#define RTC_FREQ_SELECT_DEFAULT (RTC_REF_CLCK_32KHZ | RTC_RATE_1024HZ)
|
||||||
|
#else
|
||||||
#if 0 /* alpha setup */
|
#if CONFIG_ARCH_ALPHA
|
||||||
#undef RTC_CONTROL_DEFAULT
|
|
||||||
#undef RTC_FREQ_SELECT_DEFAULT
|
|
||||||
#define RTC_CONTROL_DEFAULT (RTC_SQWE | RTC_24H)
|
#define RTC_CONTROL_DEFAULT (RTC_SQWE | RTC_24H)
|
||||||
#define RTC_FREQ_SELECT_DEFAULT (RTC_REF_CLCK_32KHZ | RTC_RATE_1024HZ)
|
#define RTC_FREQ_SELECT_DEFAULT (RTC_REF_CLCK_32KHZ | RTC_RATE_1024HZ)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
void rtc_init(int invalid)
|
void rtc_init(int invalid)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user