new file mode 100644
@@ -0,0 +1,29 @@
+#ifndef MMCIF_MACKEREL_H
+#define MMCIF_MACKEREL_H
+
+#define PORT0CR 0xe6051001
+#define PORT1CR 0xe6051002
+#define PORT2CR 0xe6051003
+#define PORT3CR 0xe6051004
+
+#define PORTR031_000DR 0xe6055000
+
+static inline void mmcif_init_progress(void)
+{
+ /* Initialise LEDS0-3
+ * registers: PORT0CR-PORT1CR (LED0-LED3 Control)
+ * value: 0x10 - enable output
+ */
+ __raw_writeb(0x10, PORT0CR);
+ __raw_writeb(0x10, PORT1CR);
+ __raw_writeb(0x10, PORT2CR);
+ __raw_writeb(0x10, PORT3CR);
+}
+
+static inline void mmcif_update_progress(int n)
+{
+ __raw_writel((__raw_readl(PORTR031_000DR) & 0xf) |
+ (1 << n), PORTR031_000DR);
+}
+
+#endif /* MMCIF_MACKEREL_H */
@@ -9,6 +9,8 @@
#ifdef CONFIG_MACH_AP4EVB
#include "mach/mmcif-ap4eb.h"
+#elif CONFIG_MACH_MACKEREL
+#include "mach/mmcif-mackerel.h"
#else
#error "unsupported board."
#endif