diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-12-21 17:30:54 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-12-21 22:01:54 -0500 |
commit | d198b514bd9e94930ee0b9ca1cad0a51f5e29608 (patch) | |
tree | 59f6e8127f40085829dfc8468be5f03bf248ef74 /arch/arm/mach-omap2/prcm_mpu44xx.h | |
parent | f5f9d132d1c212bf3828c7926d95f79e0c20d243 (diff) |
OMAP4: PRCM: reorganize existing OMAP4 PRCM header files
Split the existing cm44xx.h file into cm1_44xx.h and cm2_44xx.h files
so they match their underlying OMAP hardware modules. Add clockdomain
offset information.
Add header files for the MPU local PRCM, prcm_mpu44xx.h, and for the
SCRM, scrm44xx.h. SCRM register offsets still need to be added; TI
should do this.
Move the "_MOD" macros out of the prcm-common.h header file, into the
header file of the hardware module that they belong to. For example,
OMAP4430_PRM_*_MOD macros have been moved into the prm44xx.h header.
Adjust #includes of all files that used the old PRCM header file names
to point to the new filenames.
The autogeneration scripts have been updated accordingly.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: BenoƮt Cousson <b-cousson@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Rajendra Nayak <rnayak@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/prcm_mpu44xx.h')
-rw-r--r-- | arch/arm/mach-omap2/prcm_mpu44xx.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prcm_mpu44xx.h b/arch/arm/mach-omap2/prcm_mpu44xx.h new file mode 100644 index 000000000000..5b828dfe9505 --- /dev/null +++ b/arch/arm/mach-omap2/prcm_mpu44xx.h | |||
@@ -0,0 +1,91 @@ | |||
1 | /* | ||
2 | * OMAP44xx PRCM MPU instance offset macros | ||
3 | * | ||
4 | * Copyright (C) 2010 Texas Instruments, Inc. | ||
5 | * Copyright (C) 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 | * XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX", | ||
22 | * or "OMAP4430". | ||
23 | */ | ||
24 | |||
25 | #ifndef __ARCH_ARM_MACH_OMAP2_PRCM_MPU44XX_H | ||
26 | #define __ARCH_ARM_MACH_OMAP2_PRCM_MPU44XX_H | ||
27 | |||
28 | #define OMAP4430_PRCM_MPU_BASE 0x48243000 | ||
29 | |||
30 | #define OMAP44XX_PRCM_MPU_REGADDR(module, reg) \ | ||
31 | OMAP2_L4_IO_ADDRESS(OMAP4430_PRCM_MPU_BASE + (module) + (reg)) | ||
32 | |||
33 | /* PRCM_MPU instances */ | ||
34 | |||
35 | #define OMAP4430_PRCM_MPU_OCP_SOCKET_PRCM_MOD 0x0000 | ||
36 | #define OMAP4430_PRCM_MPU_DEVICE_PRM_MOD 0x0200 | ||
37 | #define OMAP4430_PRCM_MPU_CPU0_MOD 0x0400 | ||
38 | #define OMAP4430_PRCM_MPU_CPU1_MOD 0x0800 | ||
39 | |||
40 | /* | ||
41 | * PRCM_MPU | ||
42 | * | ||
43 | * The PRCM_MPU is a local PRCM inside the MPU subsystem. For the PRCM (global) | ||
44 | * point of view the PRCM_MPU is a single entity. It shares the same | ||
45 | * programming model as the global PRCM and thus can be assimilate as two new | ||
46 | * MOD inside the PRCM | ||
47 | */ | ||
48 | |||
49 | /* PRCM_MPU.OCP_SOCKET_PRCM register offsets */ | ||
50 | #define OMAP4_REVISION_PRCM_OFFSET 0x0000 | ||
51 | #define OMAP4430_REVISION_PRCM OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_OCP_SOCKET_PRCM_MOD, 0x0000) | ||
52 | |||
53 | /* PRCM_MPU.DEVICE_PRM register offsets */ | ||
54 | #define OMAP4_PRCM_MPU_PRM_RSTST_OFFSET 0x0000 | ||
55 | #define OMAP4430_PRCM_MPU_PRM_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_MOD, 0x0000) | ||
56 | #define OMAP4_PRCM_MPU_PRM_PSCON_COUNT_OFFSET 0x0004 | ||
57 | #define OMAP4430_PRCM_MPU_PRM_PSCON_COUNT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_MOD, 0x0004) | ||
58 | |||
59 | /* PRCM_MPU.CPU0 register offsets */ | ||
60 | #define OMAP4_PM_CPU0_PWRSTCTRL_OFFSET 0x0000 | ||
61 | #define OMAP4430_PM_CPU0_PWRSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_MOD, 0x0000) | ||
62 | #define OMAP4_PM_CPU0_PWRSTST_OFFSET 0x0004 | ||
63 | #define OMAP4430_PM_CPU0_PWRSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_MOD, 0x0004) | ||
64 | #define OMAP4_RM_CPU0_CPU0_CONTEXT_OFFSET 0x0008 | ||
65 | #define OMAP4430_RM_CPU0_CPU0_CONTEXT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_MOD, 0x0008) | ||
66 | #define OMAP4_RM_CPU0_CPU0_RSTCTRL_OFFSET 0x000c | ||
67 | #define OMAP4430_RM_CPU0_CPU0_RSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_MOD, 0x000c) | ||
68 | #define OMAP4_RM_CPU0_CPU0_RSTST_OFFSET 0x0010 | ||
69 | #define OMAP4430_RM_CPU0_CPU0_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_MOD, 0x0010) | ||
70 | #define OMAP4_CM_CPU0_CPU0_CLKCTRL_OFFSET 0x0014 | ||
71 | #define OMAP4430_CM_CPU0_CPU0_CLKCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_MOD, 0x0014) | ||
72 | #define OMAP4_CM_CPU0_CLKSTCTRL_OFFSET 0x0018 | ||
73 | #define OMAP4430_CM_CPU0_CLKSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_MOD, 0x0018) | ||
74 | |||
75 | /* PRCM_MPU.CPU1 register offsets */ | ||
76 | #define OMAP4_PM_CPU1_PWRSTCTRL_OFFSET 0x0000 | ||
77 | #define OMAP4430_PM_CPU1_PWRSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_MOD, 0x0000) | ||
78 | #define OMAP4_PM_CPU1_PWRSTST_OFFSET 0x0004 | ||
79 | #define OMAP4430_PM_CPU1_PWRSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_MOD, 0x0004) | ||
80 | #define OMAP4_RM_CPU1_CPU1_CONTEXT_OFFSET 0x0008 | ||
81 | #define OMAP4430_RM_CPU1_CPU1_CONTEXT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_MOD, 0x0008) | ||
82 | #define OMAP4_RM_CPU1_CPU1_RSTCTRL_OFFSET 0x000c | ||
83 | #define OMAP4430_RM_CPU1_CPU1_RSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_MOD, 0x000c) | ||
84 | #define OMAP4_RM_CPU1_CPU1_RSTST_OFFSET 0x0010 | ||
85 | #define OMAP4430_RM_CPU1_CPU1_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_MOD, 0x0010) | ||
86 | #define OMAP4_CM_CPU1_CPU1_CLKCTRL_OFFSET 0x0014 | ||
87 | #define OMAP4430_CM_CPU1_CPU1_CLKCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_MOD, 0x0014) | ||
88 | #define OMAP4_CM_CPU1_CLKSTCTRL_OFFSET 0x0018 | ||
89 | #define OMAP4430_CM_CPU1_CLKSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_MOD, 0x0018) | ||
90 | |||
91 | #endif | ||