summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/mips-boards/bonito64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/mips-boards/bonito64.h')
-rw-r--r--include/asm-mips/mips-boards/bonito64.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/asm-mips/mips-boards/bonito64.h b/include/asm-mips/mips-boards/bonito64.h
index cd712561010..dc3fc32eedd 100644
--- a/include/asm-mips/mips-boards/bonito64.h
+++ b/include/asm-mips/mips-boards/bonito64.h
@@ -26,7 +26,12 @@
/* offsets from base register */
#define BONITO(x) (x)
-#else /* !__ASSEMBLY__ */
+#elif defined(CONFIG_LEMOTE_FULONG)
+
+#define BONITO(x) (*(volatile u32 *)((char *)CKSEG1ADDR(BONITO_REG_BASE) + (x)))
+#define BONITO_IRQ_BASE 32
+
+#else
/*
* Algorithmics Bonito64 system controller register base.