1d198b514SPaul Walmsley /*
2d198b514SPaul Walmsley  * OMAP44xx PRCM MPU instance offset macros
3d198b514SPaul Walmsley  *
4d9a16f9aSPaul Walmsley  * Copyright (C) 2010, 2012 Texas Instruments, Inc.
5d198b514SPaul Walmsley  * Copyright (C) 2010 Nokia Corporation
6d198b514SPaul Walmsley  *
7d198b514SPaul Walmsley  * Paul Walmsley (paul@pwsan.com)
8d198b514SPaul Walmsley  * Rajendra Nayak (rnayak@ti.com)
9d198b514SPaul Walmsley  * Benoit Cousson (b-cousson@ti.com)
10d198b514SPaul Walmsley  *
11d198b514SPaul Walmsley  * This file is automatically generated from the OMAP hardware databases.
12d198b514SPaul Walmsley  * We respectfully ask that any modifications to this file be coordinated
13d198b514SPaul Walmsley  * with the public linux-omap@vger.kernel.org mailing list and the
14d198b514SPaul Walmsley  * authors above to ensure that the autogeneration scripts are kept
15d198b514SPaul Walmsley  * up-to-date with the file contents.
16d198b514SPaul Walmsley  *
17d198b514SPaul Walmsley  * This program is free software; you can redistribute it and/or modify
18d198b514SPaul Walmsley  * it under the terms of the GNU General Public License version 2 as
19d198b514SPaul Walmsley  * published by the Free Software Foundation.
20d198b514SPaul Walmsley  *
21d198b514SPaul Walmsley  * XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX",
22d198b514SPaul Walmsley  *     or "OMAP4430".
23d198b514SPaul Walmsley  */
24d198b514SPaul Walmsley 
25d198b514SPaul Walmsley #ifndef __ARCH_ARM_MACH_OMAP2_PRCM_MPU44XX_H
26d198b514SPaul Walmsley #define __ARCH_ARM_MACH_OMAP2_PRCM_MPU44XX_H
27d198b514SPaul Walmsley 
2840243ad3SSantosh Shilimkar #include "prcm_mpu_44xx_54xx.h"
29d9a16f9aSPaul Walmsley #include "common.h"
30d9a16f9aSPaul Walmsley 
31d198b514SPaul Walmsley #define OMAP4430_PRCM_MPU_BASE			0x48243000
32d198b514SPaul Walmsley 
33cdb54c44SPaul Walmsley #define OMAP44XX_PRCM_MPU_REGADDR(inst, reg)				\
34cdb54c44SPaul Walmsley 	OMAP2_L4_IO_ADDRESS(OMAP4430_PRCM_MPU_BASE + (inst) + (reg))
35d198b514SPaul Walmsley 
36d198b514SPaul Walmsley /* PRCM_MPU instances */
37cdb54c44SPaul Walmsley #define OMAP4430_PRCM_MPU_OCP_SOCKET_PRCM_INST	0x0000
38cdb54c44SPaul Walmsley #define OMAP4430_PRCM_MPU_DEVICE_PRM_INST	0x0200
39cdb54c44SPaul Walmsley #define OMAP4430_PRCM_MPU_CPU0_INST		0x0400
40cdb54c44SPaul Walmsley #define OMAP4430_PRCM_MPU_CPU1_INST		0x0800
41d198b514SPaul Walmsley 
42e4156ee5SPaul Walmsley /* PRCM_MPU clockdomain register offsets (from instance start) */
431a9f5e89SBenoit Cousson #define OMAP4430_PRCM_MPU_CPU0_CPU0_CDOFFS	0x0018
441a9f5e89SBenoit Cousson #define OMAP4430_PRCM_MPU_CPU1_CPU1_CDOFFS	0x0018
45e4156ee5SPaul Walmsley 
46e4156ee5SPaul Walmsley 
47d198b514SPaul Walmsley /*
48d198b514SPaul Walmsley  * PRCM_MPU
49d198b514SPaul Walmsley  *
50d198b514SPaul Walmsley  * The PRCM_MPU is a local PRCM inside the MPU subsystem. For the PRCM (global)
51d198b514SPaul Walmsley  * point of view the PRCM_MPU is a single entity. It shares the same
52d198b514SPaul Walmsley  * programming model as the global PRCM and thus can be assimilate as two new
53d198b514SPaul Walmsley  * MOD inside the PRCM
54d198b514SPaul Walmsley  */
55d198b514SPaul Walmsley 
56d198b514SPaul Walmsley /* PRCM_MPU.OCP_SOCKET_PRCM register offsets */
57d198b514SPaul Walmsley #define OMAP4_REVISION_PRCM_OFFSET		0x0000
58cdb54c44SPaul Walmsley #define OMAP4430_REVISION_PRCM			OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_OCP_SOCKET_PRCM_INST, 0x0000)
59d198b514SPaul Walmsley 
60d198b514SPaul Walmsley /* PRCM_MPU.DEVICE_PRM register offsets */
61d198b514SPaul Walmsley #define OMAP4_PRCM_MPU_PRM_RSTST_OFFSET		0x0000
62cdb54c44SPaul Walmsley #define OMAP4430_PRCM_MPU_PRM_RSTST		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_INST, 0x0000)
63d198b514SPaul Walmsley #define OMAP4_PRCM_MPU_PRM_PSCON_COUNT_OFFSET	0x0004
64cdb54c44SPaul Walmsley #define OMAP4430_PRCM_MPU_PRM_PSCON_COUNT	OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_INST, 0x0004)
65d198b514SPaul Walmsley 
66d198b514SPaul Walmsley /* PRCM_MPU.CPU0 register offsets */
67d198b514SPaul Walmsley #define OMAP4_PM_CPU0_PWRSTCTRL_OFFSET		0x0000
68cdb54c44SPaul Walmsley #define OMAP4430_PM_CPU0_PWRSTCTRL		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0000)
69d198b514SPaul Walmsley #define OMAP4_PM_CPU0_PWRSTST_OFFSET		0x0004
70cdb54c44SPaul Walmsley #define OMAP4430_PM_CPU0_PWRSTST		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0004)
71d198b514SPaul Walmsley #define OMAP4_RM_CPU0_CPU0_CONTEXT_OFFSET	0x0008
72cdb54c44SPaul Walmsley #define OMAP4430_RM_CPU0_CPU0_CONTEXT		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0008)
73d198b514SPaul Walmsley #define OMAP4_RM_CPU0_CPU0_RSTCTRL_OFFSET	0x000c
74cdb54c44SPaul Walmsley #define OMAP4430_RM_CPU0_CPU0_RSTCTRL		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x000c)
75d198b514SPaul Walmsley #define OMAP4_RM_CPU0_CPU0_RSTST_OFFSET		0x0010
76cdb54c44SPaul Walmsley #define OMAP4430_RM_CPU0_CPU0_RSTST		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0010)
77d198b514SPaul Walmsley #define OMAP4_CM_CPU0_CPU0_CLKCTRL_OFFSET	0x0014
78cdb54c44SPaul Walmsley #define OMAP4430_CM_CPU0_CPU0_CLKCTRL		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0014)
79d198b514SPaul Walmsley #define OMAP4_CM_CPU0_CLKSTCTRL_OFFSET		0x0018
80cdb54c44SPaul Walmsley #define OMAP4430_CM_CPU0_CLKSTCTRL		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0018)
81d198b514SPaul Walmsley 
82d198b514SPaul Walmsley /* PRCM_MPU.CPU1 register offsets */
83d198b514SPaul Walmsley #define OMAP4_PM_CPU1_PWRSTCTRL_OFFSET		0x0000
84cdb54c44SPaul Walmsley #define OMAP4430_PM_CPU1_PWRSTCTRL		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0000)
85d198b514SPaul Walmsley #define OMAP4_PM_CPU1_PWRSTST_OFFSET		0x0004
86cdb54c44SPaul Walmsley #define OMAP4430_PM_CPU1_PWRSTST		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0004)
87d198b514SPaul Walmsley #define OMAP4_RM_CPU1_CPU1_CONTEXT_OFFSET	0x0008
88cdb54c44SPaul Walmsley #define OMAP4430_RM_CPU1_CPU1_CONTEXT		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0008)
89d198b514SPaul Walmsley #define OMAP4_RM_CPU1_CPU1_RSTCTRL_OFFSET	0x000c
90cdb54c44SPaul Walmsley #define OMAP4430_RM_CPU1_CPU1_RSTCTRL		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x000c)
91d198b514SPaul Walmsley #define OMAP4_RM_CPU1_CPU1_RSTST_OFFSET		0x0010
92cdb54c44SPaul Walmsley #define OMAP4430_RM_CPU1_CPU1_RSTST		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0010)
93d198b514SPaul Walmsley #define OMAP4_CM_CPU1_CPU1_CLKCTRL_OFFSET	0x0014
94cdb54c44SPaul Walmsley #define OMAP4430_CM_CPU1_CPU1_CLKCTRL		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0014)
95d198b514SPaul Walmsley #define OMAP4_CM_CPU1_CLKSTCTRL_OFFSET		0x0018
96cdb54c44SPaul Walmsley #define OMAP4430_CM_CPU1_CLKSTCTRL		OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0018)
97d198b514SPaul Walmsley 
98d198b514SPaul Walmsley #endif
99