Re: Detecting XO-1.5 in kernel boot

2010-09-21 Thread Mitch Bradley
On 9/21/2010 6:15 AM, Daniel Drake wrote: I'm working on XO-1.5 support upstream and would appreciate comments on the following: The very core am I an XO? check that runs during boot is this: http://lxr.free-electrons.com/source/arch/x86/kernel/olpc.c#L212 It runs ioremap() on

Re: Detecting XO-1.5 in kernel boot

2010-09-21 Thread Andres Salomon
On Tue, 21 Sep 2010 06:35:48 -1000 Mitch Bradley w...@laptop.org wrote: On 9/21/2010 6:15 AM, Daniel Drake wrote: I'm working on XO-1.5 support upstream and would appreciate comments on the following: The very core am I an XO? check that runs during boot is this:

Re: Detecting XO-1.5 in kernel boot

2010-09-21 Thread Mitch Bradley
On 9/21/2010 7:24 AM, Andres Salomon wrote: On Tue, 21 Sep 2010 06:35:48 -1000 Mitch Bradleyw...@laptop.org wrote: ... You could get all the information from the device tree, after having first checked for the presence of the device tree by looking for the relevant files.