[U-Boot] [PATCH 01/10] arm: Add omap5 pruss1 and pruss2 to prcm structure

Greg Leonberg greg.leonberg at sunhillo.com
Wed Jul 27 21:27:48 CEST 2022


The pruss1_clkctrl and pruss2_clkctrl registers need to be added to the 
prcm register structure in order to allow the pruss driver to enable the 
clock for each of them during the pruss probe function calls for am57xx

Signed-off-by: Greg Leonberg <greg.leonberg at sunhillo.com>
---
 arch/arm/include/asm/omap_common.h    | 2 ++
 arch/arm/mach-omap2/omap5/prcm-regs.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h
index 40c4411..bd17295 100644
--- a/arch/arm/include/asm/omap_common.h
+++ b/arch/arm/include/asm/omap_common.h
@@ -241,6 +241,8 @@ struct prcm_regs {
 	u32 cm_l4per_clkstctrl;
 	u32 cm_l4per_dynamicdep;
 	u32 cm_l4per_adc_clkctrl;
+	u32 cm_l4per2_pruss1_clkctrl;
+	u32 cm_l4per2_pruss2_clkctrl;
 	u32 cm_l4per_gptimer10_clkctrl;
 	u32 cm_l4per_gptimer11_clkctrl;
 	u32 cm_l4per_gptimer2_clkctrl;
diff --git a/arch/arm/mach-omap2/omap5/prcm-regs.c b/arch/arm/mach-omap2/omap5/prcm-regs.c
index 164b747..d6fa9ce 100644
--- a/arch/arm/mach-omap2/omap5/prcm-regs.c
+++ b/arch/arm/mach-omap2/omap5/prcm-regs.c
@@ -940,6 +940,8 @@ struct prcm_regs const dra7xx_prcm = {
 	/* cm2.l4per */
 	.cm_l4per_clkstctrl			= 0x4a009700,
 	.cm_l4per_dynamicdep			= 0x4a009708,
+	.cm_l4per2_pruss1_clkctrl       = 0x4a009718,
+	.cm_l4per2_pruss2_clkctrl       = 0x4a009720,
 	.cm_l4per_gptimer10_clkctrl		= 0x4a009728,
 	.cm_l4per_gptimer11_clkctrl		= 0x4a009730,
 	.cm_l4per_gptimer2_clkctrl		= 0x4a009738,
-- 
1.8.3.1



More information about the U-Boot mailing list