Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 2 | /* |
| 3 | * OMAP54xx CM1 instance offset macros |
| 4 | * |
Alexander A. Klimov | 83bf6db | 2020-07-19 12:30:33 +0200 | [diff] [blame] | 5 | * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 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. |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 16 | */ |
| 17 | |
| 18 | #ifndef __ARCH_ARM_MACH_OMAP2_CM1_54XX_H |
| 19 | #define __ARCH_ARM_MACH_OMAP2_CM1_54XX_H |
| 20 | |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 21 | /* CM1 base address */ |
| 22 | #define OMAP54XX_CM_CORE_AON_BASE 0x4a004000 |
| 23 | |
| 24 | #define OMAP54XX_CM_CORE_AON_REGADDR(inst, reg) \ |
| 25 | OMAP2_L4_IO_ADDRESS(OMAP54XX_CM_CORE_AON_BASE + (inst) + (reg)) |
| 26 | |
| 27 | /* CM_CORE_AON instances */ |
| 28 | #define OMAP54XX_CM_CORE_AON_OCP_SOCKET_INST 0x0000 |
| 29 | #define OMAP54XX_CM_CORE_AON_CKGEN_INST 0x0100 |
| 30 | #define OMAP54XX_CM_CORE_AON_MPU_INST 0x0300 |
| 31 | #define OMAP54XX_CM_CORE_AON_DSP_INST 0x0400 |
| 32 | #define OMAP54XX_CM_CORE_AON_ABE_INST 0x0500 |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 33 | |
| 34 | /* CM_CORE_AON clockdomain register offsets (from instance start) */ |
| 35 | #define OMAP54XX_CM_CORE_AON_MPU_MPU_CDOFFS 0x0000 |
| 36 | #define OMAP54XX_CM_CORE_AON_DSP_DSP_CDOFFS 0x0000 |
| 37 | #define OMAP54XX_CM_CORE_AON_ABE_ABE_CDOFFS 0x0000 |
| 38 | |
Benoit Cousson | dfab439 | 2013-05-29 12:38:04 -0400 | [diff] [blame] | 39 | #endif |