#
# support for RK29 power manage
#
+CONFIG_RK29_WORKING_POWER_MANAGEMENT=y
CONFIG_RK29_CLK_SWITCH_TO_32K=y
CONFIG_RK29_GPIO_SUSPEND=y
CONFIG_RK29_SPI_INSRAM=y
It is only intended for debugging.
menu "support for RK29 power manage "
+config RK29_WORKING_POWER_MANAGEMENT
+ bool "Support power saving in working"
+ default n
+ help
+ a series of measures to reduce working power
+
config RK29_CLK_SWITCH_TO_32K
bool "Support clock switch to 32.768k"
default n
return -1;
}
//phy power down
+
+ #if defined (CONFIG_RK29_WORKING_POWER_MANAGEMENT)
gpio_direction_output(RK29_PIN4_PC0, GPIO_HIGH);
gpio_set_value(RK29_PIN4_PC0, GPIO_HIGH);
+ #else
+ gpio_direction_output(RK29_PIN4_PC0, GPIO_LOW);
+ gpio_set_value(RK29_PIN4_PC0, GPIO_LOW);
+ #endif
rk29_mux_api_set(GPIO4C5_RMIICSRDVALID_MIIRXDVALID_NAME,GPIO4H_GPIO4C5);
int vol;
sram_printch('7');
- #ifndef CONFIG_MACH_RK29_A22
+ #if defined (CONFIG_RK29_WORKING_POWER_MANAGEMENT)
+ //not code in here
+ #else
pm_gpio_out_high(RK29_PIN4_PC0);
#endif
sram_delay_loop(30);
sram_udelay(1000,24);
cru_writel(crumode, CRU_MODE_CON); //externel clk 24M
- #ifndef CONFIG_MACH_RK29_A22
+ #if defined (CONFIG_RK29_WORKING_POWER_MANAGEMENT)
+ //not code in here
+ #else
pm_gpio_out_low(RK29_PIN4_PC0); //enable 27M
#endif
sram_udelay(1000,27);