2019-06-04 10:11:33 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2010-12-21 15:30:54 -07:00
|
|
|
/*
|
|
|
|
* OMAP44xx CM1 instance offset macros
|
|
|
|
*
|
2011-07-09 19:15:04 -06:00
|
|
|
* Copyright (C) 2009-2011 Texas Instruments, Inc.
|
2010-12-21 15:30:54 -07: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_CM1_44XX_H
|
|
|
|
#define __ARCH_ARM_MACH_OMAP2_CM1_44XX_H
|
|
|
|
|
|
|
|
/* CM1 base address */
|
|
|
|
#define OMAP4430_CM1_BASE 0x4a004000
|
|
|
|
|
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-21 15:30:55 -07:00
|
|
|
#define OMAP44XX_CM1_REGADDR(inst, reg) \
|
|
|
|
OMAP2_L4_IO_ADDRESS(OMAP4430_CM1_BASE + (inst) + (reg))
|
2010-12-21 15:30:54 -07:00
|
|
|
|
|
|
|
/* CM1 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-21 15:30:55 -07:00
|
|
|
#define OMAP4430_CM1_OCP_SOCKET_INST 0x0000
|
|
|
|
#define OMAP4430_CM1_CKGEN_INST 0x0100
|
|
|
|
#define OMAP4430_CM1_MPU_INST 0x0300
|
|
|
|
#define OMAP4430_CM1_TESLA_INST 0x0400
|
|
|
|
#define OMAP4430_CM1_ABE_INST 0x0500
|
2010-12-21 15:30:54 -07:00
|
|
|
|
2010-12-21 21:05:15 -07:00
|
|
|
/* CM1 clockdomain register offsets (from instance start) */
|
2011-07-09 19:15:04 -06:00
|
|
|
#define OMAP4430_CM1_MPU_MPU_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM1_TESLA_TESLA_CDOFFS 0x0000
|
|
|
|
#define OMAP4430_CM1_ABE_ABE_CDOFFS 0x0000
|
2010-12-21 21:05:15 -07:00
|
|
|
|
2010-12-21 15:30:54 -07:00
|
|
|
#endif
|