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