]> git.sur5r.net Git - u-boot/commitdiff
SPC1920 GO/NOGO led should be set to color red in U-Boot
authorMarkus Klotzbuecher <mk@denx.de>
Tue, 9 Jan 2007 13:57:12 +0000 (14:57 +0100)
committerMarkus Klotzbuecher <mk@pollux.denx.de>
Tue, 9 Jan 2007 13:57:12 +0000 (14:57 +0100)
board/spc1920/spc1920.c

index 1fc2ea1fb49f3bfeba05f9eee003d0d7f80d8df5..d0a6ff1eba917e96fd78d1a5afe110bbe3c1c733 100644 (file)
@@ -209,12 +209,20 @@ int board_early_init_f(void)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
 
+       /* Set Go/NoGo led (PA15) to color red */
+       immap->im_ioport.iop_papar &= ~0x1;
+       immap->im_ioport.iop_paodr &= ~0x1;
+       immap->im_ioport.iop_padir |= 0x1;
+       immap->im_ioport.iop_padat |= 0x1;
 
+#if 0
        /* Turn on LED PD9 */
        immap->im_ioport.iop_pdpar &= ~(0x0040);
        immap->im_ioport.iop_pddir |= 0x0040;
        immap->im_ioport.iop_pddat |= 0x0040;
 
+#endif
+
        /* Enable PD10 (COM2_EN) */
        immap->im_ioport.iop_pdpar &= ~0x0020;
        immap->im_ioport.iop_pddir &= ~0x4000;