123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- /*
- * OMAP3430 Power/Reset Management register bits
- *
- * Copyright (C) 2007-2008 Texas Instruments, Inc.
- * Copyright (C) 2007-2008 Nokia Corporation
- *
- * Written by Paul Walmsley
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
- #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H
- #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H
- #include "prm3xxx.h"
- /* Shared register bits */
- /* PRM_VC_CMD_VAL_0, PRM_VC_CMD_VAL_1 shared bits */
- #define OMAP3430_ON_SHIFT 24
- #define OMAP3430_ON_MASK (0xff << 24)
- #define OMAP3430_ONLP_SHIFT 16
- #define OMAP3430_ONLP_MASK (0xff << 16)
- #define OMAP3430_RET_SHIFT 8
- #define OMAP3430_RET_MASK (0xff << 8)
- #define OMAP3430_OFF_SHIFT 0
- #define OMAP3430_OFF_MASK (0xff << 0)
- /* PRM_VP1_CONFIG, PRM_VP2_CONFIG shared bits */
- #define OMAP3430_ERROROFFSET_SHIFT 24
- #define OMAP3430_ERROROFFSET_MASK (0xff << 24)
- #define OMAP3430_ERRORGAIN_SHIFT 16
- #define OMAP3430_ERRORGAIN_MASK (0xff << 16)
- #define OMAP3430_INITVOLTAGE_SHIFT 8
- #define OMAP3430_INITVOLTAGE_MASK (0xff << 8)
- #define OMAP3430_TIMEOUTEN_MASK (1 << 3)
- #define OMAP3430_INITVDD_MASK (1 << 2)
- #define OMAP3430_FORCEUPDATE_MASK (1 << 1)
- #define OMAP3430_VPENABLE_MASK (1 << 0)
- /* PRM_VP1_VSTEPMIN, PRM_VP2_VSTEPMIN shared bits */
- #define OMAP3430_SMPSWAITTIMEMIN_SHIFT 8
- #define OMAP3430_SMPSWAITTIMEMIN_MASK (0xffff << 8)
- #define OMAP3430_VSTEPMIN_SHIFT 0
- #define OMAP3430_VSTEPMIN_MASK (0xff << 0)
- /* PRM_VP1_VSTEPMAX, PRM_VP2_VSTEPMAX shared bits */
- #define OMAP3430_SMPSWAITTIMEMAX_SHIFT 8
- #define OMAP3430_SMPSWAITTIMEMAX_MASK (0xffff << 8)
- #define OMAP3430_VSTEPMAX_SHIFT 0
- #define OMAP3430_VSTEPMAX_MASK (0xff << 0)
- /* PRM_VP1_VLIMITTO, PRM_VP2_VLIMITTO shared bits */
- #define OMAP3430_VDDMAX_SHIFT 24
- #define OMAP3430_VDDMAX_MASK (0xff << 24)
- #define OMAP3430_VDDMIN_SHIFT 16
- #define OMAP3430_VDDMIN_MASK (0xff << 16)
- #define OMAP3430_TIMEOUT_SHIFT 0
- #define OMAP3430_TIMEOUT_MASK (0xffff << 0)
- /* PRM_VP1_VOLTAGE, PRM_VP2_VOLTAGE shared bits */
- #define OMAP3430_VPVOLTAGE_SHIFT 0
- #define OMAP3430_VPVOLTAGE_MASK (0xff << 0)
- /* PRM_VP1_STATUS, PRM_VP2_STATUS shared bits */
- #define OMAP3430_VPINIDLE_MASK (1 << 0)
- /* PM_WKDEP_IVA2, PM_WKDEP_MPU shared bits */
- #define OMAP3430_EN_PER_SHIFT 7
- #define OMAP3430_EN_PER_MASK (1 << 7)
- /* PM_PWSTCTRL_IVA2, PM_PWSTCTRL_MPU, PM_PWSTCTRL_CORE shared bits */
- #define OMAP3430_MEMORYCHANGE_MASK (1 << 3)
- /* PM_PWSTST_IVA2, PM_PWSTST_CORE shared bits */
- #define OMAP3430_LOGICSTATEST_MASK (1 << 2)
- /* PM_PREPWSTST_IVA2, PM_PREPWSTST_CORE shared bits */
- #define OMAP3430_LASTLOGICSTATEENTERED_MASK (1 << 2)
- /*
- * PM_PREPWSTST_IVA2, PM_PREPWSTST_MPU, PM_PREPWSTST_CORE,
- * PM_PREPWSTST_GFX, PM_PREPWSTST_DSS, PM_PREPWSTST_CAM,
- * PM_PREPWSTST_PER, PM_PREPWSTST_NEON shared bits
- */
- #define OMAP3430_LASTPOWERSTATEENTERED_SHIFT 0
- #define OMAP3430_LASTPOWERSTATEENTERED_MASK (0x3 << 0)
- /* PRM_IRQSTATUS_IVA2, PRM_IRQSTATUS_MPU shared bits */
- #define OMAP3430_WKUP_ST_MASK (1 << 0)
- /* PRM_IRQENABLE_IVA2, PRM_IRQENABLE_MPU shared bits */
- #define OMAP3430_WKUP_EN_MASK (1 << 0)
- /* PM_MPUGRPSEL1_CORE, PM_IVA2GRPSEL1_CORE shared bits */
- #define OMAP3430_GRPSEL_MMC2_MASK (1 << 25)
- #define OMAP3430_GRPSEL_MMC1_MASK (1 << 24)
- #define OMAP3430_GRPSEL_MCSPI4_MASK (1 << 21)
- #define OMAP3430_GRPSEL_MCSPI3_MASK (1 << 20)
- #define OMAP3430_GRPSEL_MCSPI2_MASK (1 << 19)
- #define OMAP3430_GRPSEL_MCSPI1_MASK (1 << 18)
|