[PATCH] pxa: extend gpio pins from 128 to 256

Eric Miao eric.y.miao at gmail.com
Sun Oct 18 03:28:40 EDT 2009


Mmm... as long as the platforms call pxa2xx_mfp_config(), I was thinking the
pxa2xx part can remain intact, saving some bits.

Soon will be on the flight, will reply two days later. Thanks.

On Oct 18, 2009 2:43 PM, "Haojian Zhuang" <haojian.zhuang at gmail.com> wrote:

On Sun, Oct 18, 2009 at 2:03 AM, Eric Miao <eric.y.miao at gmail.com> wrote: >
On Sun, Oct 18, 2009 at ...
I think that mfp_to_gpio() macro is also a part of mfp driver. This
macro is used widely
in platform driver in order to allocate platform irq resource.
NR_BUILTIN_GPIO is similar
to this macro.

Because they're used in structure initialization, we can't use
detecting CPU method to
distinguish how much mfp/gpio pins can be applied on current CPU.
Since we couldn't
import variable or function into structure intialization code. Current
patch is the easiest
modification.

If there's a better solution, I'm glad to adopt it. :)

Thanks
Haojian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091018/a1d31678/attachment-0001.htm>


More information about the linux-arm-kernel mailing list