From: 许盛飞 Date: Mon, 21 Apr 2014 06:36:47 +0000 (+0800) Subject: USB_AVDD_1V8: optimizing the usb1v8 power consumption X-Git-Tag: firefly_0821_release~5492 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8eaf8928886744ba971036e0682a5c79696da8cd;p=firefly-linux-kernel-4.4.55.git USB_AVDD_1V8: optimizing the usb1v8 power consumption --- diff --git a/arch/arm/mach-rockchip/pm-rk3288.c b/arch/arm/mach-rockchip/pm-rk3288.c index 6b45b8d7663b..304a907b67ca 100755 --- a/arch/arm/mach-rockchip/pm-rk3288.c +++ b/arch/arm/mach-rockchip/pm-rk3288.c @@ -25,6 +25,8 @@ //#include "sram.h" #include "pm-pie.c" +__weak void rk_usb_power_down(void); +__weak void rk_usb_power_up(void); static void ddr_pin_set_pull(u8 port,u8 bank,u8 b_gpio,u8 fun); static void ddr_gpio_set_in_output(u8 port,u8 bank,u8 b_gpio,u8 type); @@ -1133,6 +1135,8 @@ static inline void rkpm_peri_resume_first(u32 power_mode) static void rkpm_slp_setting(void) { + rk_usb_power_down(); + //rkpm_gic_disable(130); // rkpm_gic_disable(132); @@ -1143,6 +1147,7 @@ static void rkpm_slp_setting(void) static void rkpm_save_setting_resume_first(void) { + rk_usb_power_down(); rkpm_peri_resume_first(rk3288_powermode); // rkpm_ddr_printhex(cru_readl(RK3288_CRU_MODE_CON));