@@ -12,7 +12,6 @@
#include <linux/io.h>
#include "clockdomain.h"
-#include "prcm44xx.h"
#include "prcm43xx.h"
static struct clockdomain l4_cefuse_43xx_clkdm = {
@@ -28,7 +28,7 @@
#include "cm-regbits-44xx.h"
#include "prm44xx.h"
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prcm_mpu44xx.h"
/* Static Dependencies for OMAP4 Clock Domains */
@@ -27,7 +27,7 @@
#include "cm-regbits-54xx.h"
#include "prm54xx.h"
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prcm_mpu54xx.h"
/* Static Dependencies for OMAP4 Clock Domains */
@@ -29,7 +29,7 @@
#include "cm-regbits-7xx.h"
#include "prm7xx.h"
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prcm_mpu7xx.h"
/* Static Dependencies for DRA7xx Clock Domains */
@@ -27,7 +27,7 @@
#include "cm1_44xx.h"
#include "cm2_44xx.h"
#include <linux/power/omap/cm44xx.h>
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include <linux/power/omap/prm44xx.h>
#include "prcm_mpu44xx.h"
#include <linux/power/omap/prcm-common.h>
@@ -57,7 +57,7 @@
#include "omap4-sar-layout.h"
#include "pm.h"
#include "prcm_mpu44xx.h"
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prm44xx.h"
#include "prm-regbits-44xx.h"
@@ -23,7 +23,7 @@
#include <trace/events/power.h>
#include <linux/power/omap/cm2xxx_3xxx.h>
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include <linux/power/omap/prm2xxx_3xxx.h>
#include <linux/power/omap/prm44xx.h>
@@ -14,7 +14,6 @@
#include "powerdomain.h"
#include <linux/power/omap/prcm-common.h>
-#include "prcm44xx.h"
#include "prcm43xx.h"
static struct powerdomain gfx_43xx_pwrdm = {
@@ -25,7 +25,7 @@
#include "powerdomain.h"
#include <linux/power/omap/prcm-common.h>
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prm-regbits-44xx.h"
#include "prm44xx.h"
#include "prcm_mpu44xx.h"
@@ -24,7 +24,7 @@
#include "powerdomain.h"
#include <linux/power/omap/prcm-common.h>
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prm54xx.h"
#include "prcm_mpu54xx.h"
@@ -26,7 +26,7 @@
#include "powerdomain.h"
#include <linux/power/omap/prcm-common.h>
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prm7xx.h"
#include "prcm_mpu7xx.h"
deleted file mode 100644
@@ -1,53 +0,0 @@
-/*
- * OMAP4 PRCM definitions
- *
- * Copyright (C) 2010 Texas Instruments, Inc.
- * Copyright (C) 2010 Nokia Corporation
- *
- * Paul Walmsley
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This file contains macros and functions that are common to all of
- * the PRM/CM/PRCM blocks on the OMAP4 devices: PRM, CM1, CM2,
- * PRCM_MPU, SCRM
- */
-
-#ifndef __ARCH_ARM_MACH_OMAP2_PRCM44XX_H
-#define __ARCH_ARM_MACH_OMAP2_PRCM44XX_H
-
-/*
- * OMAP4 PRCM partition IDs
- *
- * The numbers and order are arbitrary, but 0 is reserved for the
- * 'invalid' partition in case someone forgets to add a
- * .prcm_partition field.
- */
-#define OMAP4430_INVALID_PRCM_PARTITION 0
-#define OMAP4430_PRM_PARTITION 1
-#define OMAP4430_CM1_PARTITION 2
-#define OMAP4430_CM2_PARTITION 3
-#define OMAP4430_SCRM_PARTITION 4
-#define OMAP4430_PRCM_MPU_PARTITION 5
-
-#define OMAP54XX_PRM_PARTITION 1
-#define OMAP54XX_CM_CORE_AON_PARTITION 2
-#define OMAP54XX_CM_CORE_PARTITION 3
-#define OMAP54XX_SCRM_PARTITION 4
-#define OMAP54XX_PRCM_MPU_PARTITION 5
-
-#define DRA7XX_PRM_PARTITION 1
-#define DRA7XX_CM_CORE_AON_PARTITION 2
-#define DRA7XX_CM_CORE_PARTITION 3
-#define DRA7XX_MPU_PRCM_PARTITION 5
-
-/*
- * OMAP4_MAX_PRCM_PARTITIONS: set to the highest value of the PRCM partition
- * IDs, plus one
- */
-#define OMAP4_MAX_PRCM_PARTITIONS 6
-
-
-#endif
@@ -22,7 +22,7 @@
#include <linux/power/omap/prm44xx.h>
#include <linux/power/omap/prm54xx.h>
#include <linux/power/omap/prm7xx.h>
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prminst44xx_private.h"
#include "powerdomain.h"
#include <linux/power/omap/prm.h>
@@ -21,7 +21,7 @@
#include <linux/power/omap/prm44xx.h>
#include <linux/power/omap/prm54xx.h>
#include <linux/power/omap/prm7xx.h>
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "prcm_mpu44xx.h"
#define OMAP4430_RST_GLOBAL_WARM_SW_MASK (1 << 0)
@@ -32,7 +32,7 @@
#include "prm-regbits-34xx.h"
#include "prm-regbits-44xx.h"
#include "prm44xx.h"
-#include "prcm44xx.h"
+#include <linux/power/omap/prcm44xx.h>
#include "control.h"
#include "voltage.h"
@@ -25,7 +25,6 @@
#include "soc.h"
#include "prm-regbits-44xx.h"
#include "prm44xx.h"
-#include "prcm44xx.h"
#include "voltage.h"
#include "omap_opp_data.h"
#include "vc.h"
new file mode 100644
@@ -0,0 +1,53 @@
+/*
+ * OMAP4 PRCM definitions
+ *
+ * Copyright (C) 2010 Texas Instruments, Inc.
+ * Copyright (C) 2010 Nokia Corporation
+ *
+ * Paul Walmsley
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This file contains macros and functions that are common to all of
+ * the PRM/CM/PRCM blocks on the OMAP4 devices: PRM, CM1, CM2,
+ * PRCM_MPU, SCRM
+ */
+
+#ifndef __LINUX_POWER_OMAP_PRCM44XX_H
+#define __LINUX_POWER_OMAP_PRCM44XX_H
+
+/*
+ * OMAP4 PRCM partition IDs
+ *
+ * The numbers and order are arbitrary, but 0 is reserved for the
+ * 'invalid' partition in case someone forgets to add a
+ * .prcm_partition field.
+ */
+#define OMAP4430_INVALID_PRCM_PARTITION 0
+#define OMAP4430_PRM_PARTITION 1
+#define OMAP4430_CM1_PARTITION 2
+#define OMAP4430_CM2_PARTITION 3
+#define OMAP4430_SCRM_PARTITION 4
+#define OMAP4430_PRCM_MPU_PARTITION 5
+
+#define OMAP54XX_PRM_PARTITION 1
+#define OMAP54XX_CM_CORE_AON_PARTITION 2
+#define OMAP54XX_CM_CORE_PARTITION 3
+#define OMAP54XX_SCRM_PARTITION 4
+#define OMAP54XX_PRCM_MPU_PARTITION 5
+
+#define DRA7XX_PRM_PARTITION 1
+#define DRA7XX_CM_CORE_AON_PARTITION 2
+#define DRA7XX_CM_CORE_PARTITION 3
+#define DRA7XX_MPU_PRCM_PARTITION 5
+
+/*
+ * OMAP4_MAX_PRCM_PARTITIONS: set to the highest value of the PRCM partition
+ * IDs, plus one
+ */
+#define OMAP4_MAX_PRCM_PARTITIONS 6
+
+
+#endif
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo <t-kristo@ti.com> --- arch/arm/mach-omap2/clockdomains43xx_data.c | 1 - arch/arm/mach-omap2/clockdomains44xx_data.c | 2 +- arch/arm/mach-omap2/clockdomains54xx_data.c | 2 +- arch/arm/mach-omap2/clockdomains7xx_data.c | 2 +- arch/arm/mach-omap2/cminst44xx.c | 2 +- arch/arm/mach-omap2/omap-mpuss-lowpower.c | 2 +- arch/arm/mach-omap2/powerdomain.c | 2 +- arch/arm/mach-omap2/powerdomains43xx_data.c | 1 - arch/arm/mach-omap2/powerdomains44xx_data.c | 2 +- arch/arm/mach-omap2/powerdomains54xx_data.c | 2 +- arch/arm/mach-omap2/powerdomains7xx_data.c | 2 +- arch/arm/mach-omap2/prcm44xx.h | 53 ------------------------- arch/arm/mach-omap2/prm44xx.c | 2 +- arch/arm/mach-omap2/prminst44xx.c | 2 +- arch/arm/mach-omap2/voltage.c | 2 +- arch/arm/mach-omap2/voltagedomains44xx_data.c | 1 - include/linux/power/omap/prcm44xx.h | 53 +++++++++++++++++++++++++ 17 files changed, 65 insertions(+), 68 deletions(-) delete mode 100644 arch/arm/mach-omap2/prcm44xx.h create mode 100644 include/linux/power/omap/prcm44xx.h