xref: /linux/arch/arm/mach-omap2/prm-regbits-24xx.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H
3 #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_24XX_H
4 
5 /*
6  * OMAP24XX Power/Reset Management register bits
7  *
8  * Copyright (C) 2007 Texas Instruments, Inc.
9  * Copyright (C) 2007 Nokia Corporation
10  *
11  * Written by Paul Walmsley
12  */
13 
14 #include "prm2xxx.h"
15 
16 #define OMAP24XX_EN_CORE_SHIFT 				0
17 #define OMAP24XX_FORCESTATE_MASK			(1 << 18)
18 #define OMAP24XX_AUTOIDLE_MASK				(1 << 0)
19 #define OMAP24XX_AUTO_EXTVOLT_MASK			(1 << 15)
20 #define OMAP24XX_SETOFF_LEVEL_SHIFT			12
21 #define OMAP24XX_MEMRETCTRL_MASK			(1 << 8)
22 #define OMAP24XX_SETRET_LEVEL_SHIFT			6
23 #define OMAP24XX_VOLT_LEVEL_SHIFT			0
24 #define OMAP2420_CLKOUT2_EN_SHIFT			15
25 #define OMAP2420_CLKOUT2_DIV_SHIFT			11
26 #define OMAP2420_CLKOUT2_DIV_WIDTH			3
27 #define OMAP2420_CLKOUT2_SOURCE_MASK			(0x3 << 8)
28 #define OMAP24XX_CLKOUT_EN_SHIFT			7
29 #define OMAP24XX_CLKOUT_DIV_SHIFT			3
30 #define OMAP24XX_CLKOUT_DIV_WIDTH			3
31 #define OMAP24XX_CLKOUT_SOURCE_MASK			(0x3 << 0)
32 #define OMAP24XX_EMULATION_EN_SHIFT			0
33 #define OMAP2430_PM_WKDEP_MPU_EN_MDM_SHIFT		5
34 #define OMAP24XX_PM_WKDEP_MPU_EN_DSP_SHIFT		2
35 #define OMAP24XX_EXTWMPU_RST_SHIFT			6
36 #define OMAP24XX_SECU_WD_RST_SHIFT			5
37 #define OMAP24XX_MPU_WD_RST_SHIFT			4
38 #define OMAP24XX_SECU_VIOL_RST_SHIFT			3
39 #endif
40