add wifi reset on boot
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 16 Jan 2011 15:39:44 +0000 (17:39 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 16 Jan 2011 15:58:20 +0000 (17:58 +0200)
It is recommended to do a reset pulse so that the chip starts it's
power managent properly.

board/pandora/pandora.c

index 7294522..7209279 100644 (file)
@@ -92,6 +92,11 @@ int misc_init_r(void)
 
        dieid_num_r();
 
+       /* pulse wifi nreset, as recommended by manufacturer */
+       writel(GPIO23, &gpio1_base->setdataout);
+       udelay(5000);
+       writel(GPIO23, &gpio1_base->cleardataout);
+
        /* show boot menu? */
        if (!(readl(&gpio4_base->datain) & GPIO9))
                setenv("preboot", "pmenu");