The PRM_PER structure needs to be defined in order to allow the pruss
driver to bring the pru subsystem out of reset during the pruss
driver probe

Signed-off-by: Greg Leonberg <greg.leonb...@sunhillo.com>
---
 arch/arm/include/asm/arch-am33xx/cpu.h             | 7 +++++++
 arch/arm/include/asm/arch-am33xx/hardware_am33xx.h | 1 +
 2 files changed, 8 insertions(+)

diff --git a/arch/arm/include/asm/arch-am33xx/cpu.h 
b/arch/arm/include/asm/arch-am33xx/cpu.h
index 9b819b0..b713418 100644
--- a/arch/arm/include/asm/arch-am33xx/cpu.h
+++ b/arch/arm/include/asm/arch-am33xx/cpu.h
@@ -65,6 +65,7 @@
                                        | BIT(3) | BIT(4))
 
 #define PRM_RSTCTRL_RESET              0x01
+#define PRM_PER_RSTCTRL_RESET          0x00000002
 #define PRM_RSTST_WARM_RESET_MASK      0x232
 
 /* EMIF Control register bits */
@@ -210,6 +211,12 @@ struct prm_device_inst {
        unsigned int prm_rsttime;
        unsigned int prm_rstst;
 };
+
+struct prm_per {
+       unsigned int prm_per_rstctrl;
+       unsigned int prm_per_pwrstst;
+       unsigned int prm_per_pwrstctrl;
+};
 #else
 /* Encapsulating core pll registers */
 struct cm_wkuppll {
diff --git a/arch/arm/include/asm/arch-am33xx/hardware_am33xx.h 
b/arch/arm/include/asm/arch-am33xx/hardware_am33xx.h
index 878ef3e..b8d2140 100644
--- a/arch/arm/include/asm/arch-am33xx/hardware_am33xx.h
+++ b/arch/arm/include/asm/arch-am33xx/hardware_am33xx.h
@@ -36,6 +36,7 @@
 #define CM_WKUP                                0x44E00400
 #define CM_DPLL                                0x44E00500
 #define CM_RTC                         0x44E00800
+#define PRM_PER                                0x44E00C00
 
 #define PRM_RSTCTRL                    (PRCM_BASE + 0x0F00)
 #define PRM_RSTST                      (PRM_RSTCTRL + 8)
-- 
1.8.3.1

Reply via email to