summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/sbc/sbc-regs.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 20:07:38 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 22:41:58 +0900
commit539d6e0dbc9634cbf0e14a383d2907e6e462558a (patch)
tree4608fa3b804f12c9aa3abacf29095377a63c6b38 /arch/arm/mach-uniphier/sbc/sbc-regs.h
parentf7f390576d063f9fc6c2a00792acd835a75c88aa (diff)
ARM: uniphier: make boot_is_swapped() code optional
The planned new SoC does not have SBC (System Bus Controller) block. Make boot_is_swapped() an optional hook. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/sbc/sbc-regs.h')
-rw-r--r--arch/arm/mach-uniphier/sbc/sbc-regs.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-uniphier/sbc/sbc-regs.h b/arch/arm/mach-uniphier/sbc/sbc-regs.h
index e866816472..1e9618653f 100644
--- a/arch/arm/mach-uniphier/sbc/sbc-regs.h
+++ b/arch/arm/mach-uniphier/sbc/sbc-regs.h
@@ -76,14 +76,7 @@
#define PC0CTRL 0x598000c0
-#ifndef __ASSEMBLY__
-#include <linux/io.h>
-static inline int boot_is_swapped(void)
-{
- return !(readl(SBBASE0) & SBBASE_BANK_ENABLE);
-}
-#endif
-
+int uniphier_sbc_boot_is_swapped(void);
int uniphier_sbc_is_enabled(void);
#endif /* ARCH_SBC_REGS_H */