htcleo: fixed wlan problems on nand boot

We have to reset the sdc1 clock on boot.
Credits to Cotulla/LeTama
This commit is contained in:
Markinus 2010-10-10 12:22:25 +02:00
parent c2245c074a
commit ce5f6752bf

View File

@ -733,6 +733,16 @@ static void do_grp_reset(void)
{
writel(0x20000, MSM_CLK_CTL_BASE + 0x214);
}
static void do_sdc1_reset(void)
{
volatile uint32_t* sdc1_clk = MSM_CLK_CTL_BASE + 0x218;
*sdc1_clk |= (1 << 9);
mdelay(1);
*sdc1_clk &= ~(1 << 9);
}
///////////////////////////////////////////////////////////////////////
// Init
///////////////////////////////////////////////////////////////////////
@ -747,6 +757,7 @@ static void __init htcleo_init(void)
msm_hw_reset_hook = htcleo_reset;
do_grp_reset();
do_sdc1_reset();
msm_acpu_clock_init(&htcleo_clock_data);