aboutsummaryrefslogtreecommitdiffstats
path: root/board/spc1920
diff options
context:
space:
mode:
authorMarkus Klotzbuecher <mk@denx.de>2007-01-09 14:57:12 +0100
committerMarkus Klotzbuecher <mk@pollux.denx.de>2007-01-09 14:57:12 +0100
commite4c2d37adc8bb1bf69dcf600cbc6c75f916a6120 (patch)
tree2e5ebf3dd5348f2286d2ae320e75006482d0c0f7 /board/spc1920
parent0be62728aac459ba268d6d752ed49ec0e2bc7348 (diff)
downloadu-boot-midas-e4c2d37adc8bb1bf69dcf600cbc6c75f916a6120.tar.gz
u-boot-midas-e4c2d37adc8bb1bf69dcf600cbc6c75f916a6120.tar.bz2
u-boot-midas-e4c2d37adc8bb1bf69dcf600cbc6c75f916a6120.zip
SPC1920 GO/NOGO led should be set to color red in U-Boot
Diffstat (limited to 'board/spc1920')
-rw-r--r--board/spc1920/spc1920.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/spc1920/spc1920.c b/board/spc1920/spc1920.c
index 1fc2ea1fb4..d0a6ff1eba 100644
--- a/board/spc1920/spc1920.c
+++ b/board/spc1920/spc1920.c
@@ -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;