diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-10-27 11:39:25 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-10-27 11:39:25 -0400 |
commit | 88f9474f18b4f235b7e9a91d76810fd616fe611a (patch) | |
tree | a111ed99b395eb890f117c7cc15c6ed637b0b8d0 | |
parent | 4215afaf3d540ffaee3274ede4d298132d03d773 (diff) |
ARM: OMAP4+: CM: remove omap4_cm1/cm2_* functions
These are not used for anything, so remove both the implementations and
header file references.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm1_44xx.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm1_54xx.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm1_7xx.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm2_44xx.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm2_54xx.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm2_7xx.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm44xx.c | 49 | ||||
-rw-r--r-- | arch/arm/mach-omap2/cm_44xx_54xx.h | 36 |
9 files changed, 1 insertions, 98 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index d9e94122073e..3b653b3ac268 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -113,7 +113,7 @@ obj-y += prm_common.o cm_common.o | |||
113 | obj-$(CONFIG_ARCH_OMAP2) += prm2xxx_3xxx.o prm2xxx.o cm2xxx.o | 113 | obj-$(CONFIG_ARCH_OMAP2) += prm2xxx_3xxx.o prm2xxx.o cm2xxx.o |
114 | obj-$(CONFIG_ARCH_OMAP3) += prm2xxx_3xxx.o prm3xxx.o cm3xxx.o | 114 | obj-$(CONFIG_ARCH_OMAP3) += prm2xxx_3xxx.o prm3xxx.o cm3xxx.o |
115 | obj-$(CONFIG_ARCH_OMAP3) += vc3xxx_data.o vp3xxx_data.o | 115 | obj-$(CONFIG_ARCH_OMAP3) += vc3xxx_data.o vp3xxx_data.o |
116 | omap-prcm-4-5-common = cminst44xx.o cm44xx.o prm44xx.o \ | 116 | omap-prcm-4-5-common = cminst44xx.o prm44xx.o \ |
117 | prcm_mpu44xx.o prminst44xx.o \ | 117 | prcm_mpu44xx.o prminst44xx.o \ |
118 | vc44xx_data.o vp44xx_data.o | 118 | vc44xx_data.o vp44xx_data.o |
119 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-prcm-4-5-common) | 119 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-prcm-4-5-common) |
diff --git a/arch/arm/mach-omap2/cm1_44xx.h b/arch/arm/mach-omap2/cm1_44xx.h index 5ae8fe39d6ee..a5949927b661 100644 --- a/arch/arm/mach-omap2/cm1_44xx.h +++ b/arch/arm/mach-omap2/cm1_44xx.h | |||
@@ -25,8 +25,6 @@ | |||
25 | #ifndef __ARCH_ARM_MACH_OMAP2_CM1_44XX_H | 25 | #ifndef __ARCH_ARM_MACH_OMAP2_CM1_44XX_H |
26 | #define __ARCH_ARM_MACH_OMAP2_CM1_44XX_H | 26 | #define __ARCH_ARM_MACH_OMAP2_CM1_44XX_H |
27 | 27 | ||
28 | #include "cm_44xx_54xx.h" | ||
29 | |||
30 | /* CM1 base address */ | 28 | /* CM1 base address */ |
31 | #define OMAP4430_CM1_BASE 0x4a004000 | 29 | #define OMAP4430_CM1_BASE 0x4a004000 |
32 | 30 | ||
diff --git a/arch/arm/mach-omap2/cm1_54xx.h b/arch/arm/mach-omap2/cm1_54xx.h index 90b3348e6672..fd245dfa7391 100644 --- a/arch/arm/mach-omap2/cm1_54xx.h +++ b/arch/arm/mach-omap2/cm1_54xx.h | |||
@@ -22,8 +22,6 @@ | |||
22 | #ifndef __ARCH_ARM_MACH_OMAP2_CM1_54XX_H | 22 | #ifndef __ARCH_ARM_MACH_OMAP2_CM1_54XX_H |
23 | #define __ARCH_ARM_MACH_OMAP2_CM1_54XX_H | 23 | #define __ARCH_ARM_MACH_OMAP2_CM1_54XX_H |
24 | 24 | ||
25 | #include "cm_44xx_54xx.h" | ||
26 | |||
27 | /* CM1 base address */ | 25 | /* CM1 base address */ |
28 | #define OMAP54XX_CM_CORE_AON_BASE 0x4a004000 | 26 | #define OMAP54XX_CM_CORE_AON_BASE 0x4a004000 |
29 | 27 | ||
diff --git a/arch/arm/mach-omap2/cm1_7xx.h b/arch/arm/mach-omap2/cm1_7xx.h index ca6fa1febaac..2f1c09eea021 100644 --- a/arch/arm/mach-omap2/cm1_7xx.h +++ b/arch/arm/mach-omap2/cm1_7xx.h | |||
@@ -23,8 +23,6 @@ | |||
23 | #ifndef __ARCH_ARM_MACH_OMAP2_CM1_7XX_H | 23 | #ifndef __ARCH_ARM_MACH_OMAP2_CM1_7XX_H |
24 | #define __ARCH_ARM_MACH_OMAP2_CM1_7XX_H | 24 | #define __ARCH_ARM_MACH_OMAP2_CM1_7XX_H |
25 | 25 | ||
26 | #include "cm_44xx_54xx.h" | ||
27 | |||
28 | /* CM1 base address */ | 26 | /* CM1 base address */ |
29 | #define DRA7XX_CM_CORE_AON_BASE 0x4a005000 | 27 | #define DRA7XX_CM_CORE_AON_BASE 0x4a005000 |
30 | 28 | ||
diff --git a/arch/arm/mach-omap2/cm2_44xx.h b/arch/arm/mach-omap2/cm2_44xx.h index ee5136d7cdda..7521abf3d830 100644 --- a/arch/arm/mach-omap2/cm2_44xx.h +++ b/arch/arm/mach-omap2/cm2_44xx.h | |||
@@ -25,8 +25,6 @@ | |||
25 | #ifndef __ARCH_ARM_MACH_OMAP2_CM2_44XX_H | 25 | #ifndef __ARCH_ARM_MACH_OMAP2_CM2_44XX_H |
26 | #define __ARCH_ARM_MACH_OMAP2_CM2_44XX_H | 26 | #define __ARCH_ARM_MACH_OMAP2_CM2_44XX_H |
27 | 27 | ||
28 | #include "cm_44xx_54xx.h" | ||
29 | |||
30 | /* CM2 base address */ | 28 | /* CM2 base address */ |
31 | #define OMAP4430_CM2_BASE 0x4a008000 | 29 | #define OMAP4430_CM2_BASE 0x4a008000 |
32 | 30 | ||
diff --git a/arch/arm/mach-omap2/cm2_54xx.h b/arch/arm/mach-omap2/cm2_54xx.h index 2683231b299b..ff4040c196d8 100644 --- a/arch/arm/mach-omap2/cm2_54xx.h +++ b/arch/arm/mach-omap2/cm2_54xx.h | |||
@@ -21,8 +21,6 @@ | |||
21 | #ifndef __ARCH_ARM_MACH_OMAP2_CM2_54XX_H | 21 | #ifndef __ARCH_ARM_MACH_OMAP2_CM2_54XX_H |
22 | #define __ARCH_ARM_MACH_OMAP2_CM2_54XX_H | 22 | #define __ARCH_ARM_MACH_OMAP2_CM2_54XX_H |
23 | 23 | ||
24 | #include "cm_44xx_54xx.h" | ||
25 | |||
26 | /* CM2 base address */ | 24 | /* CM2 base address */ |
27 | #define OMAP54XX_CM_CORE_BASE 0x4a008000 | 25 | #define OMAP54XX_CM_CORE_BASE 0x4a008000 |
28 | 26 | ||
diff --git a/arch/arm/mach-omap2/cm2_7xx.h b/arch/arm/mach-omap2/cm2_7xx.h index e966e3a3c931..ce63fdb68056 100644 --- a/arch/arm/mach-omap2/cm2_7xx.h +++ b/arch/arm/mach-omap2/cm2_7xx.h | |||
@@ -22,8 +22,6 @@ | |||
22 | #ifndef __ARCH_ARM_MACH_OMAP2_CM2_7XX_H | 22 | #ifndef __ARCH_ARM_MACH_OMAP2_CM2_7XX_H |
23 | #define __ARCH_ARM_MACH_OMAP2_CM2_7XX_H | 23 | #define __ARCH_ARM_MACH_OMAP2_CM2_7XX_H |
24 | 24 | ||
25 | #include "cm_44xx_54xx.h" | ||
26 | |||
27 | /* CM2 base address */ | 25 | /* CM2 base address */ |
28 | #define DRA7XX_CM_CORE_BASE 0x4a008000 | 26 | #define DRA7XX_CM_CORE_BASE 0x4a008000 |
29 | 27 | ||
diff --git a/arch/arm/mach-omap2/cm44xx.c b/arch/arm/mach-omap2/cm44xx.c deleted file mode 100644 index fe5cc7bae489..000000000000 --- a/arch/arm/mach-omap2/cm44xx.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | * OMAP4 CM1, CM2 module low-level functions | ||
3 | * | ||
4 | * Copyright (C) 2010 Nokia Corporation | ||
5 | * Paul Walmsley | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | * | ||
11 | * These functions are intended to be used only by the cminst44xx.c file. | ||
12 | * XXX Perhaps we should just move them there and make them static. | ||
13 | */ | ||
14 | |||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/types.h> | ||
17 | #include <linux/errno.h> | ||
18 | #include <linux/err.h> | ||
19 | #include <linux/io.h> | ||
20 | |||
21 | #include "cm.h" | ||
22 | #include "cm1_44xx.h" | ||
23 | #include "cm2_44xx.h" | ||
24 | |||
25 | /* CM1 hardware module low-level functions */ | ||
26 | |||
27 | /* Read a register in CM1 */ | ||
28 | u32 omap4_cm1_read_inst_reg(s16 inst, u16 reg) | ||
29 | { | ||
30 | return readl_relaxed(cm_base + inst + reg); | ||
31 | } | ||
32 | |||
33 | /* Write into a register in CM1 */ | ||
34 | void omap4_cm1_write_inst_reg(u32 val, s16 inst, u16 reg) | ||
35 | { | ||
36 | writel_relaxed(val, cm_base + inst + reg); | ||
37 | } | ||
38 | |||
39 | /* Read a register in CM2 */ | ||
40 | u32 omap4_cm2_read_inst_reg(s16 inst, u16 reg) | ||
41 | { | ||
42 | return readl_relaxed(cm2_base + inst + reg); | ||
43 | } | ||
44 | |||
45 | /* Write into a register in CM2 */ | ||
46 | void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 reg) | ||
47 | { | ||
48 | writel_relaxed(val, cm2_base + inst + reg); | ||
49 | } | ||
diff --git a/arch/arm/mach-omap2/cm_44xx_54xx.h b/arch/arm/mach-omap2/cm_44xx_54xx.h deleted file mode 100644 index cbb211690321..000000000000 --- a/arch/arm/mach-omap2/cm_44xx_54xx.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /* | ||
2 | * OMAP44xx and OMAP54xx CM1/CM2 function prototypes | ||
3 | * | ||
4 | * Copyright (C) 2009-2013 Texas Instruments, Inc. | ||
5 | * Copyright (C) 2009-2010 Nokia Corporation | ||
6 | * | ||
7 | * Paul Walmsley (paul@pwsan.com) | ||
8 | * Rajendra Nayak (rnayak@ti.com) | ||
9 | * Benoit Cousson (b-cousson@ti.com) | ||
10 | * | ||
11 | * This file is automatically generated from the OMAP hardware databases. | ||
12 | * We respectfully ask that any modifications to this file be coordinated | ||
13 | * with the public linux-omap@vger.kernel.org mailing list and the | ||
14 | * authors above to ensure that the autogeneration scripts are kept | ||
15 | * up-to-date with the file contents. | ||
16 | * | ||
17 | * This program is free software; you can redistribute it and/or modify | ||
18 | * it under the terms of the GNU General Public License version 2 as | ||
19 | * published by the Free Software Foundation. | ||
20 | * | ||
21 | */ | ||
22 | |||
23 | #ifndef __ARCH_ARM_MACH_OMAP2_CM_44XX_54XX_H | ||
24 | #define __ARCH_ARM_MACH_OMAP2_CM_44XX_55XX_H | ||
25 | |||
26 | /* CM1 Function prototypes */ | ||
27 | extern u32 omap4_cm1_read_inst_reg(s16 inst, u16 idx); | ||
28 | extern void omap4_cm1_write_inst_reg(u32 val, s16 inst, u16 idx); | ||
29 | extern u32 omap4_cm1_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx); | ||
30 | |||
31 | /* CM2 Function prototypes */ | ||
32 | extern u32 omap4_cm2_read_inst_reg(s16 inst, u16 idx); | ||
33 | extern void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 idx); | ||
34 | extern u32 omap4_cm2_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx); | ||
35 | |||
36 | #endif | ||