xref: /linux/arch/arm/mach-omap2/cm-regbits-24xx.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
269d88a00SPaul Walmsley #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_24XX_H
369d88a00SPaul Walmsley #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_24XX_H
469d88a00SPaul Walmsley 
569d88a00SPaul Walmsley /*
669d88a00SPaul Walmsley  * OMAP24XX Clock Management register bits
769d88a00SPaul Walmsley  *
869d88a00SPaul Walmsley  * Copyright (C) 2007 Texas Instruments, Inc.
969d88a00SPaul Walmsley  * Copyright (C) 2007 Nokia Corporation
1069d88a00SPaul Walmsley  *
1169d88a00SPaul Walmsley  * Written by Paul Walmsley
1269d88a00SPaul Walmsley  */
1369d88a00SPaul Walmsley 
14801954d3SPaul Walmsley #define OMAP24XX_AUTOSTATE_MPU_MASK			(1 << 0)
15f38ca10aSPaul Walmsley #define OMAP24XX_EN_DSS1_MASK				(1 << 0)
16da0747d4SPaul Walmsley #define OMAP24XX_ST_MAILBOXES_SHIFT			30
17da0747d4SPaul Walmsley #define OMAP24XX_ST_HDQ_SHIFT				23
18da0747d4SPaul Walmsley #define OMAP2420_ST_I2C2_SHIFT				20
192004290fSPaul Walmsley #define OMAP2430_ST_I2CHS1_SHIFT			19
20da0747d4SPaul Walmsley #define OMAP2420_ST_I2C1_SHIFT				19
212004290fSPaul Walmsley #define OMAP2430_ST_I2CHS2_SHIFT			20
22da0747d4SPaul Walmsley #define OMAP24XX_ST_MCBSP2_SHIFT			16
23da0747d4SPaul Walmsley #define OMAP24XX_ST_MCBSP1_SHIFT			15
24da0747d4SPaul Walmsley #define OMAP2430_ST_MCBSP5_SHIFT			5
25da0747d4SPaul Walmsley #define OMAP2430_ST_MCBSP4_SHIFT			4
26da0747d4SPaul Walmsley #define OMAP2430_ST_MCBSP3_SHIFT			3
27da0747d4SPaul Walmsley #define OMAP24XX_ST_AES_SHIFT				3
28da0747d4SPaul Walmsley #define OMAP24XX_ST_RNG_SHIFT				2
29da0747d4SPaul Walmsley #define OMAP24XX_ST_SHA_SHIFT				1
3069d88a00SPaul Walmsley #define OMAP24XX_CLKSEL_DSS2_MASK			(0x1 << 13)
31801954d3SPaul Walmsley #define OMAP24XX_AUTOSTATE_DSS_MASK			(1 << 2)
32801954d3SPaul Walmsley #define OMAP24XX_AUTOSTATE_L4_MASK			(1 << 1)
33801954d3SPaul Walmsley #define OMAP24XX_AUTOSTATE_L3_MASK			(1 << 0)
34801954d3SPaul Walmsley #define OMAP24XX_AUTOSTATE_GFX_MASK			(1 << 0)
35da0747d4SPaul Walmsley #define OMAP24XX_ST_MPU_WDT_SHIFT			3
36da0747d4SPaul Walmsley #define OMAP24XX_ST_32KSYNC_SHIFT			1
3769d88a00SPaul Walmsley #define OMAP24XX_EN_54M_PLL_SHIFT			6
3869d88a00SPaul Walmsley #define OMAP24XX_EN_96M_PLL_SHIFT			2
39b6ffa050SPaul Walmsley #define OMAP24XX_ST_54M_APLL_SHIFT			9
40b6ffa050SPaul Walmsley #define OMAP24XX_ST_96M_APLL_SHIFT			8
4169d88a00SPaul Walmsley #define OMAP24XX_AUTO_54M_MASK				(0x3 << 6)
4269d88a00SPaul Walmsley #define OMAP24XX_AUTO_96M_MASK				(0x3 << 2)
4369d88a00SPaul Walmsley #define OMAP24XX_AUTO_DPLL_SHIFT			0
4469d88a00SPaul Walmsley #define OMAP24XX_AUTO_DPLL_MASK				(0x3 << 0)
4569d88a00SPaul Walmsley #define OMAP24XX_CORE_CLK_SRC_MASK			(0x3 << 0)
46801954d3SPaul Walmsley #define OMAP2420_AUTOSTATE_IVA_MASK			(1 << 8)
47801954d3SPaul Walmsley #define OMAP24XX_AUTOSTATE_DSP_MASK			(1 << 0)
48801954d3SPaul Walmsley #define OMAP2430_AUTOSTATE_MDM_MASK			(1 << 0)
4955ae3507SPaul Walmsley #define OMAP24XX_CLKSTCTRL_DISABLE_AUTO		0x0
5055ae3507SPaul Walmsley #define OMAP24XX_CLKSTCTRL_ENABLE_AUTO		0x1
5169d88a00SPaul Walmsley #endif
52