On Wed, Sep 12, 2012 at 10:15 AM, Julien De Bona <[email protected]> wrote: > Hello, > > I found that commit 2539387611b8b15bb2367275df9bfd3e29dc2a0e in December > 2010 broke the Gdium's GPIOs by doing this: > - set ARCH_NR_GPIOS to 4, which can fit the Loongson 2f's 4 GPIOs but not > the 64 GPIOs from the SM501 (the driver expects ARCH_NR_GPIOS==256) > - register ARCH_NR_GPIOS ls2f GPIOs, which allocates all potential GPIOs to > ls2f and leaves no room for the SM501 GPIOs. > > As many things are connected to the GPIOs on the Gdium, this broke many > things. > > I attached a patch fixing this problem. It sets ARCH_NR_GPIOS back to 256 > for Gdium and lets the ls2f driver only register the 4 GPIOs of the CPU. > It's a patch against an old head (Linux 3.2), but I don't think current code > has changed a lot. I hope to work on an up-to-date head once my netbook > works At least I hope it can be useful for someone. > > Regards > -- > Julien De Bona - [email protected]
Patches should go to Ralf and linux-mips@. Not here. -- You received this message because you are subscribed to the Google Groups "loongson-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/loongson-dev?hl=en.
