[RFC/PATCH] dns323: Support for HW rev C1

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Apr 21 04:31:40 EDT 2010


On Wed, 2010-04-21 at 18:28 +1000, Benjamin Herrenschmidt wrote:
> This patch adds support for HW rev C1 of this critter. I have figured
> out -most- of the GPIO layout, though there are still some unknowns.
> 
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
> 
> Some of it is a tad hackish, so I'm open to suggestions as to how to do
> it better and I'm happy to split the drivers/net part upon request, this
> is really just [RFC] at this stage. 

Oh a couple more things...

The fans are controlled via 2 GPIOs on this (see the explanation in the
patch). Do you guys think I should create some kind of pseudo hwmon
device so it can be controlled with one file where you write "off",
"low", "high", or should I just let userspace cope.

Also, it would be nice for said userspace to know the HW revision to be
able to get the right fan control method for example.

Do you have a hook in ARM for adding something to /proc/cpuinfo where I
could export the board revision ? Or a "standard" practice to do that ?

Cheers,
Ben.





More information about the linux-arm-kernel mailing list