summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/sbc/sbc-ld11.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 20:07:37 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 22:41:57 +0900
commitf7f390576d063f9fc6c2a00792acd835a75c88aa (patch)
tree6ca10d44183b3348eb2ed52f5f27b207c06492d7 /arch/arm/mach-uniphier/sbc/sbc-ld11.c
parent92d6524b4f19cac08dd47f656bce59a7db6d3c47 (diff)
ARM: uniphier: check DT to determine whether to initialize SBC
If CONFIG_MICRO_SUPPORT_CARD is enabled, U-Boot initialize SBC (System Bus Controller), which may not be really necessary. Check the "socionext,uniphier-system-bus" node in DT run-time. If and only if it is found and its "status" property is okay, initialize the SBC block. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/sbc/sbc-ld11.c')
-rw-r--r--arch/arm/mach-uniphier/sbc/sbc-ld11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/sbc/sbc-ld11.c b/arch/arm/mach-uniphier/sbc/sbc-ld11.c
index 44d8a1e3bd..21972ac949 100644
--- a/arch/arm/mach-uniphier/sbc/sbc-ld11.c
+++ b/arch/arm/mach-uniphier/sbc/sbc-ld11.c
@@ -12,6 +12,9 @@
void uniphier_ld11_sbc_init(void)
{
+ if (!uniphier_sbc_is_enabled())
+ return;
+
uniphier_sbc_init_savepin();
/* necessary for ROM boot ?? */