summaryrefslogtreecommitdiffstats
path: root/board/hymod/hymod.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/hymod/hymod.c')
-rw-r--r--board/hymod/hymod.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/board/hymod/hymod.c b/board/hymod/hymod.c
index 3611a12977..dea0a70a23 100644
--- a/board/hymod/hymod.c
+++ b/board/hymod/hymod.c
@@ -513,3 +513,25 @@ last_stage_init (void)
return (0);
}
+
+#ifdef CONFIG_SHOW_ACTIVITY
+void board_show_activity (ulong timebase)
+{
+#ifdef CFG_HYMOD_DBLEDS
+ volatile immap_t *immr = (immap_t *) CFG_IMMR;
+ volatile iop8260_t *iop = &immr->im_ioport;
+ static int shift = 0;
+
+ if ((timestamp % CFG_HZ) == 0) {
+ if (++shift > 3)
+ shift = 0;
+ iop->iop_pdatd =
+ (iop->iop_pdatd & ~0x0f000000) | (1 << (24 + shift));
+ }
+#endif /* CFG_HYMOD_DBLEDS */
+}
+
+void show_activity(int arg)
+{
+}
+#endif /* CONFIG_SHOW_ACTIVITY */
OpenPOWER on IntegriCloud