aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-08-01 13:09:47 +0000
committerwdenk <wdenk>2004-08-01 13:09:47 +0000
commitcfca5e604d5692f081cc1a9185ca5dc6dc77599d (patch)
tree3e8b3448cbc57a26f1f5ee8d3b28214740f6cedc /board
parent45eeb8983c3eca0e82178897c027a34a52295a0f (diff)
* Fix NSCU config; add ethernet wakeup code.
* Add link for preloader for Motorola Coldfire to RAEDME.m68k
Diffstat (limited to 'board')
-rw-r--r--board/tqm8xx/tqm8xx.c33
1 files changed, 27 insertions, 6 deletions
diff --git a/board/tqm8xx/tqm8xx.c b/board/tqm8xx/tqm8xx.c
index b90f5e767..a7a6f2a2f 100644
--- a/board/tqm8xx/tqm8xx.c
+++ b/board/tqm8xx/tqm8xx.c
@@ -445,12 +445,14 @@ int board_early_init_r (void)
#endif /* CONFIG_PS2MULT */
-/* ------------------------------------------------------------------------- */
+/* ---------------------------------------------------------------------------- */
+/* HMI10 specific stuff */
+/* ---------------------------------------------------------------------------- */
#ifdef CONFIG_HMI10
int misc_init_r (void)
{
-#ifdef CONFIG_IDE_LED
+# ifdef CONFIG_IDE_LED
volatile immap_t *immap = (immap_t *) CFG_IMMR;
/* Configure PA15 as output port */
@@ -458,11 +460,11 @@ int misc_init_r (void)
immap->im_ioport.iop_paodr |= 0x0001;
immap->im_ioport.iop_papar &= ~0x0001;
immap->im_ioport.iop_padat &= ~0x0001; /* turn it off */
-#endif
+# endif
return (0);
}
-#ifdef CONFIG_IDE_LED
+# ifdef CONFIG_IDE_LED
void ide_led (uchar led, uchar status)
{
volatile immap_t *immap = (immap_t *) CFG_IMMR;
@@ -474,7 +476,26 @@ void ide_led (uchar led, uchar status)
immap->im_ioport.iop_padat &= ~0x0001;
}
}
-#endif
+# endif
+#endif /* CONFIG_HMI10 */
+
+/* ---------------------------------------------------------------------------- */
+/* NSCU specific stuff */
+/* ---------------------------------------------------------------------------- */
+#ifdef CONFIG_NSCU
+
+int misc_init_r (void)
+{
+ volatile immap_t *immr = (immap_t *) CFG_IMMR;
+
+ /* wake up ethernet module */
+ immr->im_ioport.iop_pcpar &= ~0x0004; /* GPIO pin */
+ immr->im_ioport.iop_pcdir |= 0x0004; /* output */
+ immr->im_ioport.iop_pcso &= ~0x0004; /* for clarity */
+ immr->im_ioport.iop_pcdat |= 0x0004; /* enable */
+
+ return (0);
+}
+#endif /* CONFIG_NSCU */
-#endif /* CONFIG_HMI10 */
/* ------------------------------------------------------------------------- */