[brmc63xx] register gpiodev
authorFlorian Fainelli <florian@openwrt.org>
Thu, 30 Apr 2009 14:09:01 +0000 (14:09 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 30 Apr 2009 14:09:01 +0000 (14:09 +0000)
SVN-Revision: 15509

target/linux/brcm63xx/config-2.6.27
target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c

index b99bd03..9f690bb 100644 (file)
@@ -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
index c16ebc8..f85494d 100644 (file)
@@ -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;
 }