[U-Boot] [PATCH 2/2] arm: spear: enable SSP (SPI controllers) clocks when PL022 is enabled

Quentin Schulz quentin.schulz at bootlin.com
Tue Aug 7 09:17:18 UTC 2018


There are three separate clocks for each SSP (SPI) controller in the
SoC. These SPI controllers are ARM PL022 controllers.

Let's enable the clocks when support for PL022 SPI controller is
enabled.

Signed-off-by: Quentin Schulz <quentin.schulz at bootlin.com>
---
 arch/arm/cpu/arm926ejs/spear/cpu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/cpu/arm926ejs/spear/cpu.c b/arch/arm/cpu/arm926ejs/spear/cpu.c
index 0970aca..8046ad0 100644
--- a/arch/arm/cpu/arm926ejs/spear/cpu.c
+++ b/arch/arm/cpu/arm926ejs/spear/cpu.c
@@ -49,6 +49,9 @@ int arch_cpu_init(void)
 #if defined(CONFIG_USB_EHCI_SPEAR)
 	periph1_clken |= PERIPH_USBH1 | PERIPH_USBH2;
 #endif
+#if defined(CONFIG_PL022_SPI)
+	periph1_clken |= PERIPH_SSP1 | PERIPH_SSP2 | PERIPH_SSP3;
+#endif
 
 	writel(periph1_clken, &misc_p->periph1_clken);
 
-- 
git-series 0.9.1


More information about the U-Boot mailing list