1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2c1294045SRajendra Nayak /* 3c1294045SRajendra Nayak * OMAP44xx PRM instance offset macros 4c1294045SRajendra Nayak * 526c98c56SPaul Walmsley * Copyright (C) 2009-2011 Texas Instruments, Inc. 679328706SBenoit Cousson * Copyright (C) 2009-2010 Nokia Corporation 7c1294045SRajendra Nayak * 8c1294045SRajendra Nayak * Paul Walmsley (paul@pwsan.com) 9c1294045SRajendra Nayak * Rajendra Nayak (rnayak@ti.com) 10c1294045SRajendra Nayak * Benoit Cousson (b-cousson@ti.com) 11c1294045SRajendra Nayak * 12c1294045SRajendra Nayak * This file is automatically generated from the OMAP hardware databases. 13c1294045SRajendra Nayak * We respectfully ask that any modifications to this file be coordinated 14c1294045SRajendra Nayak * with the public linux-omap@vger.kernel.org mailing list and the 15c1294045SRajendra Nayak * authors above to ensure that the autogeneration scripts are kept 16c1294045SRajendra Nayak * up-to-date with the file contents. 17c1294045SRajendra Nayak * 18d198b514SPaul Walmsley * XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX", 19d198b514SPaul Walmsley * or "OMAP4430". 20c1294045SRajendra Nayak */ 21c1294045SRajendra Nayak 22c1294045SRajendra Nayak #ifndef __ARCH_ARM_MACH_OMAP2_PRM44XX_H 23c1294045SRajendra Nayak #define __ARCH_ARM_MACH_OMAP2_PRM44XX_H 24c1294045SRajendra Nayak 259920eca8SSantosh Shilimkar #include "prm44xx_54xx.h" 2659fb659bSPaul Walmsley #include "prm.h" 27d198b514SPaul Walmsley 28d198b514SPaul Walmsley #define OMAP4430_PRM_BASE 0x4a306000 29d198b514SPaul Walmsley 30cdb54c44SPaul Walmsley #define OMAP44XX_PRM_REGADDR(inst, reg) \ 31cdb54c44SPaul Walmsley OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE + (inst) + (reg)) 32d198b514SPaul Walmsley 33d198b514SPaul Walmsley 34d198b514SPaul Walmsley /* PRM instances */ 35cdb54c44SPaul Walmsley #define OMAP4430_PRM_OCP_SOCKET_INST 0x0000 36cdb54c44SPaul Walmsley #define OMAP4430_PRM_CKGEN_INST 0x0100 37cdb54c44SPaul Walmsley #define OMAP4430_PRM_MPU_INST 0x0300 38cdb54c44SPaul Walmsley #define OMAP4430_PRM_TESLA_INST 0x0400 39cdb54c44SPaul Walmsley #define OMAP4430_PRM_ABE_INST 0x0500 40cdb54c44SPaul Walmsley #define OMAP4430_PRM_ALWAYS_ON_INST 0x0600 41cdb54c44SPaul Walmsley #define OMAP4430_PRM_CORE_INST 0x0700 42cdb54c44SPaul Walmsley #define OMAP4430_PRM_IVAHD_INST 0x0f00 43cdb54c44SPaul Walmsley #define OMAP4430_PRM_CAM_INST 0x1000 44cdb54c44SPaul Walmsley #define OMAP4430_PRM_DSS_INST 0x1100 45cdb54c44SPaul Walmsley #define OMAP4430_PRM_GFX_INST 0x1200 46cdb54c44SPaul Walmsley #define OMAP4430_PRM_L3INIT_INST 0x1300 47cdb54c44SPaul Walmsley #define OMAP4430_PRM_L4PER_INST 0x1400 48cdb54c44SPaul Walmsley #define OMAP4430_PRM_CEFUSE_INST 0x1600 49cdb54c44SPaul Walmsley #define OMAP4430_PRM_WKUP_INST 0x1700 50cdb54c44SPaul Walmsley #define OMAP4430_PRM_WKUP_CM_INST 0x1800 51cdb54c44SPaul Walmsley #define OMAP4430_PRM_EMU_INST 0x1900 52cdb54c44SPaul Walmsley #define OMAP4430_PRM_EMU_CM_INST 0x1a00 53cdb54c44SPaul Walmsley #define OMAP4430_PRM_DEVICE_INST 0x1b00 54d198b514SPaul Walmsley 55e4156ee5SPaul Walmsley /* PRM clockdomain register offsets (from instance start) */ 56e4156ee5SPaul Walmsley #define OMAP4430_PRM_WKUP_CM_WKUP_CDOFFS 0x0000 57e4156ee5SPaul Walmsley #define OMAP4430_PRM_EMU_CM_EMU_CDOFFS 0x0000 58d198b514SPaul Walmsley 59d198b514SPaul Walmsley /* OMAP4 specific register offsets */ 605f2596fcSNishanth Menon #define OMAP4_RM_RSTST 0x0004 61d198b514SPaul Walmsley #define OMAP4_PM_PWSTCTRL 0x0000 62d198b514SPaul Walmsley #define OMAP4_PM_PWSTST 0x0004 63d198b514SPaul Walmsley 64c1294045SRajendra Nayak /* PRM.OCP_SOCKET_PRM register offsets */ 652339ea99SRajendra Nayak #define OMAP4_REVISION_PRM_OFFSET 0x0000 662339ea99SRajendra Nayak #define OMAP4_PRM_IRQSTATUS_MPU_OFFSET 0x0010 67cdb54c44SPaul Walmsley #define OMAP4430_PRM_IRQSTATUS_MPU OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_INST, 0x0010) 682339ea99SRajendra Nayak #define OMAP4_PRM_IRQSTATUS_MPU_2_OFFSET 0x0014 692339ea99SRajendra Nayak #define OMAP4_PRM_IRQENABLE_MPU_OFFSET 0x0018 70cdb54c44SPaul Walmsley #define OMAP4430_PRM_IRQENABLE_MPU OMAP44XX_PRM_REGADDR(OMAP4430_PRM_OCP_SOCKET_INST, 0x0018) 71c1294045SRajendra Nayak 72c1294045SRajendra Nayak /* PRM.MPU_PRM register offsets */ 732339ea99SRajendra Nayak #define OMAP4_RM_MPU_MPU_CONTEXT_OFFSET 0x0024 74c1294045SRajendra Nayak 75c1294045SRajendra Nayak /* PRM.DEVICE_PRM register offsets */ 762339ea99SRajendra Nayak #define OMAP4_PRM_RSTCTRL_OFFSET 0x0000 772339ea99SRajendra Nayak #define OMAP4_PRM_VOLTCTRL_OFFSET 0x0010 782339ea99SRajendra Nayak #define OMAP4_PRM_IO_PMCTRL_OFFSET 0x0020 792339ea99SRajendra Nayak #define OMAP4_PRM_VOLTSETUP_CORE_OFF_OFFSET 0x0028 802339ea99SRajendra Nayak #define OMAP4_PRM_VOLTSETUP_MPU_OFF_OFFSET 0x002c 812339ea99SRajendra Nayak #define OMAP4_PRM_VOLTSETUP_IVA_OFF_OFFSET 0x0030 822339ea99SRajendra Nayak #define OMAP4_PRM_VOLTSETUP_CORE_RET_SLEEP_OFFSET 0x0034 832339ea99SRajendra Nayak #define OMAP4_PRM_VOLTSETUP_MPU_RET_SLEEP_OFFSET 0x0038 842339ea99SRajendra Nayak #define OMAP4_PRM_VOLTSETUP_IVA_RET_SLEEP_OFFSET 0x003c 852339ea99SRajendra Nayak #define OMAP4_PRM_VP_CORE_CONFIG_OFFSET 0x0040 862339ea99SRajendra Nayak #define OMAP4_PRM_VP_CORE_STATUS_OFFSET 0x0044 872339ea99SRajendra Nayak #define OMAP4_PRM_VP_CORE_VLIMITTO_OFFSET 0x0048 882339ea99SRajendra Nayak #define OMAP4_PRM_VP_CORE_VOLTAGE_OFFSET 0x004c 892339ea99SRajendra Nayak #define OMAP4_PRM_VP_CORE_VSTEPMAX_OFFSET 0x0050 902339ea99SRajendra Nayak #define OMAP4_PRM_VP_CORE_VSTEPMIN_OFFSET 0x0054 912339ea99SRajendra Nayak #define OMAP4_PRM_VP_MPU_CONFIG_OFFSET 0x0058 922339ea99SRajendra Nayak #define OMAP4_PRM_VP_MPU_STATUS_OFFSET 0x005c 932339ea99SRajendra Nayak #define OMAP4_PRM_VP_MPU_VLIMITTO_OFFSET 0x0060 942339ea99SRajendra Nayak #define OMAP4_PRM_VP_MPU_VOLTAGE_OFFSET 0x0064 952339ea99SRajendra Nayak #define OMAP4_PRM_VP_MPU_VSTEPMAX_OFFSET 0x0068 962339ea99SRajendra Nayak #define OMAP4_PRM_VP_MPU_VSTEPMIN_OFFSET 0x006c 972339ea99SRajendra Nayak #define OMAP4_PRM_VP_IVA_CONFIG_OFFSET 0x0070 982339ea99SRajendra Nayak #define OMAP4_PRM_VP_IVA_STATUS_OFFSET 0x0074 992339ea99SRajendra Nayak #define OMAP4_PRM_VP_IVA_VLIMITTO_OFFSET 0x0078 1002339ea99SRajendra Nayak #define OMAP4_PRM_VP_IVA_VOLTAGE_OFFSET 0x007c 1012339ea99SRajendra Nayak #define OMAP4_PRM_VP_IVA_VSTEPMAX_OFFSET 0x0080 1022339ea99SRajendra Nayak #define OMAP4_PRM_VP_IVA_VSTEPMIN_OFFSET 0x0084 1032339ea99SRajendra Nayak #define OMAP4_PRM_VC_SMPS_SA_OFFSET 0x0088 1042339ea99SRajendra Nayak #define OMAP4_PRM_VC_VAL_SMPS_RA_VOL_OFFSET 0x008c 1052339ea99SRajendra Nayak #define OMAP4_PRM_VC_VAL_SMPS_RA_CMD_OFFSET 0x0090 1062339ea99SRajendra Nayak #define OMAP4_PRM_VC_VAL_CMD_VDD_CORE_L_OFFSET 0x0094 1072339ea99SRajendra Nayak #define OMAP4_PRM_VC_VAL_CMD_VDD_MPU_L_OFFSET 0x0098 1082339ea99SRajendra Nayak #define OMAP4_PRM_VC_VAL_CMD_VDD_IVA_L_OFFSET 0x009c 1092339ea99SRajendra Nayak #define OMAP4_PRM_VC_VAL_BYPASS_OFFSET 0x00a0 1102339ea99SRajendra Nayak #define OMAP4_PRM_VC_CFG_CHANNEL_OFFSET 0x00a4 111ad98a18bSBenoit Cousson #define OMAP4_PRM_VC_CFG_I2C_MODE_OFFSET 0x00a8 1122339ea99SRajendra Nayak #define OMAP4_PRM_VC_CFG_I2C_CLK_OFFSET 0x00ac 113c1294045SRajendra Nayak 114c1294045SRajendra Nayak #endif 115