blob: ac9cb4550239e742b2c6ae9d0cfb62545ed9fe3c [file] [log] [blame]
Paul Walmsleyd198b512010-12-21 15:30:54 -07001/*
2 * OMAP44xx PRCM MPU instance offset macros
3 *
Paul Walmsleyd9a16f92012-10-29 20:57:39 -06004 * Copyright (C) 2010, 2012 Texas Instruments, Inc.
Paul Walmsleyd198b512010-12-21 15:30:54 -07005 * 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
Santosh Shilimkar40243ad2013-05-29 12:38:05 -040028#include "prcm_mpu_44xx_54xx.h"
Paul Walmsleyd9a16f92012-10-29 20:57:39 -060029
Paul Walmsleyd198b512010-12-21 15:30:54 -070030#define OMAP4430_PRCM_MPU_BASE 0x48243000
31
Paul Walmsleycdb54c42010-12-21 15:30:55 -070032#define OMAP44XX_PRCM_MPU_REGADDR(inst, reg) \
33 OMAP2_L4_IO_ADDRESS(OMAP4430_PRCM_MPU_BASE + (inst) + (reg))
Paul Walmsleyd198b512010-12-21 15:30:54 -070034
35/* PRCM_MPU instances */
Paul Walmsleycdb54c42010-12-21 15:30:55 -070036#define OMAP4430_PRCM_MPU_OCP_SOCKET_PRCM_INST 0x0000
37#define OMAP4430_PRCM_MPU_DEVICE_PRM_INST 0x0200
38#define OMAP4430_PRCM_MPU_CPU0_INST 0x0400
39#define OMAP4430_PRCM_MPU_CPU1_INST 0x0800
Paul Walmsleyd198b512010-12-21 15:30:54 -070040
Paul Walmsleye4156ee2010-12-21 21:05:15 -070041/* PRCM_MPU clockdomain register offsets (from instance start) */
Benoit Cousson1a9f5e82011-02-08 14:30:31 -070042#define OMAP4430_PRCM_MPU_CPU0_CPU0_CDOFFS 0x0018
43#define OMAP4430_PRCM_MPU_CPU1_CPU1_CDOFFS 0x0018
Paul Walmsleye4156ee2010-12-21 21:05:15 -070044
45
Paul Walmsleyd198b512010-12-21 15:30:54 -070046/*
47 * PRCM_MPU
48 *
49 * The PRCM_MPU is a local PRCM inside the MPU subsystem. For the PRCM (global)
50 * point of view the PRCM_MPU is a single entity. It shares the same
51 * programming model as the global PRCM and thus can be assimilate as two new
52 * MOD inside the PRCM
53 */
54
55/* PRCM_MPU.OCP_SOCKET_PRCM register offsets */
Benoit Coussona3b90ad2011-07-09 19:15:06 -060056#define OMAP4_REVISION_PRCM_OFFSET 0x0000
57#define OMAP4430_REVISION_PRCM OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_OCP_SOCKET_PRCM_INST, 0x0000)
Paul Walmsleyd198b512010-12-21 15:30:54 -070058
59/* PRCM_MPU.DEVICE_PRM register offsets */
Benoit Coussona3b90ad2011-07-09 19:15:06 -060060#define OMAP4_PRCM_MPU_PRM_RSTST_OFFSET 0x0000
61#define OMAP4430_PRCM_MPU_PRM_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_INST, 0x0000)
62#define OMAP4_PRCM_MPU_PRM_PSCON_COUNT_OFFSET 0x0004
63#define OMAP4430_PRCM_MPU_PRM_PSCON_COUNT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_DEVICE_PRM_INST, 0x0004)
Paul Walmsleyd198b512010-12-21 15:30:54 -070064
65/* PRCM_MPU.CPU0 register offsets */
Benoit Coussona3b90ad2011-07-09 19:15:06 -060066#define OMAP4_PM_CPU0_PWRSTCTRL_OFFSET 0x0000
67#define OMAP4430_PM_CPU0_PWRSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0000)
68#define OMAP4_PM_CPU0_PWRSTST_OFFSET 0x0004
69#define OMAP4430_PM_CPU0_PWRSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0004)
70#define OMAP4_RM_CPU0_CPU0_CONTEXT_OFFSET 0x0008
71#define OMAP4430_RM_CPU0_CPU0_CONTEXT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0008)
72#define OMAP4_RM_CPU0_CPU0_RSTCTRL_OFFSET 0x000c
73#define OMAP4430_RM_CPU0_CPU0_RSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x000c)
74#define OMAP4_RM_CPU0_CPU0_RSTST_OFFSET 0x0010
75#define OMAP4430_RM_CPU0_CPU0_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0010)
76#define OMAP4_CM_CPU0_CPU0_CLKCTRL_OFFSET 0x0014
77#define OMAP4430_CM_CPU0_CPU0_CLKCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0014)
78#define OMAP4_CM_CPU0_CLKSTCTRL_OFFSET 0x0018
79#define OMAP4430_CM_CPU0_CLKSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU0_INST, 0x0018)
Paul Walmsleyd198b512010-12-21 15:30:54 -070080
81/* PRCM_MPU.CPU1 register offsets */
Benoit Coussona3b90ad2011-07-09 19:15:06 -060082#define OMAP4_PM_CPU1_PWRSTCTRL_OFFSET 0x0000
83#define OMAP4430_PM_CPU1_PWRSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0000)
84#define OMAP4_PM_CPU1_PWRSTST_OFFSET 0x0004
85#define OMAP4430_PM_CPU1_PWRSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0004)
86#define OMAP4_RM_CPU1_CPU1_CONTEXT_OFFSET 0x0008
87#define OMAP4430_RM_CPU1_CPU1_CONTEXT OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0008)
88#define OMAP4_RM_CPU1_CPU1_RSTCTRL_OFFSET 0x000c
89#define OMAP4430_RM_CPU1_CPU1_RSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x000c)
90#define OMAP4_RM_CPU1_CPU1_RSTST_OFFSET 0x0010
91#define OMAP4430_RM_CPU1_CPU1_RSTST OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0010)
92#define OMAP4_CM_CPU1_CPU1_CLKCTRL_OFFSET 0x0014
93#define OMAP4430_CM_CPU1_CPU1_CLKCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0014)
94#define OMAP4_CM_CPU1_CLKSTCTRL_OFFSET 0x0018
95#define OMAP4430_CM_CPU1_CLKSTCTRL OMAP44XX_PRCM_MPU_REGADDR(OMAP4430_PRCM_MPU_CPU1_INST, 0x0018)
Paul Walmsleyd198b512010-12-21 15:30:54 -070096
Paul Walmsleyd198b512010-12-21 15:30:54 -070097#endif