blob: fc7d4ed0bd9b8296747dd2377ef1f7947fc6ce2b [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Rajendra Nayakc1294042009-12-08 18:24:51 -07002/*
3 * OMAP44xx PRM instance offset macros
4 *
Paul Walmsley26c98c52011-12-16 14:36:58 -07005 * Copyright (C) 2009-2011 Texas Instruments, Inc.
Benoit Cousson79328702010-05-20 12:31:11 -06006 * Copyright (C) 2009-2010 Nokia Corporation
Rajendra Nayakc1294042009-12-08 18:24:51 -07007 *
8 * Paul Walmsley (paul@pwsan.com)
9 * Rajendra Nayak (rnayak@ti.com)
10 * Benoit Cousson (b-cousson@ti.com)
11 *
12 * This file is automatically generated from the OMAP hardware databases.
13 * We respectfully ask that any modifications to this file be coordinated
14 * with the public linux-omap@vger.kernel.org mailing list and the
15 * authors above to ensure that the autogeneration scripts are kept
16 * up-to-date with the file contents.
17 *
Paul Walmsleyd198b512010-12-21 15:30:54 -070018 * XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX",
19 * or "OMAP4430".
Rajendra Nayakc1294042009-12-08 18:24:51 -070020 */
21
22#ifndef __ARCH_ARM_MACH_OMAP2_PRM44XX_H
23#define __ARCH_ARM_MACH_OMAP2_PRM44XX_H
24
Santosh Shilimkar9920eca2013-05-29 12:38:01 -040025#include "prm44xx_54xx.h"
Paul Walmsley59fb6592010-12-21 15:30:55 -070026#include "prm.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070027
28#define OMAP4430_PRM_BASE 0x4a306000
29
Paul Walmsleycdb54c42010-12-21 15:30:55 -070030#define OMAP44XX_PRM_REGADDR(inst, reg) \
Benoit Coussonad98a182011-07-09 19:15:04 -060031 OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE + (inst) + (reg))
Paul Walmsleyd198b512010-12-21 15:30:54 -070032
33
34/* PRM instances */
Paul Walmsleycdb54c42010-12-21 15:30:55 -070035#define OMAP4430_PRM_OCP_SOCKET_INST 0x0000
36#define OMAP4430_PRM_CKGEN_INST 0x0100
37#define OMAP4430_PRM_MPU_INST 0x0300
38#define OMAP4430_PRM_TESLA_INST 0x0400
39#define OMAP4430_PRM_ABE_INST 0x0500
40#define OMAP4430_PRM_ALWAYS_ON_INST 0x0600
41#define OMAP4430_PRM_CORE_INST 0x0700
42#define OMAP4430_PRM_IVAHD_INST 0x0f00
43#define OMAP4430_PRM_CAM_INST 0x1000
44#define OMAP4430_PRM_DSS_INST 0x1100
45#define OMAP4430_PRM_GFX_INST 0x1200
Benoit Coussonad98a182011-07-09 19:15:04 -060046#define OMAP4430_PRM_L3INIT_INST 0x1300
Paul Walmsleycdb54c42010-12-21 15:30:55 -070047#define OMAP4430_PRM_L4PER_INST 0x1400
Benoit Coussonad98a182011-07-09 19:15:04 -060048#define OMAP4430_PRM_CEFUSE_INST 0x1600
Paul Walmsleycdb54c42010-12-21 15:30:55 -070049#define OMAP4430_PRM_WKUP_INST 0x1700
50#define OMAP4430_PRM_WKUP_CM_INST 0x1800
51#define OMAP4430_PRM_EMU_INST 0x1900
Benoit Coussonad98a182011-07-09 19:15:04 -060052#define OMAP4430_PRM_EMU_CM_INST 0x1a00
53#define OMAP4430_PRM_DEVICE_INST 0x1b00
Paul Walmsleyd198b512010-12-21 15:30:54 -070054
Paul Walmsleye4156ee2010-12-21 21:05:15 -070055/* PRM clockdomain register offsets (from instance start) */
Paul Walmsleye4156ee2010-12-21 21:05:15 -070056#define OMAP4430_PRM_WKUP_CM_WKUP_CDOFFS 0x0000
Paul Walmsleye4156ee2010-12-21 21:05:15 -070057#define OMAP4430_PRM_EMU_CM_EMU_CDOFFS 0x0000
Paul Walmsleyd198b512010-12-21 15:30:54 -070058
59/* OMAP4 specific register offsets */
Nishanth Menon5f2596f2012-12-28 02:09:45 -070060#define OMAP4_RM_RSTST 0x0004
Paul Walmsleyd198b512010-12-21 15:30:54 -070061#define OMAP4_PM_PWSTCTRL 0x0000
62#define OMAP4_PM_PWSTST 0x0004
63
Rajendra Nayakc1294042009-12-08 18:24:51 -070064/* PRM.OCP_SOCKET_PRM register offsets */
Rajendra Nayak2339ea92010-05-20 12:31:12 -060065#define OMAP4_REVISION_PRM_OFFSET 0x0000
Rajendra Nayak2339ea92010-05-20 12:31:12 -060066#define OMAP4_PRM_IRQSTATUS_MPU_OFFSET 0x0010
Paul Walmsleycdb54c42010-12-21 15:30:55 -070067#define OMAP4430_PRM_IRQSTATUS_MPU OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_INST, 0x0010)
Rajendra Nayak2339ea92010-05-20 12:31:12 -060068#define OMAP4_PRM_IRQSTATUS_MPU_2_OFFSET 0x0014
Rajendra Nayak2339ea92010-05-20 12:31:12 -060069#define OMAP4_PRM_IRQENABLE_MPU_OFFSET 0x0018
Paul Walmsleycdb54c42010-12-21 15:30:55 -070070#define OMAP4430_PRM_IRQENABLE_MPU OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_INST, 0x0018)
Rajendra Nayakc1294042009-12-08 18:24:51 -070071
72/* PRM.MPU_PRM register offsets */
Rajendra Nayak2339ea92010-05-20 12:31:12 -060073#define OMAP4_RM_MPU_MPU_CONTEXT_OFFSET 0x0024
Rajendra Nayakc1294042009-12-08 18:24:51 -070074
75/* PRM.DEVICE_PRM register offsets */
Rajendra Nayak2339ea92010-05-20 12:31:12 -060076#define OMAP4_PRM_RSTCTRL_OFFSET 0x0000
Rajendra Nayak2339ea92010-05-20 12:31:12 -060077#define OMAP4_PRM_VOLTCTRL_OFFSET 0x0010
Rajendra Nayak2339ea92010-05-20 12:31:12 -060078#define OMAP4_PRM_IO_PMCTRL_OFFSET 0x0020
Rajendra Nayak2339ea92010-05-20 12:31:12 -060079#define OMAP4_PRM_VOLTSETUP_CORE_OFF_OFFSET 0x0028
Rajendra Nayak2339ea92010-05-20 12:31:12 -060080#define OMAP4_PRM_VOLTSETUP_MPU_OFF_OFFSET 0x002c
Rajendra Nayak2339ea92010-05-20 12:31:12 -060081#define OMAP4_PRM_VOLTSETUP_IVA_OFF_OFFSET 0x0030
Rajendra Nayak2339ea92010-05-20 12:31:12 -060082#define OMAP4_PRM_VOLTSETUP_CORE_RET_SLEEP_OFFSET 0x0034
Rajendra Nayak2339ea92010-05-20 12:31:12 -060083#define OMAP4_PRM_VOLTSETUP_MPU_RET_SLEEP_OFFSET 0x0038
Rajendra Nayak2339ea92010-05-20 12:31:12 -060084#define OMAP4_PRM_VOLTSETUP_IVA_RET_SLEEP_OFFSET 0x003c
Rajendra Nayak2339ea92010-05-20 12:31:12 -060085#define OMAP4_PRM_VP_CORE_CONFIG_OFFSET 0x0040
Rajendra Nayak2339ea92010-05-20 12:31:12 -060086#define OMAP4_PRM_VP_CORE_STATUS_OFFSET 0x0044
Rajendra Nayak2339ea92010-05-20 12:31:12 -060087#define OMAP4_PRM_VP_CORE_VLIMITTO_OFFSET 0x0048
Rajendra Nayak2339ea92010-05-20 12:31:12 -060088#define OMAP4_PRM_VP_CORE_VOLTAGE_OFFSET 0x004c
Rajendra Nayak2339ea92010-05-20 12:31:12 -060089#define OMAP4_PRM_VP_CORE_VSTEPMAX_OFFSET 0x0050
Rajendra Nayak2339ea92010-05-20 12:31:12 -060090#define OMAP4_PRM_VP_CORE_VSTEPMIN_OFFSET 0x0054
Rajendra Nayak2339ea92010-05-20 12:31:12 -060091#define OMAP4_PRM_VP_MPU_CONFIG_OFFSET 0x0058
Rajendra Nayak2339ea92010-05-20 12:31:12 -060092#define OMAP4_PRM_VP_MPU_STATUS_OFFSET 0x005c
Rajendra Nayak2339ea92010-05-20 12:31:12 -060093#define OMAP4_PRM_VP_MPU_VLIMITTO_OFFSET 0x0060
Rajendra Nayak2339ea92010-05-20 12:31:12 -060094#define OMAP4_PRM_VP_MPU_VOLTAGE_OFFSET 0x0064
Rajendra Nayak2339ea92010-05-20 12:31:12 -060095#define OMAP4_PRM_VP_MPU_VSTEPMAX_OFFSET 0x0068
Rajendra Nayak2339ea92010-05-20 12:31:12 -060096#define OMAP4_PRM_VP_MPU_VSTEPMIN_OFFSET 0x006c
Rajendra Nayak2339ea92010-05-20 12:31:12 -060097#define OMAP4_PRM_VP_IVA_CONFIG_OFFSET 0x0070
Rajendra Nayak2339ea92010-05-20 12:31:12 -060098#define OMAP4_PRM_VP_IVA_STATUS_OFFSET 0x0074
Rajendra Nayak2339ea92010-05-20 12:31:12 -060099#define OMAP4_PRM_VP_IVA_VLIMITTO_OFFSET 0x0078
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600100#define OMAP4_PRM_VP_IVA_VOLTAGE_OFFSET 0x007c
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600101#define OMAP4_PRM_VP_IVA_VSTEPMAX_OFFSET 0x0080
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600102#define OMAP4_PRM_VP_IVA_VSTEPMIN_OFFSET 0x0084
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600103#define OMAP4_PRM_VC_SMPS_SA_OFFSET 0x0088
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600104#define OMAP4_PRM_VC_VAL_SMPS_RA_VOL_OFFSET 0x008c
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600105#define OMAP4_PRM_VC_VAL_SMPS_RA_CMD_OFFSET 0x0090
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600106#define OMAP4_PRM_VC_VAL_CMD_VDD_CORE_L_OFFSET 0x0094
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600107#define OMAP4_PRM_VC_VAL_CMD_VDD_MPU_L_OFFSET 0x0098
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600108#define OMAP4_PRM_VC_VAL_CMD_VDD_IVA_L_OFFSET 0x009c
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600109#define OMAP4_PRM_VC_VAL_BYPASS_OFFSET 0x00a0
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600110#define OMAP4_PRM_VC_CFG_CHANNEL_OFFSET 0x00a4
Benoit Coussonad98a182011-07-09 19:15:04 -0600111#define OMAP4_PRM_VC_CFG_I2C_MODE_OFFSET 0x00a8
Rajendra Nayak2339ea92010-05-20 12:31:12 -0600112#define OMAP4_PRM_VC_CFG_I2C_CLK_OFFSET 0x00ac
Rajendra Nayakc1294042009-12-08 18:24:51 -0700113
Rajendra Nayakc1294042009-12-08 18:24:51 -0700114#endif