@@ -25,7 +25,6 @@
#include "clockdomain.h"
#include "cm.h"
#include "cm33xx.h"
-#include "cm-regbits-34xx.h"
#include "prm33xx.h"
#define AM33XX_MODULEMODE_SHIFT 0
@@ -36,6 +35,11 @@
#define AM33XX_IDLEST_SHIFT 16
#define AM33XX_IDLEST_MASK (0x3 << 16)
+#define OMAP34XX_CLKSTCTRL_DISABLE_AUTO 0x0
+#define OMAP34XX_CLKSTCTRL_FORCE_SLEEP 0x1
+#define OMAP34XX_CLKSTCTRL_FORCE_WAKEUP 0x2
+#define OMAP34XX_CLKSTCTRL_ENABLE_AUTO 0x3
+
/*
* CLKCTRL_IDLEST_*: possible values for the CM_*_CLKCTRL.IDLEST bitfield:
*
@@ -22,9 +22,15 @@
#include "cm.h"
#include "cm2xxx_3xxx_private.h"
#include "cm3xxx.h"
-#include "cm-regbits-34xx.h"
#include "clockdomain.h"
+#define OMAP34XX_CLKSTCTRL_DISABLE_AUTO 0x0
+#define OMAP34XX_CLKSTCTRL_FORCE_SLEEP 0x1
+#define OMAP34XX_CLKSTCTRL_FORCE_WAKEUP 0x2
+#define OMAP34XX_CLKSTCTRL_ENABLE_AUTO 0x3
+
+#define OMAP3430_AUTO_PERIPH_DPLL_MASK (0x7 << 3)
+
static const u8 omap3xxx_cm_idlest_offs[] = {
CM_IDLEST1, CM_IDLEST2, OMAP2430_CM_IDLEST3
};
@@ -27,7 +27,6 @@
#include "cm2_44xx.h"
#include "cm44xx.h"
#include "cminst44xx.h"
-#include "cm-regbits-34xx.h"
#include "prcm44xx.h"
#include "prm44xx.h"
#include "prcm_mpu44xx.h"
@@ -40,6 +39,11 @@
#define OMAP4430_MODULEMODE_SHIFT 0
#define OMAP4430_MODULEMODE_MASK (0x3 << 0)
+#define OMAP34XX_CLKSTCTRL_DISABLE_AUTO 0x0
+#define OMAP34XX_CLKSTCTRL_FORCE_SLEEP 0x1
+#define OMAP34XX_CLKSTCTRL_FORCE_WAKEUP 0x2
+#define OMAP34XX_CLKSTCTRL_ENABLE_AUTO 0x3
+
/*
* CLKCTRL_IDLEST_*: possible values for the CM_*_CLKCTRL.IDLEST bitfield:
*
@@ -16,7 +16,6 @@
#include <linux/bug.h>
#include "pm.h"
#include "cm.h"
-#include "cm-regbits-34xx.h"
#include "prm-regbits-34xx.h"
#include "prm-regbits-44xx.h"
@@ -24,7 +24,6 @@
#include "prm2xxx_3xxx_private.h"
#include "cm2xxx_3xxx_private.h"
#include "cm3xxx.h"
-#include "cm-regbits-34xx.h"
#define OMAP3430_GLOBAL_COLD_RST_MASK (1 << 0)
#define OMAP3430_GLOBAL_COLD_RST_SHIFT 0
@@ -79,6 +78,12 @@
#define OMAP3430_LASTPOWERSTATEENTERED_MASK (0x3 << 0)
#define OMAP3430_LOGICSTATEST_MASK (1 << 2)
+#define OMAP3430ES2_EN_USBHOST2_SHIFT 1
+
+#define OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_MASK (1 << 0)
+
+#define OMAP3430_CLKACTIVITY_IVA2_MASK (1 << 0)
+
static const struct omap_prcm_irq omap3_prcm_irqs[] = {
OMAP_PRCM_IRQ("wkup", 0, 0),
OMAP_PRCM_IRQ("io", 9, 1),
Done in preparation to make PRCM a standalone driver. Signed-off-by: Tero Kristo <t-kristo@ti.com> --- arch/arm/mach-omap2/cm33xx.c | 6 +++++- arch/arm/mach-omap2/cm3xxx.c | 8 +++++++- arch/arm/mach-omap2/cminst44xx.c | 6 +++++- arch/arm/mach-omap2/powerdomain-common.c | 1 - arch/arm/mach-omap2/prm3xxx.c | 7 ++++++- 5 files changed, 23 insertions(+), 5 deletions(-)