|
@@ -183,6 +183,37 @@ static struct platform_device bf54x_kpad_device = {
|
|
};
|
|
};
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#if defined(CONFIG_JOYSTICK_BFIN_ROTARY) || defined(CONFIG_JOYSTICK_BFIN_ROTARY_MODULE)
|
|
|
|
+#include <asm/bfin_rotary.h>
|
|
|
|
+
|
|
|
|
+static struct bfin_rotary_platform_data bfin_rotary_data = {
|
|
|
|
+ /*.rotary_up_key = KEY_UP,*/
|
|
|
|
+ /*.rotary_down_key = KEY_DOWN,*/
|
|
|
|
+ .rotary_rel_code = REL_WHEEL,
|
|
|
|
+ .rotary_button_key = KEY_ENTER,
|
|
|
|
+ .debounce = 10, /* 0..17 */
|
|
|
|
+ .mode = ROT_QUAD_ENC | ROT_DEBE,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct resource bfin_rotary_resources[] = {
|
|
|
|
+ {
|
|
|
|
+ .start = IRQ_CNT,
|
|
|
|
+ .end = IRQ_CNT,
|
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device bfin_rotary_device = {
|
|
|
|
+ .name = "bfin-rotary",
|
|
|
|
+ .id = -1,
|
|
|
|
+ .num_resources = ARRAY_SIZE(bfin_rotary_resources),
|
|
|
|
+ .resource = bfin_rotary_resources,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &bfin_rotary_data,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+#endif
|
|
|
|
+
|
|
#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
|
|
#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
|
|
static struct platform_device rtc_device = {
|
|
static struct platform_device rtc_device = {
|
|
.name = "rtc-bfin",
|
|
.name = "rtc-bfin",
|
|
@@ -817,6 +848,10 @@ static struct platform_device *ezkit_devices[] __initdata = {
|
|
&bf54x_kpad_device,
|
|
&bf54x_kpad_device,
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#if defined(CONFIG_JOYSTICK_BFIN_ROTARY) || defined(CONFIG_JOYSTICK_BFIN_ROTARY_MODULE)
|
|
|
|
+ &bfin_rotary_device,
|
|
|
|
+#endif
|
|
|
|
+
|
|
#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
|
|
#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
|
|
&i2c_bfin_twi0_device,
|
|
&i2c_bfin_twi0_device,
|
|
#if !defined(CONFIG_BF542)
|
|
#if !defined(CONFIG_BF542)
|