All pastes #817557 Raw Edit

Untitled

public text v1 · immutable
·published 2007-12-15 18:07 UTC
rendered paste body

This from platform_init - the comment is troubling

+
+       /* What USI had in their 2.4.21 kernel: */
+       ppc_md.set_rtc_time = iomega8241_set_rtc_time;
+       ppc_md.get_rtc_time = iomega8241_get_rtc_time;
+       ppc_md.calibrate_decr = todc_calibrate_decr;
+

...later

+static int iomega8241_set_rtc_time(unsigned long nowtime)
+{
+       struct rtc_time tm;
+       int result;
+
+       spin_lock(&rtc_lock);
+       to_tm(nowtime, &tm);
+       result = ds1337_do_command(0, DS1337_SET_DATE, &tm);
+       spin_unlock(&rtc_lock);
+
+       return result;
+}


...and...
 void __init
 todc_calibrate_decr(void)
 {
+#ifdef CONFIG_IOMEGA8241
+       ulong freq = 25000000;
+#else