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>
Tue, 27 Dec 2011 23:46:40 +0000 (01:46 +0200)
It is recommended to do a reset pulse so that the chip starts it's
power managent properly.

board/pandora/pandora.c

index 26f9979..9c75839 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");