enhanced RTC and SMP on PowerMac

Geert Uytterhoeven geert at linux-m68k.org
Thu Jan 6 19:24:57 EST 2000


On Wed, 5 Jan 2000, Naoki Takebayashi wrote:
> Is enhanced RTC supposed to work on PowerMac?  When I compile with
> CONFIG_RTC, the kernel doesn't boot up and dies when it hits the following
> line:
> 
>    /* Initialize periodic freq. to CMOS reset default, which is 1024Hz */
>    CMOS_WRITE(((CMOS_READ(RTC_FREQ_SELECT) & 0xF0) | 0x06), RTC_FREQ_SELECT);
> 
> in the function, __initfunc(int rtc_init(void)), in
> linux/drivers/char/rtc.c.
> 
> I'm using 2.2.14 on PowerSurge board (UMAX S900).
> 
> I was looking at the linux/arch/ppc/kernel/pmac_time.c and prep_time.c.
> And I noticed, that PReP machine uses CMOS_WRITE to access RTC, but
> PowerMac uses cuda to access RTC instead of CMOS_WRITE.  So I'm guessing
> that enhanced RTC doesn't work on the PowerMacs, right now.

To use enhanced RTC (/dev/rtc) on anything without a PC RTC, you have to write
a specific driver for your hardware first.

Gr{oetje,eeting}s,
--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list