mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
A22: default use 32K clock instead of 27M
This commit is contained in:
@@ -2592,8 +2592,8 @@ static void __init rk29_board_iomux_init(void)
|
||||
return -1;
|
||||
}
|
||||
//phy power down
|
||||
gpio_direction_output(RK29_PIN4_PC0, GPIO_LOW);
|
||||
gpio_set_value(RK29_PIN4_PC0, GPIO_LOW);
|
||||
gpio_direction_output(RK29_PIN4_PC0, GPIO_HIGH);
|
||||
gpio_set_value(RK29_PIN4_PC0, GPIO_HIGH);
|
||||
|
||||
rk29_mux_api_set(GPIO4C5_RMIICSRDVALID_MIIRXDVALID_NAME,GPIO4H_GPIO4C5);
|
||||
|
||||
|
||||
@@ -548,7 +548,10 @@ void __sramfunc pm_clk_switch_32k(void)
|
||||
{
|
||||
int vol;
|
||||
sram_printch('7');
|
||||
|
||||
#ifndef CONFIG_MACH_RK29_A22
|
||||
pm_gpio_out_high(RK29_PIN4_PC0);
|
||||
#endif
|
||||
sram_delay_loop(30);
|
||||
|
||||
crumode=cru_readl(CRU_MODE_CON); //24M to 27M
|
||||
@@ -565,8 +568,10 @@ void __sramfunc pm_clk_switch_32k(void)
|
||||
pm_gpio_out_low(RK29_PIN4_PC5);//enable 24M
|
||||
sram_udelay(1000,24);
|
||||
cru_writel(crumode, CRU_MODE_CON); //externel clk 24M
|
||||
|
||||
|
||||
#ifndef CONFIG_MACH_RK29_A22
|
||||
pm_gpio_out_low(RK29_PIN4_PC0); //enable 27M
|
||||
#endif
|
||||
sram_udelay(1000,27);
|
||||
sram_printch('7');
|
||||
|
||||
@@ -585,13 +590,13 @@ void __sramfunc pm_clk_switch(void)
|
||||
#ifdef CONFIG_RK29_GPIO_SUSPEND
|
||||
void pm_gpio_suspend(void)
|
||||
{
|
||||
pm_spi_gpio_suspend(); // spi pullup/pulldown disable.....<EFBFBD><EFBFBD>
|
||||
pm_spi_gpio_suspend(); // spi pullup/pulldown disable.....
|
||||
|
||||
}
|
||||
|
||||
void pm_gpio_resume(void)
|
||||
{
|
||||
pm_spi_gpio_resume(); // spi pullup/pulldown disable.....<EFBFBD><EFBFBD>
|
||||
pm_spi_gpio_resume(); // spi pullup/pulldown disable.....
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user