|
|
@ -150,6 +150,7 @@ void ad_err2(unsigned long *adr, unsigned long bad); |
|
|
|
void ad_err1(unsigned long *adr1, unsigned long *adr2, unsigned long good, unsigned long bad); |
|
|
|
void mv_error(unsigned long *adr, unsigned long good, unsigned long bad); |
|
|
|
|
|
|
|
static void init_acpi(void); |
|
|
|
static void init_legacy_rtc(void); |
|
|
|
|
|
|
|
#ifdef INTERFACE_3A780E |
|
|
@ -285,6 +286,7 @@ void initmips(unsigned int raw_memsz) |
|
|
|
* Probe clock frequencys so delays will work properly. |
|
|
|
*/ |
|
|
|
ls7a_pwm(5000, 10000); |
|
|
|
init_acpi(); |
|
|
|
tgt_cpufreq(); |
|
|
|
SBD_DISPLAY("DONE",0); |
|
|
|
/*
|
|
|
@ -717,10 +719,19 @@ static void ls7a_pwm(int x,int y) |
|
|
|
readl(LS7A_PWM3_CTRL) |= 1; |
|
|
|
} |
|
|
|
|
|
|
|
static void init_acpi(void) |
|
|
|
{ |
|
|
|
if (ls7a_version ()) { |
|
|
|
do { |
|
|
|
readl(LS7A_ACPI_PMCON_RTC_REG) |= (0x3 << 9); |
|
|
|
} while (((readl(LS7A_ACPI_PMCON_RTC_REG) >> 9) & 0x3) != 0x3); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static void init_legacy_rtc(void) |
|
|
|
{ |
|
|
|
int year, month, date, hour, min, sec, val; |
|
|
|
val = (1 << 13) | (1 << 11) | (1 << 8); |
|
|
|
val = (1 << 11) | (1 << 8); |
|
|
|
|
|
|
|
outl(LS7A_RTC_CTRL_REG, val); |
|
|
|
outl(LS7A_TOY_TRIM_REG, 0); |
|
|
|