From: linjh Date: Thu, 26 May 2011 04:15:47 +0000 (+0800) Subject: a22: request power_pin gpio when gps power down X-Git-Tag: firefly_0821_release~10270 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f73e080547630a013b7343737af732fbd31c0058;p=firefly-linux-kernel-4.4.55.git a22: request power_pin gpio when gps power down --- diff --git a/arch/arm/mach-rk29/board-rk29-a22.c b/arch/arm/mach-rk29/board-rk29-a22.c index e6cb7e7a6595..0768e9519abd 100755 --- a/arch/arm/mach-rk29/board-rk29-a22.c +++ b/arch/arm/mach-rk29/board-rk29-a22.c @@ -1282,6 +1282,7 @@ int rk29_gps_power_down(void) { printk("%s \n", __FUNCTION__); + gpio_request(RK29_GPS_POWER_PIN, NULL); gpio_direction_output(RK29_GPS_POWER_PIN, GPIO_LOW); return 0; @@ -1442,7 +1443,7 @@ struct wm8994_pdata wm8994_platdata = { #define HEADSET_GPIO RK29_PIN3_PA6 struct rk2818_headset_data rk2818_headset_info = { .gpio = HEADSET_GPIO, - .irq_type = IRQF_TRIGGER_RISING,//IRQF_TRIGGER_RISING -- ÉÏÉýÑØ IRQF_TRIGGER_FALLING -- ϽµÑØ + .irq_type = IRQF_TRIGGER_RISING,//IRQF_TRIGGER_RISING -- ?????? IRQF_TRIGGER_FALLING -- ?½??? .headset_in_type= HEADSET_IN_HIGH, }; @@ -2667,7 +2668,7 @@ struct rk29xx_spi_platform_data rk29xx_spi1_platdata = { * author: hhb@rock-chips.com *****************************************************************************************/ #if defined(CONFIG_TOUCHSCREEN_XPT2046_NORMAL_SPI) || defined(CONFIG_TOUCHSCREEN_XPT2046_TSLIB_SPI) -#define XPT2046_GPIO_INT RK29_PIN4_PD5 //中断è„?#define DEBOUNCE_REPTIME 3 +#define XPT2046_GPIO_INT RK29_PIN4_PD5 //中断???#define DEBOUNCE_REPTIME 3 static struct xpt2046_platform_data xpt2046_info = { .model = 2046,