|
@@ -818,6 +818,19 @@ static struct platform_device bfin_device_gpiokeys = {
|
|
|
};
|
|
|
#endif
|
|
|
|
|
|
+static struct resource bfin_gpios_resources = {
|
|
|
+ .start = 0,
|
|
|
+ .end = MAX_BLACKFIN_GPIOS - 1,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device bfin_gpios_device = {
|
|
|
+ .name = "simple-gpio",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = 1,
|
|
|
+ .resource = &bfin_gpios_resources,
|
|
|
+};
|
|
|
+
|
|
|
static struct platform_device *stamp_devices[] __initdata = {
|
|
|
#if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
|
|
|
&bf5xx_nand_device,
|
|
@@ -895,6 +908,8 @@ static struct platform_device *stamp_devices[] __initdata = {
|
|
|
#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
|
|
|
&bfin_device_gpiokeys,
|
|
|
#endif
|
|
|
+
|
|
|
+ &bfin_gpios_device,
|
|
|
};
|
|
|
|
|
|
static int __init stamp_init(void)
|