From 17673db49f624725d1fc83826b9700e2400ea56d Mon Sep 17 00:00:00 2001 From: swj Date: Mon, 13 Sep 2010 02:34:10 -0700 Subject: [PATCH] change jogball for it50 --- arch/arm/mach-rk2818/board-infoit50.c | 12 ++++++++++++ arch/arm/mach-rk2818/devices.h | 1 + 2 files changed, 13 insertions(+) mode change 100755 => 100644 arch/arm/mach-rk2818/devices.h diff --git a/arch/arm/mach-rk2818/board-infoit50.c b/arch/arm/mach-rk2818/board-infoit50.c index f91a2e6590bc..6956c5345393 100644 --- a/arch/arm/mach-rk2818/board-infoit50.c +++ b/arch/arm/mach-rk2818/board-infoit50.c @@ -1368,6 +1368,18 @@ struct adc_key_data rk2818_adc_key = { struct rk2818_adckey_platform_data rk2818_adckey_platdata = { .adc_key = &rk2818_adc_key, }; + +struct jgball_data rk2818_jogball = { + .pin_up = TCA6424_P11, + .pin_down = TCA6424_P06, + .pin_left = TCA6424_P10, + .pin_right = TCA6424_P07, +}; +struct rk2818_jogball_paltform_data rk2818_jogball_platdata = { + .jogball_key = &rk2818_jogball, +}; + + #if CONFIG_ANDROID_TIMED_GPIO struct timed_gpio_platform_data rk28_vibrator_info = { .num_gpios = 0, diff --git a/arch/arm/mach-rk2818/devices.h b/arch/arm/mach-rk2818/devices.h old mode 100755 new mode 100644 index f91bc671adca..560b0d82ab1f --- a/arch/arm/mach-rk2818/devices.h +++ b/arch/arm/mach-rk2818/devices.h @@ -51,6 +51,7 @@ extern struct platform_device rk2818_device_fb; extern struct platform_device rk2818_device_adc; extern struct platform_device rk2818_device_adckey; extern struct rk2818_adckey_platform_data rk2818_adckey_platdata; +extern struct rk2818_jogball_paltform_data rk2818_jogball_platdata; extern struct platform_device rk2818_device_battery; extern struct rk2818_battery_platform_data rk2818_battery_platdata; extern struct platform_device rk2818_device_backlight; -- 2.34.1