From: yxj Date: Sun, 19 May 2013 07:45:55 +0000 (+0800) Subject: board jettaplus:add power deinit for rk616 X-Git-Tag: firefly_0821_release~7076 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fb5017529a47ad93c6f206e94081840ca325fd41;p=firefly-linux-kernel-4.4.55.git board jettaplus:add power deinit for rk616 --- diff --git a/arch/arm/mach-rk3188/board-rk3188-jettaplus.c b/arch/arm/mach-rk3188/board-rk3188-jettaplus.c index 525b7015acd6..03c8ede6d3de 100644 --- a/arch/arm/mach-rk3188/board-rk3188-jettaplus.c +++ b/arch/arm/mach-rk3188/board-rk3188-jettaplus.c @@ -738,8 +738,19 @@ static int rk616_power_on_init(void) } +static int rk616_power_deinit(void) +{ + gpio_set_value(RK616_PWREN_PIN,GPIO_LOW); + gpio_set_value(RK616_RST_PIN,GPIO_LOW); + gpio_free(RK616_PWREN_PIN); + gpio_free(RK616_RST_PIN); + + return 0; +} + static struct rk616_platform_data rk616_pdata = { .power_init = rk616_power_on_init, + .power_deinit = rk616_power_deinit, .scl_rate = RK616_SCL_RATE, .lcd0_func = INPUT, //port lcd0 as input .lcd1_func = INPUT, //port lcd1 as input @@ -1621,8 +1632,8 @@ static struct pmu_info wm8326_dcdc_info[] = { #else { .name = "dcdc4", //vcc_io - .min_uv = 3200000, - .max_uv = 3200000, + .min_uv = 3000000, + .max_uv = 3000000, .suspend_vol = 2800000, }, #endif