提交 cad2ab65 编写于 作者: M Mike Frysinger 提交者: Bryan Wu

[Blackfin] arch: add board resources for new simple-gpio char driver

Signed-off-by: NMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 edf05641
...@@ -818,6 +818,19 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -818,6 +818,19 @@ static struct platform_device bfin_device_gpiokeys = {
}; };
#endif #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 = { static struct platform_device *stamp_devices[] __initdata = {
#if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
&bf5xx_nand_device, &bf5xx_nand_device,
...@@ -895,6 +908,8 @@ static struct platform_device *stamp_devices[] __initdata = { ...@@ -895,6 +908,8 @@ static struct platform_device *stamp_devices[] __initdata = {
#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
&bfin_device_gpiokeys, &bfin_device_gpiokeys,
#endif #endif
&bfin_gpios_device,
}; };
static int __init stamp_init(void) static int __init stamp_init(void)
......
...@@ -298,6 +298,19 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -298,6 +298,19 @@ static struct platform_device bfin_device_gpiokeys = {
}; };
#endif #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,
};
#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
#include <linux/i2c-gpio.h> #include <linux/i2c-gpio.h>
...@@ -350,6 +363,8 @@ static struct platform_device *ezkit_devices[] __initdata = { ...@@ -350,6 +363,8 @@ static struct platform_device *ezkit_devices[] __initdata = {
#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
&i2c_gpio_device, &i2c_gpio_device,
#endif #endif
&bfin_gpios_device,
}; };
static int __init ezkit_init(void) static int __init ezkit_init(void)
......
...@@ -457,6 +457,19 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -457,6 +457,19 @@ static struct platform_device bfin_device_gpiokeys = {
}; };
#endif #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,
};
#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
#include <linux/i2c-gpio.h> #include <linux/i2c-gpio.h>
...@@ -518,6 +531,8 @@ static struct platform_device *stamp_devices[] __initdata = { ...@@ -518,6 +531,8 @@ static struct platform_device *stamp_devices[] __initdata = {
#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
&i2c_gpio_device, &i2c_gpio_device,
#endif #endif
&bfin_gpios_device,
&stamp_flash_device, &stamp_flash_device,
}; };
......
...@@ -128,6 +128,19 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -128,6 +128,19 @@ static struct platform_device bfin_device_gpiokeys = {
}; };
#endif #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,
};
#if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE) #if defined(CONFIG_BFIN_CFPCMCIA) || defined(CONFIG_BFIN_CFPCMCIA_MODULE)
static struct resource bfin_pcmcia_cf_resources[] = { static struct resource bfin_pcmcia_cf_resources[] = {
{ {
...@@ -821,6 +834,8 @@ static struct platform_device *stamp_devices[] __initdata = { ...@@ -821,6 +834,8 @@ static struct platform_device *stamp_devices[] __initdata = {
#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
&bfin_device_gpiokeys, &bfin_device_gpiokeys,
#endif #endif
&bfin_gpios_device,
&stamp_flash_device, &stamp_flash_device,
}; };
......
...@@ -594,6 +594,19 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -594,6 +594,19 @@ static struct platform_device bfin_device_gpiokeys = {
}; };
#endif #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 *ezkit_devices[] __initdata = { static struct platform_device *ezkit_devices[] __initdata = {
#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
&rtc_device, &rtc_device,
...@@ -646,6 +659,8 @@ static struct platform_device *ezkit_devices[] __initdata = { ...@@ -646,6 +659,8 @@ static struct platform_device *ezkit_devices[] __initdata = {
#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
&bfin_device_gpiokeys, &bfin_device_gpiokeys,
#endif #endif
&bfin_gpios_device,
&ezkit_flash_device, &ezkit_flash_device,
}; };
......
...@@ -389,6 +389,19 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -389,6 +389,19 @@ static struct platform_device bfin_device_gpiokeys = {
}; };
#endif #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,
};
#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
#include <linux/i2c-gpio.h> #include <linux/i2c-gpio.h>
...@@ -446,6 +459,7 @@ static struct platform_device *ezkit_devices[] __initdata = { ...@@ -446,6 +459,7 @@ static struct platform_device *ezkit_devices[] __initdata = {
&isp1362_hcd_device, &isp1362_hcd_device,
#endif #endif
&bfin_gpios_device,
&ezkit_flash_device, &ezkit_flash_device,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册