1c595713dSTony Lindgren /* 2c595713dSTony Lindgren * OMAP3430 Power/Reset Management register bits 3c595713dSTony Lindgren * 4c595713dSTony Lindgren * Copyright (C) 2007-2008 Texas Instruments, Inc. 5c595713dSTony Lindgren * Copyright (C) 2007-2008 Nokia Corporation 6c595713dSTony Lindgren * 7c595713dSTony Lindgren * Written by Paul Walmsley 8c595713dSTony Lindgren * 9c595713dSTony Lindgren * This program is free software; you can redistribute it and/or modify 10c595713dSTony Lindgren * it under the terms of the GNU General Public License version 2 as 11c595713dSTony Lindgren * published by the Free Software Foundation. 12c595713dSTony Lindgren */ 1359fb659bSPaul Walmsley #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H 1459fb659bSPaul Walmsley #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H 15c595713dSTony Lindgren 1659fb659bSPaul Walmsley 17139563adSPaul Walmsley #include "prm3xxx.h" 18c595713dSTony Lindgren 19c595713dSTony Lindgren /* Shared register bits */ 20c595713dSTony Lindgren 21c595713dSTony Lindgren /* PRM_VC_CMD_VAL_0, PRM_VC_CMD_VAL_1 shared bits */ 22c595713dSTony Lindgren #define OMAP3430_ON_SHIFT 24 23c595713dSTony Lindgren #define OMAP3430_ON_MASK (0xff << 24) 24c595713dSTony Lindgren #define OMAP3430_ONLP_SHIFT 16 25c595713dSTony Lindgren #define OMAP3430_ONLP_MASK (0xff << 16) 26c595713dSTony Lindgren #define OMAP3430_RET_SHIFT 8 27c595713dSTony Lindgren #define OMAP3430_RET_MASK (0xff << 8) 28c595713dSTony Lindgren #define OMAP3430_OFF_SHIFT 0 29c595713dSTony Lindgren #define OMAP3430_OFF_MASK (0xff << 0) 30c595713dSTony Lindgren 31c595713dSTony Lindgren /* PRM_VP1_CONFIG, PRM_VP2_CONFIG shared bits */ 32c595713dSTony Lindgren #define OMAP3430_ERROROFFSET_SHIFT 24 33c595713dSTony Lindgren #define OMAP3430_ERROROFFSET_MASK (0xff << 24) 34c595713dSTony Lindgren #define OMAP3430_ERRORGAIN_SHIFT 16 35c595713dSTony Lindgren #define OMAP3430_ERRORGAIN_MASK (0xff << 16) 36c595713dSTony Lindgren #define OMAP3430_INITVOLTAGE_SHIFT 8 37c595713dSTony Lindgren #define OMAP3430_INITVOLTAGE_MASK (0xff << 8) 382bc4ef71SPaul Walmsley #define OMAP3430_TIMEOUTEN_MASK (1 << 3) 392bc4ef71SPaul Walmsley #define OMAP3430_INITVDD_MASK (1 << 2) 402bc4ef71SPaul Walmsley #define OMAP3430_FORCEUPDATE_MASK (1 << 1) 412bc4ef71SPaul Walmsley #define OMAP3430_VPENABLE_MASK (1 << 0) 42c595713dSTony Lindgren 43c595713dSTony Lindgren /* PRM_VP1_VSTEPMIN, PRM_VP2_VSTEPMIN shared bits */ 44c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMIN_SHIFT 8 45c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMIN_MASK (0xffff << 8) 46c595713dSTony Lindgren #define OMAP3430_VSTEPMIN_SHIFT 0 47c595713dSTony Lindgren #define OMAP3430_VSTEPMIN_MASK (0xff << 0) 48c595713dSTony Lindgren 49c595713dSTony Lindgren /* PRM_VP1_VSTEPMAX, PRM_VP2_VSTEPMAX shared bits */ 50c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMAX_SHIFT 8 51c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMAX_MASK (0xffff << 8) 52c595713dSTony Lindgren #define OMAP3430_VSTEPMAX_SHIFT 0 53c595713dSTony Lindgren #define OMAP3430_VSTEPMAX_MASK (0xff << 0) 54c595713dSTony Lindgren 55c595713dSTony Lindgren /* PRM_VP1_VLIMITTO, PRM_VP2_VLIMITTO shared bits */ 56c595713dSTony Lindgren #define OMAP3430_VDDMAX_SHIFT 24 57c595713dSTony Lindgren #define OMAP3430_VDDMAX_MASK (0xff << 24) 58c595713dSTony Lindgren #define OMAP3430_VDDMIN_SHIFT 16 59c595713dSTony Lindgren #define OMAP3430_VDDMIN_MASK (0xff << 16) 60c595713dSTony Lindgren #define OMAP3430_TIMEOUT_SHIFT 0 61c595713dSTony Lindgren #define OMAP3430_TIMEOUT_MASK (0xffff << 0) 62c595713dSTony Lindgren 63c595713dSTony Lindgren /* PRM_VP1_VOLTAGE, PRM_VP2_VOLTAGE shared bits */ 64c595713dSTony Lindgren #define OMAP3430_VPVOLTAGE_SHIFT 0 65c595713dSTony Lindgren #define OMAP3430_VPVOLTAGE_MASK (0xff << 0) 66c595713dSTony Lindgren 67c595713dSTony Lindgren /* PRM_VP1_STATUS, PRM_VP2_STATUS shared bits */ 682bc4ef71SPaul Walmsley #define OMAP3430_VPINIDLE_MASK (1 << 0) 69c595713dSTony Lindgren 70c595713dSTony Lindgren /* PM_WKDEP_IVA2, PM_WKDEP_MPU shared bits */ 71ecb24aa1SPaul Walmsley #define OMAP3430_EN_PER_SHIFT 7 72ecb24aa1SPaul Walmsley #define OMAP3430_EN_PER_MASK (1 << 7) 73c595713dSTony Lindgren 74c595713dSTony Lindgren /* PM_PWSTCTRL_IVA2, PM_PWSTCTRL_MPU, PM_PWSTCTRL_CORE shared bits */ 752bc4ef71SPaul Walmsley #define OMAP3430_MEMORYCHANGE_MASK (1 << 3) 76c595713dSTony Lindgren 77c595713dSTony Lindgren /* PM_PWSTST_IVA2, PM_PWSTST_CORE shared bits */ 782bc4ef71SPaul Walmsley #define OMAP3430_LOGICSTATEST_MASK (1 << 2) 79c595713dSTony Lindgren 80c595713dSTony Lindgren /* PM_PREPWSTST_IVA2, PM_PREPWSTST_CORE shared bits */ 812bc4ef71SPaul Walmsley #define OMAP3430_LASTLOGICSTATEENTERED_MASK (1 << 2) 82c595713dSTony Lindgren 83c595713dSTony Lindgren /* 84c595713dSTony Lindgren * PM_PREPWSTST_IVA2, PM_PREPWSTST_MPU, PM_PREPWSTST_CORE, 85c595713dSTony Lindgren * PM_PREPWSTST_GFX, PM_PREPWSTST_DSS, PM_PREPWSTST_CAM, 86c595713dSTony Lindgren * PM_PREPWSTST_PER, PM_PREPWSTST_NEON shared bits 87c595713dSTony Lindgren */ 88c595713dSTony Lindgren #define OMAP3430_LASTPOWERSTATEENTERED_SHIFT 0 89c595713dSTony Lindgren #define OMAP3430_LASTPOWERSTATEENTERED_MASK (0x3 << 0) 90c595713dSTony Lindgren 91c595713dSTony Lindgren /* PRM_IRQSTATUS_IVA2, PRM_IRQSTATUS_MPU shared bits */ 922bc4ef71SPaul Walmsley #define OMAP3430_WKUP_ST_MASK (1 << 0) 93c595713dSTony Lindgren 94c595713dSTony Lindgren /* PRM_IRQENABLE_IVA2, PRM_IRQENABLE_MPU shared bits */ 952bc4ef71SPaul Walmsley #define OMAP3430_WKUP_EN_MASK (1 << 0) 96c595713dSTony Lindgren 97c595713dSTony Lindgren /* PM_MPUGRPSEL1_CORE, PM_IVA2GRPSEL1_CORE shared bits */ 982bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MMC2_MASK (1 << 25) 992bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MMC1_MASK (1 << 24) 1002bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCSPI4_MASK (1 << 21) 1012bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCSPI3_MASK (1 << 20) 1022bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCSPI2_MASK (1 << 19) 1032bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCSPI1_MASK (1 << 18) 1044fe20e97SRajendra Nayak #define OMAP3430_GRPSEL_I2C3_SHIFT 17 1052bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_I2C3_MASK (1 << 17) 1064fe20e97SRajendra Nayak #define OMAP3430_GRPSEL_I2C2_SHIFT 16 1072bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_I2C2_MASK (1 << 16) 1084fe20e97SRajendra Nayak #define OMAP3430_GRPSEL_I2C1_SHIFT 15 1092bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_I2C1_MASK (1 << 15) 1102bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_UART2_MASK (1 << 14) 1112bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_UART1_MASK (1 << 13) 1122bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT11_MASK (1 << 12) 1132bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT10_MASK (1 << 11) 1142bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP5_MASK (1 << 10) 1152bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP1_MASK (1 << 9) 1162bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_HSOTGUSB_MASK (1 << 4) 1172bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_D2D_MASK (1 << 3) 118c595713dSTony Lindgren 119c595713dSTony Lindgren /* 120c595713dSTony Lindgren * PM_PWSTCTRL_GFX, PM_PWSTCTRL_DSS, PM_PWSTCTRL_CAM, 121c595713dSTony Lindgren * PM_PWSTCTRL_PER shared bits 122c595713dSTony Lindgren */ 123c595713dSTony Lindgren #define OMAP3430_MEMONSTATE_SHIFT 16 124c595713dSTony Lindgren #define OMAP3430_MEMONSTATE_MASK (0x3 << 16) 1252bc4ef71SPaul Walmsley #define OMAP3430_MEMRETSTATE_MASK (1 << 8) 126c595713dSTony Lindgren 127c595713dSTony Lindgren /* PM_MPUGRPSEL_PER, PM_IVA2GRPSEL_PER shared bits */ 128e5863689SGovindraj.R #define OMAP3630_GRPSEL_UART4_MASK (1 << 18) 1292bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO6_MASK (1 << 17) 1302bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO5_MASK (1 << 16) 1312bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO4_MASK (1 << 15) 1322bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO3_MASK (1 << 14) 1332bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO2_MASK (1 << 13) 1342bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_UART3_MASK (1 << 11) 1352bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT9_MASK (1 << 10) 1362bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT8_MASK (1 << 9) 1372bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT7_MASK (1 << 8) 1382bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT6_MASK (1 << 7) 1392bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT5_MASK (1 << 6) 1402bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT4_MASK (1 << 5) 1412bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT3_MASK (1 << 4) 1422bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT2_MASK (1 << 3) 1432bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP4_MASK (1 << 2) 1442bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP3_MASK (1 << 1) 1452bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP2_MASK (1 << 0) 146c595713dSTony Lindgren 147c595713dSTony Lindgren /* PM_MPUGRPSEL_WKUP, PM_IVA2GRPSEL_WKUP shared bits */ 1482bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_IO_MASK (1 << 8) 1492bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_SR2_MASK (1 << 7) 1502bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_SR1_MASK (1 << 6) 1512bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO1_MASK (1 << 3) 1522bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT12_MASK (1 << 1) 1532bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT1_MASK (1 << 0) 154c595713dSTony Lindgren 155c595713dSTony Lindgren /* Bits specific to each register */ 156c595713dSTony Lindgren 157c595713dSTony Lindgren /* RM_RSTCTRL_IVA2 */ 1582bc4ef71SPaul Walmsley #define OMAP3430_RST3_IVA2_MASK (1 << 2) 1592bc4ef71SPaul Walmsley #define OMAP3430_RST2_IVA2_MASK (1 << 1) 1602bc4ef71SPaul Walmsley #define OMAP3430_RST1_IVA2_MASK (1 << 0) 161c595713dSTony Lindgren 162c595713dSTony Lindgren /* RM_RSTST_IVA2 specific bits */ 1632bc4ef71SPaul Walmsley #define OMAP3430_EMULATION_VSEQ_RST_MASK (1 << 13) 1642bc4ef71SPaul Walmsley #define OMAP3430_EMULATION_VHWA_RST_MASK (1 << 12) 1652bc4ef71SPaul Walmsley #define OMAP3430_EMULATION_IVA2_RST_MASK (1 << 11) 1662bc4ef71SPaul Walmsley #define OMAP3430_IVA2_SW_RST3_MASK (1 << 10) 1672bc4ef71SPaul Walmsley #define OMAP3430_IVA2_SW_RST2_MASK (1 << 9) 1682bc4ef71SPaul Walmsley #define OMAP3430_IVA2_SW_RST1_MASK (1 << 8) 169c595713dSTony Lindgren 170c595713dSTony Lindgren /* PM_WKDEP_IVA2 specific bits */ 171c595713dSTony Lindgren 172c595713dSTony Lindgren /* PM_PWSTCTRL_IVA2 specific bits */ 173c595713dSTony Lindgren #define OMAP3430_L2FLATMEMONSTATE_SHIFT 22 174c595713dSTony Lindgren #define OMAP3430_L2FLATMEMONSTATE_MASK (0x3 << 22) 175c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATONSTATE_SHIFT 20 176c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATONSTATE_MASK (0x3 << 20) 177c595713dSTony Lindgren #define OMAP3430_L1FLATMEMONSTATE_SHIFT 18 178c595713dSTony Lindgren #define OMAP3430_L1FLATMEMONSTATE_MASK (0x3 << 18) 179c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATONSTATE_SHIFT 16 180c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATONSTATE_MASK (0x3 << 16) 1812bc4ef71SPaul Walmsley #define OMAP3430_L2FLATMEMRETSTATE_MASK (1 << 11) 1822bc4ef71SPaul Walmsley #define OMAP3430_SHAREDL2CACHEFLATRETSTATE_MASK (1 << 10) 1832bc4ef71SPaul Walmsley #define OMAP3430_L1FLATMEMRETSTATE_MASK (1 << 9) 1842bc4ef71SPaul Walmsley #define OMAP3430_SHAREDL1CACHEFLATRETSTATE_MASK (1 << 8) 185c595713dSTony Lindgren 186c595713dSTony Lindgren /* PM_PWSTST_IVA2 specific bits */ 187c595713dSTony Lindgren #define OMAP3430_L2FLATMEMSTATEST_SHIFT 10 188c595713dSTony Lindgren #define OMAP3430_L2FLATMEMSTATEST_MASK (0x3 << 10) 189c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATSTATEST_SHIFT 8 190c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATSTATEST_MASK (0x3 << 8) 191c595713dSTony Lindgren #define OMAP3430_L1FLATMEMSTATEST_SHIFT 6 192c595713dSTony Lindgren #define OMAP3430_L1FLATMEMSTATEST_MASK (0x3 << 6) 193c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATSTATEST_SHIFT 4 194c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATSTATEST_MASK (0x3 << 4) 195c595713dSTony Lindgren 196c595713dSTony Lindgren /* PM_PREPWSTST_IVA2 specific bits */ 197c595713dSTony Lindgren #define OMAP3430_LASTL2FLATMEMSTATEENTERED_SHIFT 10 198c595713dSTony Lindgren #define OMAP3430_LASTL2FLATMEMSTATEENTERED_MASK (0x3 << 10) 199c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL2CACHEFLATSTATEENTERED_SHIFT 8 200c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL2CACHEFLATSTATEENTERED_MASK (0x3 << 8) 201c595713dSTony Lindgren #define OMAP3430_LASTL1FLATMEMSTATEENTERED_SHIFT 6 202c595713dSTony Lindgren #define OMAP3430_LASTL1FLATMEMSTATEENTERED_MASK (0x3 << 6) 203c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL1CACHEFLATSTATEENTERED_SHIFT 4 204c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL1CACHEFLATSTATEENTERED_MASK (0x3 << 4) 205c595713dSTony Lindgren 206c595713dSTony Lindgren /* PRM_IRQSTATUS_IVA2 specific bits */ 2072bc4ef71SPaul Walmsley #define OMAP3430_PRM_IRQSTATUS_IVA2_IVA2_DPLL_ST_MASK (1 << 2) 2082bc4ef71SPaul Walmsley #define OMAP3430_FORCEWKUP_ST_MASK (1 << 1) 209c595713dSTony Lindgren 210c595713dSTony Lindgren /* PRM_IRQENABLE_IVA2 specific bits */ 2112bc4ef71SPaul Walmsley #define OMAP3430_PRM_IRQENABLE_IVA2_IVA2_DPLL_RECAL_EN_MASK (1 << 2) 2122bc4ef71SPaul Walmsley #define OMAP3430_FORCEWKUP_EN_MASK (1 << 1) 213c595713dSTony Lindgren 214c595713dSTony Lindgren /* PRM_REVISION specific bits */ 215c595713dSTony Lindgren 216c595713dSTony Lindgren /* PRM_SYSCONFIG specific bits */ 217c595713dSTony Lindgren 218c595713dSTony Lindgren /* PRM_IRQSTATUS_MPU specific bits */ 219c595713dSTony Lindgren #define OMAP3430ES2_SND_PERIPH_DPLL_ST_SHIFT 25 2202bc4ef71SPaul Walmsley #define OMAP3430ES2_SND_PERIPH_DPLL_ST_MASK (1 << 25) 2212bc4ef71SPaul Walmsley #define OMAP3430_VC_TIMEOUTERR_ST_MASK (1 << 24) 2222bc4ef71SPaul Walmsley #define OMAP3430_VC_RAERR_ST_MASK (1 << 23) 2232bc4ef71SPaul Walmsley #define OMAP3430_VC_SAERR_ST_MASK (1 << 22) 2242bc4ef71SPaul Walmsley #define OMAP3430_VP2_TRANXDONE_ST_MASK (1 << 21) 2252bc4ef71SPaul Walmsley #define OMAP3430_VP2_EQVALUE_ST_MASK (1 << 20) 2262bc4ef71SPaul Walmsley #define OMAP3430_VP2_NOSMPSACK_ST_MASK (1 << 19) 2272bc4ef71SPaul Walmsley #define OMAP3430_VP2_MAXVDD_ST_MASK (1 << 18) 2282bc4ef71SPaul Walmsley #define OMAP3430_VP2_MINVDD_ST_MASK (1 << 17) 2292bc4ef71SPaul Walmsley #define OMAP3430_VP2_OPPCHANGEDONE_ST_MASK (1 << 16) 2302bc4ef71SPaul Walmsley #define OMAP3430_VP1_TRANXDONE_ST_MASK (1 << 15) 2312bc4ef71SPaul Walmsley #define OMAP3430_VP1_EQVALUE_ST_MASK (1 << 14) 2322bc4ef71SPaul Walmsley #define OMAP3430_VP1_NOSMPSACK_ST_MASK (1 << 13) 2332bc4ef71SPaul Walmsley #define OMAP3430_VP1_MAXVDD_ST_MASK (1 << 12) 2342bc4ef71SPaul Walmsley #define OMAP3430_VP1_MINVDD_ST_MASK (1 << 11) 2352bc4ef71SPaul Walmsley #define OMAP3430_VP1_OPPCHANGEDONE_ST_MASK (1 << 10) 2362bc4ef71SPaul Walmsley #define OMAP3430_IO_ST_MASK (1 << 9) 2372bc4ef71SPaul Walmsley #define OMAP3430_PRM_IRQSTATUS_MPU_IVA2_DPLL_ST_MASK (1 << 8) 238c595713dSTony Lindgren #define OMAP3430_PRM_IRQSTATUS_MPU_IVA2_DPLL_ST_SHIFT 8 2392bc4ef71SPaul Walmsley #define OMAP3430_MPU_DPLL_ST_MASK (1 << 7) 240c595713dSTony Lindgren #define OMAP3430_MPU_DPLL_ST_SHIFT 7 2412bc4ef71SPaul Walmsley #define OMAP3430_PERIPH_DPLL_ST_MASK (1 << 6) 242c595713dSTony Lindgren #define OMAP3430_PERIPH_DPLL_ST_SHIFT 6 2432bc4ef71SPaul Walmsley #define OMAP3430_CORE_DPLL_ST_MASK (1 << 5) 244c595713dSTony Lindgren #define OMAP3430_CORE_DPLL_ST_SHIFT 5 2452bc4ef71SPaul Walmsley #define OMAP3430_TRANSITION_ST_MASK (1 << 4) 2462bc4ef71SPaul Walmsley #define OMAP3430_EVGENOFF_ST_MASK (1 << 3) 2472bc4ef71SPaul Walmsley #define OMAP3430_EVGENON_ST_MASK (1 << 2) 2482bc4ef71SPaul Walmsley #define OMAP3430_FS_USB_WKUP_ST_MASK (1 << 1) 249c595713dSTony Lindgren 250c595713dSTony Lindgren /* PRM_IRQENABLE_MPU specific bits */ 251c595713dSTony Lindgren #define OMAP3430ES2_SND_PERIPH_DPLL_RECAL_EN_SHIFT 25 2522bc4ef71SPaul Walmsley #define OMAP3430ES2_SND_PERIPH_DPLL_RECAL_EN_MASK (1 << 25) 2532bc4ef71SPaul Walmsley #define OMAP3430_VC_TIMEOUTERR_EN_MASK (1 << 24) 2542bc4ef71SPaul Walmsley #define OMAP3430_VC_RAERR_EN_MASK (1 << 23) 2552bc4ef71SPaul Walmsley #define OMAP3430_VC_SAERR_EN_MASK (1 << 22) 2562bc4ef71SPaul Walmsley #define OMAP3430_VP2_TRANXDONE_EN_MASK (1 << 21) 2572bc4ef71SPaul Walmsley #define OMAP3430_VP2_EQVALUE_EN_MASK (1 << 20) 2582bc4ef71SPaul Walmsley #define OMAP3430_VP2_NOSMPSACK_EN_MASK (1 << 19) 2592bc4ef71SPaul Walmsley #define OMAP3430_VP2_MAXVDD_EN_MASK (1 << 18) 2602bc4ef71SPaul Walmsley #define OMAP3430_VP2_MINVDD_EN_MASK (1 << 17) 2612bc4ef71SPaul Walmsley #define OMAP3430_VP2_OPPCHANGEDONE_EN_MASK (1 << 16) 2622bc4ef71SPaul Walmsley #define OMAP3430_VP1_TRANXDONE_EN_MASK (1 << 15) 2632bc4ef71SPaul Walmsley #define OMAP3430_VP1_EQVALUE_EN_MASK (1 << 14) 2642bc4ef71SPaul Walmsley #define OMAP3430_VP1_NOSMPSACK_EN_MASK (1 << 13) 2652bc4ef71SPaul Walmsley #define OMAP3430_VP1_MAXVDD_EN_MASK (1 << 12) 2662bc4ef71SPaul Walmsley #define OMAP3430_VP1_MINVDD_EN_MASK (1 << 11) 2672bc4ef71SPaul Walmsley #define OMAP3430_VP1_OPPCHANGEDONE_EN_MASK (1 << 10) 2682bc4ef71SPaul Walmsley #define OMAP3430_IO_EN_MASK (1 << 9) 2692bc4ef71SPaul Walmsley #define OMAP3430_PRM_IRQENABLE_MPU_IVA2_DPLL_RECAL_EN_MASK (1 << 8) 270c595713dSTony Lindgren #define OMAP3430_PRM_IRQENABLE_MPU_IVA2_DPLL_RECAL_EN_SHIFT 8 2712bc4ef71SPaul Walmsley #define OMAP3430_MPU_DPLL_RECAL_EN_MASK (1 << 7) 272c595713dSTony Lindgren #define OMAP3430_MPU_DPLL_RECAL_EN_SHIFT 7 2732bc4ef71SPaul Walmsley #define OMAP3430_PERIPH_DPLL_RECAL_EN_MASK (1 << 6) 274c595713dSTony Lindgren #define OMAP3430_PERIPH_DPLL_RECAL_EN_SHIFT 6 2752bc4ef71SPaul Walmsley #define OMAP3430_CORE_DPLL_RECAL_EN_MASK (1 << 5) 276c595713dSTony Lindgren #define OMAP3430_CORE_DPLL_RECAL_EN_SHIFT 5 2772bc4ef71SPaul Walmsley #define OMAP3430_TRANSITION_EN_MASK (1 << 4) 2782bc4ef71SPaul Walmsley #define OMAP3430_EVGENOFF_EN_MASK (1 << 3) 2792bc4ef71SPaul Walmsley #define OMAP3430_EVGENON_EN_MASK (1 << 2) 2802bc4ef71SPaul Walmsley #define OMAP3430_FS_USB_WKUP_EN_MASK (1 << 1) 281c595713dSTony Lindgren 282c595713dSTony Lindgren /* RM_RSTST_MPU specific bits */ 2832bc4ef71SPaul Walmsley #define OMAP3430_EMULATION_MPU_RST_MASK (1 << 11) 284c595713dSTony Lindgren 285c595713dSTony Lindgren /* PM_WKDEP_MPU specific bits */ 286ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_DSS_SHIFT 5 287ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_DSS_MASK (1 << 5) 288ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_IVA2_SHIFT 2 289ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_IVA2_MASK (1 << 2) 290c595713dSTony Lindgren 291c595713dSTony Lindgren /* PM_EVGENCTRL_MPU */ 292c595713dSTony Lindgren #define OMAP3430_OFFLOADMODE_SHIFT 3 293c595713dSTony Lindgren #define OMAP3430_OFFLOADMODE_MASK (0x3 << 3) 294c595713dSTony Lindgren #define OMAP3430_ONLOADMODE_SHIFT 1 295c595713dSTony Lindgren #define OMAP3430_ONLOADMODE_MASK (0x3 << 1) 2962bc4ef71SPaul Walmsley #define OMAP3430_ENABLE_MASK (1 << 0) 297c595713dSTony Lindgren 298c595713dSTony Lindgren /* PM_EVGENONTIM_MPU */ 299c595713dSTony Lindgren #define OMAP3430_ONTIMEVAL_SHIFT 0 300c595713dSTony Lindgren #define OMAP3430_ONTIMEVAL_MASK (0xffffffff << 0) 301c595713dSTony Lindgren 302c595713dSTony Lindgren /* PM_EVGENOFFTIM_MPU */ 303c595713dSTony Lindgren #define OMAP3430_OFFTIMEVAL_SHIFT 0 304c595713dSTony Lindgren #define OMAP3430_OFFTIMEVAL_MASK (0xffffffff << 0) 305c595713dSTony Lindgren 306c595713dSTony Lindgren /* PM_PWSTCTRL_MPU specific bits */ 307c595713dSTony Lindgren #define OMAP3430_L2CACHEONSTATE_SHIFT 16 308c595713dSTony Lindgren #define OMAP3430_L2CACHEONSTATE_MASK (0x3 << 16) 3092bc4ef71SPaul Walmsley #define OMAP3430_L2CACHERETSTATE_MASK (1 << 8) 3102bc4ef71SPaul Walmsley #define OMAP3430_LOGICL1CACHERETSTATE_MASK (1 << 2) 311c595713dSTony Lindgren 312c595713dSTony Lindgren /* PM_PWSTST_MPU specific bits */ 313c595713dSTony Lindgren #define OMAP3430_L2CACHESTATEST_SHIFT 6 314c595713dSTony Lindgren #define OMAP3430_L2CACHESTATEST_MASK (0x3 << 6) 3152bc4ef71SPaul Walmsley #define OMAP3430_LOGICL1CACHESTATEST_MASK (1 << 2) 316c595713dSTony Lindgren 317c595713dSTony Lindgren /* PM_PREPWSTST_MPU specific bits */ 318c595713dSTony Lindgren #define OMAP3430_LASTL2CACHESTATEENTERED_SHIFT 6 319c595713dSTony Lindgren #define OMAP3430_LASTL2CACHESTATEENTERED_MASK (0x3 << 6) 3202bc4ef71SPaul Walmsley #define OMAP3430_LASTLOGICL1CACHESTATEENTERED_MASK (1 << 2) 321c595713dSTony Lindgren 322c595713dSTony Lindgren /* RM_RSTCTRL_CORE */ 3232bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTCTRL_CORE_MODEM_SW_RSTPWRON_MASK (1 << 1) 3242bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTCTRL_CORE_MODEM_SW_RST_MASK (1 << 0) 325c595713dSTony Lindgren 326c595713dSTony Lindgren /* RM_RSTST_CORE specific bits */ 3272bc4ef71SPaul Walmsley #define OMAP3430_MODEM_SECURITY_VIOL_RST_MASK (1 << 10) 3282bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTST_CORE_MODEM_SW_RSTPWRON_MASK (1 << 9) 3292bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTST_CORE_MODEM_SW_RST_MASK (1 << 8) 330c595713dSTony Lindgren 331c595713dSTony Lindgren /* PM_WKEN1_CORE specific bits */ 332c595713dSTony Lindgren 333c595713dSTony Lindgren /* PM_MPUGRPSEL1_CORE specific bits */ 3342bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_FSHOSTUSB_MASK (1 << 5) 335c595713dSTony Lindgren 336c595713dSTony Lindgren /* PM_IVA2GRPSEL1_CORE specific bits */ 337c595713dSTony Lindgren 338c595713dSTony Lindgren /* PM_WKST1_CORE specific bits */ 339c595713dSTony Lindgren 340c595713dSTony Lindgren /* PM_PWSTCTRL_CORE specific bits */ 341c595713dSTony Lindgren #define OMAP3430_MEM2ONSTATE_SHIFT 18 342c595713dSTony Lindgren #define OMAP3430_MEM2ONSTATE_MASK (0x3 << 18) 343c595713dSTony Lindgren #define OMAP3430_MEM1ONSTATE_SHIFT 16 344c595713dSTony Lindgren #define OMAP3430_MEM1ONSTATE_MASK (0x3 << 16) 3452bc4ef71SPaul Walmsley #define OMAP3430_MEM2RETSTATE_MASK (1 << 9) 3462bc4ef71SPaul Walmsley #define OMAP3430_MEM1RETSTATE_MASK (1 << 8) 347c595713dSTony Lindgren 348c595713dSTony Lindgren /* PM_PWSTST_CORE specific bits */ 349c595713dSTony Lindgren #define OMAP3430_MEM2STATEST_SHIFT 6 350c595713dSTony Lindgren #define OMAP3430_MEM2STATEST_MASK (0x3 << 6) 351c595713dSTony Lindgren #define OMAP3430_MEM1STATEST_SHIFT 4 352c595713dSTony Lindgren #define OMAP3430_MEM1STATEST_MASK (0x3 << 4) 353c595713dSTony Lindgren 354c595713dSTony Lindgren /* PM_PREPWSTST_CORE specific bits */ 355c595713dSTony Lindgren #define OMAP3430_LASTMEM2STATEENTERED_SHIFT 6 356c595713dSTony Lindgren #define OMAP3430_LASTMEM2STATEENTERED_MASK (0x3 << 6) 357c595713dSTony Lindgren #define OMAP3430_LASTMEM1STATEENTERED_SHIFT 4 358c595713dSTony Lindgren #define OMAP3430_LASTMEM1STATEENTERED_MASK (0x3 << 4) 359c595713dSTony Lindgren 360c595713dSTony Lindgren /* RM_RSTST_GFX specific bits */ 361c595713dSTony Lindgren 362c595713dSTony Lindgren /* PM_WKDEP_GFX specific bits */ 3632bc4ef71SPaul Walmsley #define OMAP3430_PM_WKDEP_GFX_EN_IVA2_MASK (1 << 2) 364c595713dSTony Lindgren 365c595713dSTony Lindgren /* PM_PWSTCTRL_GFX specific bits */ 366c595713dSTony Lindgren 367c595713dSTony Lindgren /* PM_PWSTST_GFX specific bits */ 368c595713dSTony Lindgren 369c595713dSTony Lindgren /* PM_PREPWSTST_GFX specific bits */ 370c595713dSTony Lindgren 371c595713dSTony Lindgren /* PM_WKEN_WKUP specific bits */ 3722bc4ef71SPaul Walmsley #define OMAP3430_EN_IO_CHAIN_MASK (1 << 16) 3732bc4ef71SPaul Walmsley #define OMAP3430_EN_IO_MASK (1 << 8) 3742bc4ef71SPaul Walmsley #define OMAP3430_EN_GPIO1_MASK (1 << 3) 375c595713dSTony Lindgren 376c595713dSTony Lindgren /* PM_MPUGRPSEL_WKUP specific bits */ 377c595713dSTony Lindgren 378c595713dSTony Lindgren /* PM_IVA2GRPSEL_WKUP specific bits */ 379c595713dSTony Lindgren 380c595713dSTony Lindgren /* PM_WKST_WKUP specific bits */ 3812bc4ef71SPaul Walmsley #define OMAP3430_ST_IO_CHAIN_MASK (1 << 16) 3822bc4ef71SPaul Walmsley #define OMAP3430_ST_IO_MASK (1 << 8) 383c595713dSTony Lindgren 384c595713dSTony Lindgren /* PRM_CLKSEL */ 385c595713dSTony Lindgren #define OMAP3430_SYS_CLKIN_SEL_SHIFT 0 386c595713dSTony Lindgren #define OMAP3430_SYS_CLKIN_SEL_MASK (0x7 << 0) 387c595713dSTony Lindgren 388c595713dSTony Lindgren /* PRM_CLKOUT_CTRL */ 3892bc4ef71SPaul Walmsley #define OMAP3430_CLKOUT_EN_MASK (1 << 7) 390c595713dSTony Lindgren #define OMAP3430_CLKOUT_EN_SHIFT 7 391c595713dSTony Lindgren 392c595713dSTony Lindgren /* RM_RSTST_DSS specific bits */ 393c595713dSTony Lindgren 394c595713dSTony Lindgren /* PM_WKEN_DSS */ 3952bc4ef71SPaul Walmsley #define OMAP3430_PM_WKEN_DSS_EN_DSS_MASK (1 << 0) 396c595713dSTony Lindgren 397c595713dSTony Lindgren /* PM_WKDEP_DSS specific bits */ 3982bc4ef71SPaul Walmsley #define OMAP3430_PM_WKDEP_DSS_EN_IVA2_MASK (1 << 2) 399c595713dSTony Lindgren 400c595713dSTony Lindgren /* PM_PWSTCTRL_DSS specific bits */ 401c595713dSTony Lindgren 402c595713dSTony Lindgren /* PM_PWSTST_DSS specific bits */ 403c595713dSTony Lindgren 404c595713dSTony Lindgren /* PM_PREPWSTST_DSS specific bits */ 405c595713dSTony Lindgren 406c595713dSTony Lindgren /* RM_RSTST_CAM specific bits */ 407c595713dSTony Lindgren 408c595713dSTony Lindgren /* PM_WKDEP_CAM specific bits */ 4092bc4ef71SPaul Walmsley #define OMAP3430_PM_WKDEP_CAM_EN_IVA2_MASK (1 << 2) 410c595713dSTony Lindgren 411c595713dSTony Lindgren /* PM_PWSTCTRL_CAM specific bits */ 412c595713dSTony Lindgren 413c595713dSTony Lindgren /* PM_PWSTST_CAM specific bits */ 414c595713dSTony Lindgren 415c595713dSTony Lindgren /* PM_PREPWSTST_CAM specific bits */ 416c595713dSTony Lindgren 417c595713dSTony Lindgren /* PM_PWSTCTRL_USBHOST specific bits */ 4188dbe4393SKalle Jokiniemi #define OMAP3430ES2_SAVEANDRESTORE_SHIFT 4 419c595713dSTony Lindgren 420c595713dSTony Lindgren /* RM_RSTST_PER specific bits */ 421c595713dSTony Lindgren 422c595713dSTony Lindgren /* PM_WKEN_PER specific bits */ 423c595713dSTony Lindgren 424c595713dSTony Lindgren /* PM_MPUGRPSEL_PER specific bits */ 425c595713dSTony Lindgren 426c595713dSTony Lindgren /* PM_IVA2GRPSEL_PER specific bits */ 427c595713dSTony Lindgren 428c595713dSTony Lindgren /* PM_WKST_PER specific bits */ 429c595713dSTony Lindgren 430c595713dSTony Lindgren /* PM_WKDEP_PER specific bits */ 4312bc4ef71SPaul Walmsley #define OMAP3430_PM_WKDEP_PER_EN_IVA2_MASK (1 << 2) 432c595713dSTony Lindgren 433c595713dSTony Lindgren /* PM_PWSTCTRL_PER specific bits */ 434c595713dSTony Lindgren 435c595713dSTony Lindgren /* PM_PWSTST_PER specific bits */ 436c595713dSTony Lindgren 437c595713dSTony Lindgren /* PM_PREPWSTST_PER specific bits */ 438c595713dSTony Lindgren 439c595713dSTony Lindgren /* RM_RSTST_EMU specific bits */ 440c595713dSTony Lindgren 441c595713dSTony Lindgren /* PM_PWSTST_EMU specific bits */ 442c595713dSTony Lindgren 443c595713dSTony Lindgren /* PRM_VC_SMPS_SA */ 444c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA1_SHIFT 16 445c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA1_MASK (0x7f << 16) 446c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA0_SHIFT 0 447c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA0_MASK (0x7f << 0) 448c595713dSTony Lindgren 449c595713dSTony Lindgren /* PRM_VC_SMPS_VOL_RA */ 450c595713dSTony Lindgren #define OMAP3430_VOLRA1_SHIFT 16 451c595713dSTony Lindgren #define OMAP3430_VOLRA1_MASK (0xff << 16) 452c595713dSTony Lindgren #define OMAP3430_VOLRA0_SHIFT 0 453c595713dSTony Lindgren #define OMAP3430_VOLRA0_MASK (0xff << 0) 454c595713dSTony Lindgren 455c595713dSTony Lindgren /* PRM_VC_SMPS_CMD_RA */ 456c595713dSTony Lindgren #define OMAP3430_CMDRA1_SHIFT 16 457c595713dSTony Lindgren #define OMAP3430_CMDRA1_MASK (0xff << 16) 458c595713dSTony Lindgren #define OMAP3430_CMDRA0_SHIFT 0 459c595713dSTony Lindgren #define OMAP3430_CMDRA0_MASK (0xff << 0) 460c595713dSTony Lindgren 461c595713dSTony Lindgren /* PRM_VC_CMD_VAL_0 specific bits */ 462027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ON_SHIFT 24 463027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ON_MASK (0xFF << 24) 464027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ONLP_SHIFT 16 465027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ONLP_MASK (0xFF << 16) 466027d8dedSJouni Hogander #define OMAP3430_VC_CMD_RET_SHIFT 8 467027d8dedSJouni Hogander #define OMAP3430_VC_CMD_RET_MASK (0xFF << 8) 468027d8dedSJouni Hogander #define OMAP3430_VC_CMD_OFF_SHIFT 0 469027d8dedSJouni Hogander #define OMAP3430_VC_CMD_OFF_MASK (0xFF << 0) 470c595713dSTony Lindgren 471c595713dSTony Lindgren /* PRM_VC_CMD_VAL_1 specific bits */ 472c595713dSTony Lindgren 473c595713dSTony Lindgren /* PRM_VC_CH_CONF */ 4742bc4ef71SPaul Walmsley #define OMAP3430_CMD1_MASK (1 << 20) 4752bc4ef71SPaul Walmsley #define OMAP3430_RACEN1_MASK (1 << 19) 4762bc4ef71SPaul Walmsley #define OMAP3430_RAC1_MASK (1 << 18) 4772bc4ef71SPaul Walmsley #define OMAP3430_RAV1_MASK (1 << 17) 4782bc4ef71SPaul Walmsley #define OMAP3430_PRM_VC_CH_CONF_SA1_MASK (1 << 16) 4792bc4ef71SPaul Walmsley #define OMAP3430_CMD0_MASK (1 << 4) 4802bc4ef71SPaul Walmsley #define OMAP3430_RACEN0_MASK (1 << 3) 4812bc4ef71SPaul Walmsley #define OMAP3430_RAC0_MASK (1 << 2) 4822bc4ef71SPaul Walmsley #define OMAP3430_RAV0_MASK (1 << 1) 4832bc4ef71SPaul Walmsley #define OMAP3430_PRM_VC_CH_CONF_SA0_MASK (1 << 0) 484c595713dSTony Lindgren 485c595713dSTony Lindgren /* PRM_VC_I2C_CFG */ 4862bc4ef71SPaul Walmsley #define OMAP3430_HSMASTER_MASK (1 << 5) 4872bc4ef71SPaul Walmsley #define OMAP3430_SREN_MASK (1 << 4) 4882bc4ef71SPaul Walmsley #define OMAP3430_HSEN_MASK (1 << 3) 489c595713dSTony Lindgren #define OMAP3430_MCODE_SHIFT 0 490c595713dSTony Lindgren #define OMAP3430_MCODE_MASK (0x7 << 0) 491c595713dSTony Lindgren 492c595713dSTony Lindgren /* PRM_VC_BYPASS_VAL */ 4932bc4ef71SPaul Walmsley #define OMAP3430_VALID_MASK (1 << 24) 494c595713dSTony Lindgren #define OMAP3430_DATA_SHIFT 16 495c595713dSTony Lindgren #define OMAP3430_DATA_MASK (0xff << 16) 496c595713dSTony Lindgren #define OMAP3430_REGADDR_SHIFT 8 497c595713dSTony Lindgren #define OMAP3430_REGADDR_MASK (0xff << 8) 498c595713dSTony Lindgren #define OMAP3430_SLAVEADDR_SHIFT 0 499c595713dSTony Lindgren #define OMAP3430_SLAVEADDR_MASK (0x7f << 0) 500c595713dSTony Lindgren 501c595713dSTony Lindgren /* PRM_RSTCTRL */ 5022bc4ef71SPaul Walmsley #define OMAP3430_RST_DPLL3_MASK (1 << 2) 5032bc4ef71SPaul Walmsley #define OMAP3430_RST_GS_MASK (1 << 1) 504c595713dSTony Lindgren 505c595713dSTony Lindgren /* PRM_RSTTIME */ 506c595713dSTony Lindgren #define OMAP3430_RSTTIME2_SHIFT 8 507c595713dSTony Lindgren #define OMAP3430_RSTTIME2_MASK (0x1f << 8) 508c595713dSTony Lindgren #define OMAP3430_RSTTIME1_SHIFT 0 509c595713dSTony Lindgren #define OMAP3430_RSTTIME1_MASK (0xff << 0) 510c595713dSTony Lindgren 511c595713dSTony Lindgren /* PRM_RSTST */ 512*2bb2a5d3SPaul Walmsley #define OMAP3430_ICECRUSHER_RST_SHIFT 10 5132bc4ef71SPaul Walmsley #define OMAP3430_ICECRUSHER_RST_MASK (1 << 10) 514*2bb2a5d3SPaul Walmsley #define OMAP3430_ICEPICK_RST_SHIFT 9 5152bc4ef71SPaul Walmsley #define OMAP3430_ICEPICK_RST_MASK (1 << 9) 516*2bb2a5d3SPaul Walmsley #define OMAP3430_VDD2_VOLTAGE_MANAGER_RST_SHIFT 8 5172bc4ef71SPaul Walmsley #define OMAP3430_VDD2_VOLTAGE_MANAGER_RST_MASK (1 << 8) 518*2bb2a5d3SPaul Walmsley #define OMAP3430_VDD1_VOLTAGE_MANAGER_RST_SHIFT 7 5192bc4ef71SPaul Walmsley #define OMAP3430_VDD1_VOLTAGE_MANAGER_RST_MASK (1 << 7) 520*2bb2a5d3SPaul Walmsley #define OMAP3430_EXTERNAL_WARM_RST_SHIFT 6 5212bc4ef71SPaul Walmsley #define OMAP3430_EXTERNAL_WARM_RST_MASK (1 << 6) 522*2bb2a5d3SPaul Walmsley #define OMAP3430_SECURE_WD_RST_SHIFT 5 5232bc4ef71SPaul Walmsley #define OMAP3430_SECURE_WD_RST_MASK (1 << 5) 524*2bb2a5d3SPaul Walmsley #define OMAP3430_MPU_WD_RST_SHIFT 4 5252bc4ef71SPaul Walmsley #define OMAP3430_MPU_WD_RST_MASK (1 << 4) 526*2bb2a5d3SPaul Walmsley #define OMAP3430_SECURITY_VIOL_RST_SHIFT 3 5272bc4ef71SPaul Walmsley #define OMAP3430_SECURITY_VIOL_RST_MASK (1 << 3) 528*2bb2a5d3SPaul Walmsley #define OMAP3430_GLOBAL_SW_RST_SHIFT 1 5292bc4ef71SPaul Walmsley #define OMAP3430_GLOBAL_SW_RST_MASK (1 << 1) 530*2bb2a5d3SPaul Walmsley #define OMAP3430_GLOBAL_COLD_RST_SHIFT 0 5312bc4ef71SPaul Walmsley #define OMAP3430_GLOBAL_COLD_RST_MASK (1 << 0) 532c595713dSTony Lindgren 533c595713dSTony Lindgren /* PRM_VOLTCTRL */ 5342bc4ef71SPaul Walmsley #define OMAP3430_SEL_VMODE_MASK (1 << 4) 5352bc4ef71SPaul Walmsley #define OMAP3430_SEL_OFF_MASK (1 << 3) 5362bc4ef71SPaul Walmsley #define OMAP3430_AUTO_OFF_MASK (1 << 2) 5372bc4ef71SPaul Walmsley #define OMAP3430_AUTO_RET_MASK (1 << 1) 5382bc4ef71SPaul Walmsley #define OMAP3430_AUTO_SLEEP_MASK (1 << 0) 539c595713dSTony Lindgren 540c595713dSTony Lindgren /* PRM_SRAM_PCHARGE */ 541c595713dSTony Lindgren #define OMAP3430_PCHARGE_TIME_SHIFT 0 542c595713dSTony Lindgren #define OMAP3430_PCHARGE_TIME_MASK (0xff << 0) 543c595713dSTony Lindgren 544c595713dSTony Lindgren /* PRM_CLKSRC_CTRL */ 545c595713dSTony Lindgren #define OMAP3430_SYSCLKDIV_SHIFT 6 546c595713dSTony Lindgren #define OMAP3430_SYSCLKDIV_MASK (0x3 << 6) 547c595713dSTony Lindgren #define OMAP3430_AUTOEXTCLKMODE_SHIFT 3 548c595713dSTony Lindgren #define OMAP3430_AUTOEXTCLKMODE_MASK (0x3 << 3) 549c595713dSTony Lindgren #define OMAP3430_SYSCLKSEL_SHIFT 0 550c595713dSTony Lindgren #define OMAP3430_SYSCLKSEL_MASK (0x3 << 0) 551c595713dSTony Lindgren 552c595713dSTony Lindgren /* PRM_VOLTSETUP1 */ 553c595713dSTony Lindgren #define OMAP3430_SETUP_TIME2_SHIFT 16 554c595713dSTony Lindgren #define OMAP3430_SETUP_TIME2_MASK (0xffff << 16) 555c595713dSTony Lindgren #define OMAP3430_SETUP_TIME1_SHIFT 0 556c595713dSTony Lindgren #define OMAP3430_SETUP_TIME1_MASK (0xffff << 0) 557c595713dSTony Lindgren 558c595713dSTony Lindgren /* PRM_VOLTOFFSET */ 559c595713dSTony Lindgren #define OMAP3430_OFFSET_TIME_SHIFT 0 560c595713dSTony Lindgren #define OMAP3430_OFFSET_TIME_MASK (0xffff << 0) 561c595713dSTony Lindgren 562c595713dSTony Lindgren /* PRM_CLKSETUP */ 563c595713dSTony Lindgren #define OMAP3430_SETUP_TIME_SHIFT 0 564c595713dSTony Lindgren #define OMAP3430_SETUP_TIME_MASK (0xffff << 0) 565c595713dSTony Lindgren 566c595713dSTony Lindgren /* PRM_POLCTRL */ 5672bc4ef71SPaul Walmsley #define OMAP3430_OFFMODE_POL_MASK (1 << 3) 5682bc4ef71SPaul Walmsley #define OMAP3430_CLKOUT_POL_MASK (1 << 2) 5692bc4ef71SPaul Walmsley #define OMAP3430_CLKREQ_POL_MASK (1 << 1) 5702bc4ef71SPaul Walmsley #define OMAP3430_EXTVOL_POL_MASK (1 << 0) 571c595713dSTony Lindgren 572c595713dSTony Lindgren /* PRM_VOLTSETUP2 */ 573c595713dSTony Lindgren #define OMAP3430_OFFMODESETUPTIME_SHIFT 0 574c595713dSTony Lindgren #define OMAP3430_OFFMODESETUPTIME_MASK (0xffff << 0) 575c595713dSTony Lindgren 576c595713dSTony Lindgren /* PRM_VP1_CONFIG specific bits */ 577c595713dSTony Lindgren 578c595713dSTony Lindgren /* PRM_VP1_VSTEPMIN specific bits */ 579c595713dSTony Lindgren 580c595713dSTony Lindgren /* PRM_VP1_VSTEPMAX specific bits */ 581c595713dSTony Lindgren 582c595713dSTony Lindgren /* PRM_VP1_VLIMITTO specific bits */ 583c595713dSTony Lindgren 584c595713dSTony Lindgren /* PRM_VP1_VOLTAGE specific bits */ 585c595713dSTony Lindgren 586c595713dSTony Lindgren /* PRM_VP1_STATUS specific bits */ 587c595713dSTony Lindgren 588c595713dSTony Lindgren /* PRM_VP2_CONFIG specific bits */ 589c595713dSTony Lindgren 590c595713dSTony Lindgren /* PRM_VP2_VSTEPMIN specific bits */ 591c595713dSTony Lindgren 592c595713dSTony Lindgren /* PRM_VP2_VSTEPMAX specific bits */ 593c595713dSTony Lindgren 594c595713dSTony Lindgren /* PRM_VP2_VLIMITTO specific bits */ 595c595713dSTony Lindgren 596c595713dSTony Lindgren /* PRM_VP2_VOLTAGE specific bits */ 597c595713dSTony Lindgren 598c595713dSTony Lindgren /* PRM_VP2_STATUS specific bits */ 599c595713dSTony Lindgren 600c595713dSTony Lindgren /* RM_RSTST_NEON specific bits */ 601c595713dSTony Lindgren 602c595713dSTony Lindgren /* PM_WKDEP_NEON specific bits */ 603c595713dSTony Lindgren 604c595713dSTony Lindgren /* PM_PWSTCTRL_NEON specific bits */ 605c595713dSTony Lindgren 606c595713dSTony Lindgren /* PM_PWSTST_NEON specific bits */ 607c595713dSTony Lindgren 608c595713dSTony Lindgren /* PM_PREPWSTST_NEON specific bits */ 609c595713dSTony Lindgren 610c595713dSTony Lindgren #endif 611