experimental gpiodev support (closes #3613)
[openwrt/openwrt.git] / target / linux / adm5120 / files / arch / mips / adm5120 / platform.c
index d61e7c65de2762f920007d57be8c09432f0db7c8..26de8f0c63724d22f813e3c3b82fa2c05cc648b2 100644 (file)
@@ -216,6 +216,18 @@ struct platform_device adm5120_buttons_device = {
        .dev.platform_data = &adm5120_buttons_data,
 };
 
+/* GPIO char device */
+struct resource adm5120_gpiodev_resource = {
+       .start  = 0x3fffff,
+};
+
+struct platform_device adm5120_gpiodev_device =        {
+       .name           = "GPIODEV",
+       .id             = -1,
+       .num_resources  = 1,
+       .resource       = &adm5120_gpiodev_resource,
+};
+
 void adm5120_uart_set_mctrl(struct amba_device *dev, void __iomem *base,
                unsigned int mctrl)
 {