[adm5120] experimental gpiodev support (closes #3613)
[15.05/openwrt.git] / target / linux / adm5120 / files / arch / mips / adm5120 / platform.c
index d61e7c6..26de8f0 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)
 {