2019-06-04 16:11:33 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2010-12-22 06:30:54 +08:00
|
|
|
/*
|
|
|
|
* OMAP44xx CM2 instance offset macros
|
|
|
|
*
|
2011-07-10 09:15:04 +08:00
|
|
|
* Copyright (C) 2009-2011 Texas Instruments, Inc.
|
2010-12-22 06:30:54 +08:00
|
|
|
* Copyright (C) 2009-2010 Nokia Corporation
|
|
|
|
*
|
|
|
|
* Paul Walmsley (paul@pwsan.com)
|
|
|
|
* Rajendra Nayak (rnayak@ti.com)
|
|
|
|
* Benoit Cousson (b-cousson@ti.com)
|
|
|
|
*
|
|
|
|
* This file is automatically generated from the OMAP hardware databases.
|
|
|
|
* We respectfully ask that any modifications to this file be coordinated
|
|
|
|
* with the public linux-omap@vger.kernel.org mailing list and the
|
|
|
|
* authors above to ensure that the autogeneration scripts are kept
|
|
|
|
* up-to-date with the file contents.
|
|
|
|
*
|
|
|
|
* XXX This file needs to be updated to align on one of "OMAP4", "OMAP44XX",
|
|
|
|
* or "OMAP4430".
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ARCH_ARM_MACH_OMAP2_CM2_44XX_H
|
|
|
|
#define __ARCH_ARM_MACH_OMAP2_CM2_44XX_H
|
|
|
|
|
|
|
|
/* CM2 base address */
|
|
|
|
#define OMAP4430_CM2_BASE 0x4a008000
|
|
|
|
|
OMAP4: PRCM: rename _MOD macros to _INST
Back in the OMAP2/3 PRCM interface days, the macros that referred to
the offsets of individual PRM/CM instances from the top of the PRM/CM
hardware modules were incorrectly suffixed with "_MOD". (They should
have been suffixed with something like "_INST" or "_INSTANCE".) These
days, now that we have better contact with the OMAP hardware people,
we know that this naming is wrong. And in fact in OMAP4, there are
actual hardware module offsets inside the instances, so the incorrect
naming gets confusing very quickly for anyone who knows the hardware.
Fix this naming for OMAP4, before things get too far along, by
changing "_MOD" to "_INST" on the end of these macros. So, for
example, OMAP4430_CM2_INSTR_MOD becomes OMAP4430_CM2_INSTR_INST.
This unfortunately creates quite a large diff, but it is a
straightforward rename. This patch should not result in any
functional changes.
The autogeneration scripts have been updated accordingly.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoît Cousson <b-cousson@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Rajendra Nayak <rnayak@ti.com>
2010-12-22 06:30:55 +08:00
|
|
|
#define OMAP44XX_CM2_REGADDR(inst, reg) \
|
|
|
|
OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE + (inst) + (reg))
|
2010-12-22 06:30:54 +08:00
|
|
|
|
|
|
|
/* CM2 instances */
|
OMAP4: PRCM: rename _MOD macros to _INST
Back in the OMAP2/3 PRCM interface days, the macros that referred to
the offsets of individual PRM/CM instances from the top of the PRM/CM
hardware modules were incorrectly suffixed with "_MOD". (They should
have been suffixed with something like "_INST" or "_INSTANCE".) These
days, now that we have better contact with the OMAP hardware people,
we know that this naming is wrong. And in fact in OMAP4, there are
actual hardware module offsets inside the instances, so the incorrect
naming gets confusing very quickly for anyone who knows the hardware.
Fix this naming for OMAP4, before things get too far along, by
changing "_MOD" to "_INST" on the end of these macros. So, for
example, OMAP4430_CM2_INSTR_MOD becomes OMAP4430_CM2_INSTR_INST.
This unfortunately creates quite a large diff, but it is a
straightforward rename. This patch should not result in any
functional changes.
The autogeneration scripts have been updated accordingly.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoît Cousson <b-cousson@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Rajendra Nayak <rnayak@ti.com>
2010-12-22 06:30:55 +08:00
|
|
|
#define OMAP4430_CM2_OCP_SOCKET_INST 0x0000
|
|
|
|
#define OMAP4430_CM2_CKGEN_INST 0x0100
|
|
|
|
#define OMAP4430_CM2_ALWAYS_ON_INST 0x0600
|
|
|
|
#define OMAP4430_CM2_CORE_INST 0x0700
|
|
|
|
#define OMAP4430_CM2_IVAHD_INST 0x0f00
|
|
|
|
#define OMAP4430_CM2_CAM_INST 0x1000
|
|
|
|
#define OMAP4430_CM2_DSS_INST 0x1100
|
|
|
|
#define OMAP4430_CM2_GFX_INST 0x1200
|
2011-07-10 09:15:04 +08:00
|
|
|
#define OMAP4430_CM2_L3INIT_INST 0x1300
|
OMAP4: PRCM: rename _MOD macros to _INST
Back in the OMAP2/3 PRCM interface days, the macros that referred to
the offsets of individual PRM/CM instances from the top of the PRM/CM
hardware modules were incorrectly suffixed with "_MOD". (They should
have been suffixed with something like "_INST" or "_INSTANCE".) These
days, now that we have better contact with the OMAP hardware people,
we know that this naming is wrong. And in fact in OMAP4, there are
actual hardware module offsets inside the instances, so the incorrect
naming gets confusing very quickly for anyone who knows the hardware.
Fix this naming for OMAP4, before things get too far along, by
changing "_MOD" to "_INST" on the end of these macros. So, for
example, OMAP4430_CM2_INSTR_MOD becomes OMAP4430_CM2_INSTR_INST.
This unfortunately creates quite a large diff, but it is a
straightforward rename. This patch should not result in any
functional changes.
The autogeneration scripts have been updated accordingly.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoît Cousson <b-cousson@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Rajendra Nayak <rnayak@ti.com>
2010-12-22 06:30:55 +08:00
|
|
|
#define OMAP4430_CM2_L4PER_INST 0x1400
|
2011-07-10 09:15:04 +08:00
|
|
|
#define OMAP4430_CM2_CEFUSE_INST 0x1600
|
2010-12-22 06:30:54 +08:00
|
|
|
|
2010-12-22 12:05:15 +08:00
|
|
|
/* CM2 clockdomain register offsets (from instance start) */
|
|
|
|
#define OMAP4430_CM2_ALWAYS_ON_ALWON_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM2_CORE_L3_1_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM2_CORE_L3_2_CDOFFS 0x0100
|
|
|
|
#define OMAP4430_CM2_CORE_DUCATI_CDOFFS 0x0200
|
|
|
|
#define OMAP4430_CM2_CORE_SDMA_CDOFFS 0x0300
|
|
|
|
#define OMAP4430_CM2_CORE_MEMIF_CDOFFS 0x0400
|
|
|
|
#define OMAP4430_CM2_CORE_D2D_CDOFFS 0x0500
|
|
|
|
#define OMAP4430_CM2_CORE_L4CFG_CDOFFS 0x0600
|
|
|
|
#define OMAP4430_CM2_CORE_L3INSTR_CDOFFS 0x0700
|
|
|
|
#define OMAP4430_CM2_IVAHD_IVAHD_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM2_CAM_CAM_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM2_DSS_DSS_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM2_GFX_GFX_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM2_L3INIT_L3INIT_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM2_L4PER_L4PER_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM2_L4PER_L4SEC_CDOFFS 0x0180
|
|
|
|
#define OMAP4430_CM2_CEFUSE_CEFUSE_CDOFFS 0x0000
|
|
|
|
|
2010-12-22 06:30:54 +08:00
|
|
|
#endif
|