summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChee Hong Ang <chee.hong.ang@intel.com>2020-12-24 18:21:10 +0800
committerLey Foon Tan <ley.foon.tan@intel.com>2021-01-15 17:48:38 +0800
commit7cfb5d85cebbea1a4fd5351dffb9600c5496bee2 (patch)
tree8935e208b6a07f957d5b050794a5c8dbe7c0575d
parent482bc18d4a6455f4a350a1cd0f899abed62b64da (diff)
arm: socfpga: soc64: Skip handoff data access in SSBL
SPL already setup the Clock Manager with the handoff data from OCRAM. When the Clock Manager's driver get probed again in SSBL, it shall skip the handoff data access in OCRAM. Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>
-rw-r--r--arch/arm/mach-socfpga/wrap_pll_config_s10.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/wrap_pll_config_s10.c b/arch/arm/mach-socfpga/wrap_pll_config_s10.c
index 3da85791a1f..049c5711a89 100644
--- a/arch/arm/mach-socfpga/wrap_pll_config_s10.c
+++ b/arch/arm/mach-socfpga/wrap_pll_config_s10.c
@@ -12,6 +12,7 @@
const struct cm_config * const cm_get_default_config(void)
{
+#ifdef CONFIG_SPL_BUILD
struct cm_config *cm_handoff_cfg = (struct cm_config *)
(S10_HANDOFF_CLOCK + S10_HANDOFF_OFFSET_DATA);
u32 *conversion = (u32 *)cm_handoff_cfg;
@@ -26,7 +27,7 @@ const struct cm_config * const cm_get_default_config(void)
} else if (handoff_clk == S10_HANDOFF_MAGIC_CLOCK) {
return cm_handoff_cfg;
}
-
+#endif
return NULL;
}