2019-06-04 11:11:33 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2008-03-18 11:02:50 +03:00
|
|
|
#ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_24XX_H
|
|
|
|
#define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_24XX_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* OMAP24XX Clock Management register bits
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Texas Instruments, Inc.
|
|
|
|
* Copyright (C) 2007 Nokia Corporation
|
|
|
|
*
|
|
|
|
* Written by Paul Walmsley
|
|
|
|
*/
|
|
|
|
|
2008-08-19 12:08:44 +04:00
|
|
|
#define OMAP24XX_AUTOSTATE_MPU_MASK (1 << 0)
|
2010-05-20 22:31:04 +04:00
|
|
|
#define OMAP24XX_EN_DSS1_MASK (1 << 0)
|
[ARM] OMAP2 PRCM: clean up CM_IDLEST bits
This patch fixes a few OMAP2xxx CM_IDLEST bits that were incorrectly
marked as being OMAP2xxx-wide, when they were actually 2420-specific.
Also, originally when the PRCM register macros were defined, bit shift
macros used a "_SHIFT" suffix, and mask macros used none. This became
a source of bugs and confusion, as the mask macros were mistakenly
used for shift values. Gradually, the mask macros have been updated,
piece by piece, to add a "_MASK" suffix on the end to clarify. This
patch applies this change to the CM_IDLEST_* register bits.
The patch also adds a few bits that were missing, mostly from the 3430ES1
to ES2 revisions.
linux-omap source commits are d18eff5b5fa15e170794397a6a94486d1f774f77,
e1f1a5cc24615fb790cc763c96d1c5cfe6296f5b, and part of
9fe6b6cf8d9e0cbb429fd64553a4b3160a9e99e1
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-01-28 22:18:22 +03:00
|
|
|
#define OMAP24XX_ST_MAILBOXES_SHIFT 30
|
|
|
|
#define OMAP24XX_ST_HDQ_SHIFT 23
|
|
|
|
#define OMAP2420_ST_I2C2_SHIFT 20
|
2010-09-30 01:10:12 +04:00
|
|
|
#define OMAP2430_ST_I2CHS1_SHIFT 19
|
[ARM] OMAP2 PRCM: clean up CM_IDLEST bits
This patch fixes a few OMAP2xxx CM_IDLEST bits that were incorrectly
marked as being OMAP2xxx-wide, when they were actually 2420-specific.
Also, originally when the PRCM register macros were defined, bit shift
macros used a "_SHIFT" suffix, and mask macros used none. This became
a source of bugs and confusion, as the mask macros were mistakenly
used for shift values. Gradually, the mask macros have been updated,
piece by piece, to add a "_MASK" suffix on the end to clarify. This
patch applies this change to the CM_IDLEST_* register bits.
The patch also adds a few bits that were missing, mostly from the 3430ES1
to ES2 revisions.
linux-omap source commits are d18eff5b5fa15e170794397a6a94486d1f774f77,
e1f1a5cc24615fb790cc763c96d1c5cfe6296f5b, and part of
9fe6b6cf8d9e0cbb429fd64553a4b3160a9e99e1
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-01-28 22:18:22 +03:00
|
|
|
#define OMAP2420_ST_I2C1_SHIFT 19
|
2010-09-30 01:10:12 +04:00
|
|
|
#define OMAP2430_ST_I2CHS2_SHIFT 20
|
[ARM] OMAP2 PRCM: clean up CM_IDLEST bits
This patch fixes a few OMAP2xxx CM_IDLEST bits that were incorrectly
marked as being OMAP2xxx-wide, when they were actually 2420-specific.
Also, originally when the PRCM register macros were defined, bit shift
macros used a "_SHIFT" suffix, and mask macros used none. This became
a source of bugs and confusion, as the mask macros were mistakenly
used for shift values. Gradually, the mask macros have been updated,
piece by piece, to add a "_MASK" suffix on the end to clarify. This
patch applies this change to the CM_IDLEST_* register bits.
The patch also adds a few bits that were missing, mostly from the 3430ES1
to ES2 revisions.
linux-omap source commits are d18eff5b5fa15e170794397a6a94486d1f774f77,
e1f1a5cc24615fb790cc763c96d1c5cfe6296f5b, and part of
9fe6b6cf8d9e0cbb429fd64553a4b3160a9e99e1
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-01-28 22:18:22 +03:00
|
|
|
#define OMAP24XX_ST_MCBSP2_SHIFT 16
|
|
|
|
#define OMAP24XX_ST_MCBSP1_SHIFT 15
|
|
|
|
#define OMAP2430_ST_MCBSP5_SHIFT 5
|
2010-05-20 22:31:04 +04:00
|
|
|
#define OMAP2430_ST_MCBSP4_SHIFT 4
|
|
|
|
#define OMAP2430_ST_MCBSP3_SHIFT 3
|
[ARM] OMAP2 PRCM: clean up CM_IDLEST bits
This patch fixes a few OMAP2xxx CM_IDLEST bits that were incorrectly
marked as being OMAP2xxx-wide, when they were actually 2420-specific.
Also, originally when the PRCM register macros were defined, bit shift
macros used a "_SHIFT" suffix, and mask macros used none. This became
a source of bugs and confusion, as the mask macros were mistakenly
used for shift values. Gradually, the mask macros have been updated,
piece by piece, to add a "_MASK" suffix on the end to clarify. This
patch applies this change to the CM_IDLEST_* register bits.
The patch also adds a few bits that were missing, mostly from the 3430ES1
to ES2 revisions.
linux-omap source commits are d18eff5b5fa15e170794397a6a94486d1f774f77,
e1f1a5cc24615fb790cc763c96d1c5cfe6296f5b, and part of
9fe6b6cf8d9e0cbb429fd64553a4b3160a9e99e1
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-01-28 22:18:22 +03:00
|
|
|
#define OMAP24XX_ST_AES_SHIFT 3
|
|
|
|
#define OMAP24XX_ST_RNG_SHIFT 2
|
|
|
|
#define OMAP24XX_ST_SHA_SHIFT 1
|
2008-03-18 11:02:50 +03:00
|
|
|
#define OMAP24XX_CLKSEL_DSS2_MASK (0x1 << 13)
|
2008-08-19 12:08:44 +04:00
|
|
|
#define OMAP24XX_AUTOSTATE_DSS_MASK (1 << 2)
|
|
|
|
#define OMAP24XX_AUTOSTATE_L4_MASK (1 << 1)
|
|
|
|
#define OMAP24XX_AUTOSTATE_L3_MASK (1 << 0)
|
|
|
|
#define OMAP24XX_AUTOSTATE_GFX_MASK (1 << 0)
|
[ARM] OMAP2 PRCM: clean up CM_IDLEST bits
This patch fixes a few OMAP2xxx CM_IDLEST bits that were incorrectly
marked as being OMAP2xxx-wide, when they were actually 2420-specific.
Also, originally when the PRCM register macros were defined, bit shift
macros used a "_SHIFT" suffix, and mask macros used none. This became
a source of bugs and confusion, as the mask macros were mistakenly
used for shift values. Gradually, the mask macros have been updated,
piece by piece, to add a "_MASK" suffix on the end to clarify. This
patch applies this change to the CM_IDLEST_* register bits.
The patch also adds a few bits that were missing, mostly from the 3430ES1
to ES2 revisions.
linux-omap source commits are d18eff5b5fa15e170794397a6a94486d1f774f77,
e1f1a5cc24615fb790cc763c96d1c5cfe6296f5b, and part of
9fe6b6cf8d9e0cbb429fd64553a4b3160a9e99e1
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-01-28 22:18:22 +03:00
|
|
|
#define OMAP24XX_ST_MPU_WDT_SHIFT 3
|
|
|
|
#define OMAP24XX_ST_32KSYNC_SHIFT 1
|
2008-03-18 11:02:50 +03:00
|
|
|
#define OMAP24XX_EN_54M_PLL_SHIFT 6
|
|
|
|
#define OMAP24XX_EN_96M_PLL_SHIFT 2
|
2012-10-30 06:56:17 +04:00
|
|
|
#define OMAP24XX_ST_54M_APLL_SHIFT 9
|
|
|
|
#define OMAP24XX_ST_96M_APLL_SHIFT 8
|
2008-03-18 11:02:50 +03:00
|
|
|
#define OMAP24XX_AUTO_54M_MASK (0x3 << 6)
|
|
|
|
#define OMAP24XX_AUTO_96M_MASK (0x3 << 2)
|
|
|
|
#define OMAP24XX_AUTO_DPLL_SHIFT 0
|
|
|
|
#define OMAP24XX_AUTO_DPLL_MASK (0x3 << 0)
|
|
|
|
#define OMAP24XX_CORE_CLK_SRC_MASK (0x3 << 0)
|
2008-08-19 12:08:44 +04:00
|
|
|
#define OMAP2420_AUTOSTATE_IVA_MASK (1 << 8)
|
|
|
|
#define OMAP24XX_AUTOSTATE_DSP_MASK (1 << 0)
|
|
|
|
#define OMAP2430_AUTOSTATE_MDM_MASK (1 << 0)
|
2010-12-22 07:05:15 +03:00
|
|
|
#define OMAP24XX_CLKSTCTRL_DISABLE_AUTO 0x0
|
|
|
|
#define OMAP24XX_CLKSTCTRL_ENABLE_AUTO 0x1
|
2008-03-18 11:02:50 +03:00
|
|
|
#endif
|