diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-04-30 14:09:01 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-04-30 14:09:01 +0000 |
commit | ca100df2daafc6d27ded075273bcdd67e4e41a8a (patch) | |
tree | a1232f12aa1268d422b861040f99579a09141cf8 /target | |
parent | 80b702a504f806ae026a4a2f0953dd5e94f0da19 (diff) | |
download | upstream-ca100df2daafc6d27ded075273bcdd67e4e41a8a.tar.gz upstream-ca100df2daafc6d27ded075273bcdd67e4e41a8a.tar.bz2 upstream-ca100df2daafc6d27ded075273bcdd67e4e41a8a.zip |
[brmc63xx] register gpiodev
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15509 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/brcm63xx/config-2.6.27 | 1 | ||||
-rw-r--r-- | target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/config-2.6.27 b/target/linux/brcm63xx/config-2.6.27 index b99bd03f2d..9f690bb96a 100644 --- a/target/linux/brcm63xx/config-2.6.27 +++ b/target/linux/brcm63xx/config-2.6.27 @@ -81,6 +81,7 @@ CONFIG_GENERIC_FIND_NEXT_BIT=y CONFIG_GENERIC_GPIO=y # CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ is not set CONFIG_GPIOLIB=y +CONFIG_GPIO_DEVICE=y # CONFIG_HAMRADIO is not set CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c index c16ebc8672..f85494d884 100644 --- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c @@ -494,6 +494,10 @@ static struct ssb_sprom bcm63xx_sprom = { .boardflags_hi = 0x0000, }; +static struct resource gpiodev_resource = { + .start = 0xFFFFFFFF, +}; + /* * third stage init callback, register all board devices. */ @@ -541,6 +545,9 @@ int __init board_register_devices(void) platform_device_register(&mtd_dev); + /* Register GPIODEV */ + platform_device_register_simple("GPIODEV", 0, &gpiodev_resource, 1); + return 0; } |