Re: [rtc-linux] Re: [PATCH] x86: i2c rtc instead of cmos rtc

From: Alessandro Zummo
Date: Thu Jan 29 2009 - 16:19:39 EST


On Thu, 29 Jan 2009 13:12:49 -0800
Ed Swierk <eswierk@xxxxxxxxxxxxxxxxxx> wrote:

> > I object to options of this kind. It took us a lot of efforts to move
> > to the new i2c model and to the concept that devices have to be declared
> > in the board support code. This kind of hack is in the opposite direction.
>
> I see. I encountered board support code when I worked with PowerPC
> boards on Linux years ago but I haven't seen this in the x86 arch
> code. Can you point me to an example?

Under x86 the thing is not well defined, but you can check

arch/x86/kernel/olpc.c

for an example.

If you just have to load different modules I'd use an initrd
where you can place all the necessary logic to detect your board


--

Best regards,

Alessandro Zummo,
Tower Technologies - Torino, Italy

http://www.towertech.it

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/