1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2c595713dSTony Lindgren /* 3c595713dSTony Lindgren * OMAP3430 Power/Reset Management register bits 4c595713dSTony Lindgren * 5c595713dSTony Lindgren * Copyright (C) 2007-2008 Texas Instruments, Inc. 6c595713dSTony Lindgren * Copyright (C) 2007-2008 Nokia Corporation 7c595713dSTony Lindgren * 8c595713dSTony Lindgren * Written by Paul Walmsley 9c595713dSTony Lindgren */ 1059fb659bSPaul Walmsley #ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H 1159fb659bSPaul Walmsley #define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_34XX_H 12c595713dSTony Lindgren 1359fb659bSPaul Walmsley 14139563adSPaul Walmsley #include "prm3xxx.h" 15c595713dSTony Lindgren 16c595713dSTony Lindgren #define OMAP3430_ERROROFFSET_MASK (0xff << 24) 17c595713dSTony Lindgren #define OMAP3430_ERRORGAIN_MASK (0xff << 16) 18c595713dSTony Lindgren #define OMAP3430_INITVOLTAGE_MASK (0xff << 8) 192bc4ef71SPaul Walmsley #define OMAP3430_TIMEOUTEN_MASK (1 << 3) 202bc4ef71SPaul Walmsley #define OMAP3430_INITVDD_MASK (1 << 2) 212bc4ef71SPaul Walmsley #define OMAP3430_FORCEUPDATE_MASK (1 << 1) 222bc4ef71SPaul Walmsley #define OMAP3430_VPENABLE_MASK (1 << 0) 23c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMIN_SHIFT 8 24c595713dSTony Lindgren #define OMAP3430_VSTEPMIN_SHIFT 0 25c595713dSTony Lindgren #define OMAP3430_SMPSWAITTIMEMAX_SHIFT 8 26c595713dSTony Lindgren #define OMAP3430_VSTEPMAX_SHIFT 0 27c595713dSTony Lindgren #define OMAP3430_VDDMAX_SHIFT 24 28c595713dSTony Lindgren #define OMAP3430_VDDMIN_SHIFT 16 29c595713dSTony Lindgren #define OMAP3430_TIMEOUT_SHIFT 0 30c595713dSTony Lindgren #define OMAP3430_VPVOLTAGE_MASK (0xff << 0) 31ecb24aa1SPaul Walmsley #define OMAP3430_EN_PER_SHIFT 7 322bc4ef71SPaul Walmsley #define OMAP3430_LOGICSTATEST_MASK (1 << 2) 332bc4ef71SPaul Walmsley #define OMAP3430_LASTLOGICSTATEENTERED_MASK (1 << 2) 34c595713dSTony Lindgren #define OMAP3430_LASTPOWERSTATEENTERED_MASK (0x3 << 0) 350cd8d405SSuman Anna #define OMAP3430_GRPSEL_MCBSP5_MASK (1 << 10) 360cd8d405SSuman Anna #define OMAP3430_GRPSEL_MCBSP1_MASK (1 << 9) 37e5863689SGovindraj.R #define OMAP3630_GRPSEL_UART4_MASK (1 << 18) 382bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO6_MASK (1 << 17) 392bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO5_MASK (1 << 16) 402bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO4_MASK (1 << 15) 412bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO3_MASK (1 << 14) 422bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO2_MASK (1 << 13) 432bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_UART3_MASK (1 << 11) 440cd8d405SSuman Anna #define OMAP3430_GRPSEL_GPT8_MASK (1 << 9) 450cd8d405SSuman Anna #define OMAP3430_GRPSEL_GPT7_MASK (1 << 8) 460cd8d405SSuman Anna #define OMAP3430_GRPSEL_GPT6_MASK (1 << 7) 470cd8d405SSuman Anna #define OMAP3430_GRPSEL_GPT5_MASK (1 << 6) 482bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP4_MASK (1 << 2) 492bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP3_MASK (1 << 1) 502bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_MCBSP2_MASK (1 << 0) 512bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPIO1_MASK (1 << 3) 522bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT12_MASK (1 << 1) 532bc4ef71SPaul Walmsley #define OMAP3430_GRPSEL_GPT1_MASK (1 << 0) 542bc4ef71SPaul Walmsley #define OMAP3430_RST3_IVA2_MASK (1 << 2) 552bc4ef71SPaul Walmsley #define OMAP3430_RST2_IVA2_MASK (1 << 1) 562bc4ef71SPaul Walmsley #define OMAP3430_RST1_IVA2_MASK (1 << 0) 57c595713dSTony Lindgren #define OMAP3430_L2FLATMEMONSTATE_MASK (0x3 << 22) 58c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATONSTATE_MASK (0x3 << 20) 59c595713dSTony Lindgren #define OMAP3430_L1FLATMEMONSTATE_MASK (0x3 << 18) 60c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATONSTATE_MASK (0x3 << 16) 612bc4ef71SPaul Walmsley #define OMAP3430_L2FLATMEMRETSTATE_MASK (1 << 11) 622bc4ef71SPaul Walmsley #define OMAP3430_SHAREDL2CACHEFLATRETSTATE_MASK (1 << 10) 632bc4ef71SPaul Walmsley #define OMAP3430_L1FLATMEMRETSTATE_MASK (1 << 9) 642bc4ef71SPaul Walmsley #define OMAP3430_SHAREDL1CACHEFLATRETSTATE_MASK (1 << 8) 65c595713dSTony Lindgren #define OMAP3430_L2FLATMEMSTATEST_MASK (0x3 << 10) 66c595713dSTony Lindgren #define OMAP3430_SHAREDL2CACHEFLATSTATEST_MASK (0x3 << 8) 67c595713dSTony Lindgren #define OMAP3430_L1FLATMEMSTATEST_MASK (0x3 << 6) 68c595713dSTony Lindgren #define OMAP3430_SHAREDL1CACHEFLATSTATEST_MASK (0x3 << 4) 69c595713dSTony Lindgren #define OMAP3430_LASTL2FLATMEMSTATEENTERED_MASK (0x3 << 10) 70c595713dSTony Lindgren #define OMAP3430_LASTSHAREDL2CACHEFLATSTATEENTERED_MASK (0x3 << 8) 71c595713dSTony Lindgren #define OMAP3430ES2_SND_PERIPH_DPLL_ST_SHIFT 25 722bc4ef71SPaul Walmsley #define OMAP3430_VP2_TRANXDONE_ST_MASK (1 << 21) 732bc4ef71SPaul Walmsley #define OMAP3430_VP1_TRANXDONE_ST_MASK (1 << 15) 74c595713dSTony Lindgren #define OMAP3430_PRM_IRQSTATUS_MPU_IVA2_DPLL_ST_SHIFT 8 75c595713dSTony Lindgren #define OMAP3430_MPU_DPLL_ST_SHIFT 7 76c595713dSTony Lindgren #define OMAP3430_PERIPH_DPLL_ST_SHIFT 6 77c595713dSTony Lindgren #define OMAP3430_CORE_DPLL_ST_SHIFT 5 78c595713dSTony Lindgren #define OMAP3430ES2_SND_PERIPH_DPLL_RECAL_EN_SHIFT 25 79c595713dSTony Lindgren #define OMAP3430_PRM_IRQENABLE_MPU_IVA2_DPLL_RECAL_EN_SHIFT 8 80c595713dSTony Lindgren #define OMAP3430_MPU_DPLL_RECAL_EN_SHIFT 7 81c595713dSTony Lindgren #define OMAP3430_PERIPH_DPLL_RECAL_EN_SHIFT 6 82c595713dSTony Lindgren #define OMAP3430_CORE_DPLL_RECAL_EN_SHIFT 5 83ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_DSS_SHIFT 5 84ecb24aa1SPaul Walmsley #define OMAP3430_PM_WKDEP_MPU_EN_IVA2_SHIFT 2 852bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTCTRL_CORE_MODEM_SW_RSTPWRON_MASK (1 << 1) 862bc4ef71SPaul Walmsley #define OMAP3430_RM_RSTCTRL_CORE_MODEM_SW_RST_MASK (1 << 0) 87c595713dSTony Lindgren #define OMAP3430_LASTMEM2STATEENTERED_MASK (0x3 << 6) 88c595713dSTony Lindgren #define OMAP3430_LASTMEM1STATEENTERED_MASK (0x3 << 4) 892bc4ef71SPaul Walmsley #define OMAP3430_EN_IO_CHAIN_MASK (1 << 16) 902bc4ef71SPaul Walmsley #define OMAP3430_EN_IO_MASK (1 << 8) 912bc4ef71SPaul Walmsley #define OMAP3430_EN_GPIO1_MASK (1 << 3) 922bc4ef71SPaul Walmsley #define OMAP3430_ST_IO_CHAIN_MASK (1 << 16) 932bc4ef71SPaul Walmsley #define OMAP3430_ST_IO_MASK (1 << 8) 94c595713dSTony Lindgren #define OMAP3430_SYS_CLKIN_SEL_SHIFT 0 9599e7938dSRajendra Nayak #define OMAP3430_SYS_CLKIN_SEL_WIDTH 3 96c595713dSTony Lindgren #define OMAP3430_CLKOUT_EN_SHIFT 7 972bc4ef71SPaul Walmsley #define OMAP3430_PM_WKEN_DSS_EN_DSS_MASK (1 << 0) 988dbe4393SKalle Jokiniemi #define OMAP3430ES2_SAVEANDRESTORE_SHIFT 4 99c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA1_SHIFT 16 100c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA1_MASK (0x7f << 16) 101c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA0_SHIFT 0 102c595713dSTony Lindgren #define OMAP3430_PRM_VC_SMPS_SA_SA0_MASK (0x7f << 0) 103c595713dSTony Lindgren #define OMAP3430_VOLRA1_MASK (0xff << 16) 104c595713dSTony Lindgren #define OMAP3430_VOLRA0_MASK (0xff << 0) 105c595713dSTony Lindgren #define OMAP3430_CMDRA1_MASK (0xff << 16) 106c595713dSTony Lindgren #define OMAP3430_CMDRA0_MASK (0xff << 0) 107027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ON_SHIFT 24 108027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ON_MASK (0xFF << 24) 109027d8dedSJouni Hogander #define OMAP3430_VC_CMD_ONLP_SHIFT 16 110027d8dedSJouni Hogander #define OMAP3430_VC_CMD_RET_SHIFT 8 111027d8dedSJouni Hogander #define OMAP3430_VC_CMD_OFF_SHIFT 0 112102bcb6eSTony Lindgren #define OMAP3430_SREN_MASK (1 << 4) 1132bc4ef71SPaul Walmsley #define OMAP3430_HSEN_MASK (1 << 3) 114c595713dSTony Lindgren #define OMAP3430_MCODE_MASK (0x7 << 0) 1152bc4ef71SPaul Walmsley #define OMAP3430_VALID_MASK (1 << 24) 116c595713dSTony Lindgren #define OMAP3430_DATA_SHIFT 16 117c595713dSTony Lindgren #define OMAP3430_REGADDR_SHIFT 8 118c595713dSTony Lindgren #define OMAP3430_SLAVEADDR_SHIFT 0 1192bb2a5d3SPaul Walmsley #define OMAP3430_ICECRUSHER_RST_SHIFT 10 1202bb2a5d3SPaul Walmsley #define OMAP3430_ICEPICK_RST_SHIFT 9 1212bb2a5d3SPaul Walmsley #define OMAP3430_VDD2_VOLTAGE_MANAGER_RST_SHIFT 8 1222bb2a5d3SPaul Walmsley #define OMAP3430_VDD1_VOLTAGE_MANAGER_RST_SHIFT 7 1232bb2a5d3SPaul Walmsley #define OMAP3430_EXTERNAL_WARM_RST_SHIFT 6 1242bb2a5d3SPaul Walmsley #define OMAP3430_SECURE_WD_RST_SHIFT 5 1252bb2a5d3SPaul Walmsley #define OMAP3430_MPU_WD_RST_SHIFT 4 1262bb2a5d3SPaul Walmsley #define OMAP3430_SECURITY_VIOL_RST_SHIFT 3 1272bb2a5d3SPaul Walmsley #define OMAP3430_GLOBAL_SW_RST_SHIFT 1 1282bb2a5d3SPaul Walmsley #define OMAP3430_GLOBAL_COLD_RST_SHIFT 0 1292bc4ef71SPaul Walmsley #define OMAP3430_GLOBAL_COLD_RST_MASK (1 << 0) 1303b8c4ebbSTony Lindgren #define OMAP3430_PRM_VOLTCTRL_SEL_VMODE (1 << 4) 1313b8c4ebbSTony Lindgren #define OMAP3430_PRM_VOLTCTRL_SEL_OFF (1 << 3) 1323b8c4ebbSTony Lindgren #define OMAP3430_PRM_VOLTCTRL_AUTO_OFF (1 << 2) 1333b8c4ebbSTony Lindgren #define OMAP3430_PRM_VOLTCTRL_AUTO_RET (1 << 1) 1343b8c4ebbSTony Lindgren #define OMAP3430_PRM_VOLTCTRL_AUTO_SLEEP (1 << 0) 135c595713dSTony Lindgren #define OMAP3430_SETUP_TIME2_MASK (0xffff << 16) 136c595713dSTony Lindgren #define OMAP3430_SETUP_TIME1_MASK (0xffff << 0) 1373b8c4ebbSTony Lindgren #define OMAP3430_PRM_POLCTRL_OFFMODE_POL (1 << 3) 1383b8c4ebbSTony Lindgren #define OMAP3430_PRM_POLCTRL_CLKOUT_POL (1 << 2) 1393b8c4ebbSTony Lindgren #define OMAP3430_PRM_POLCTRL_CLKREQ_POL (1 << 1) 1403b8c4ebbSTony Lindgren #define OMAP3430_PRM_POLCTRL_EXTVOL_POL (1 << 0) 141c595713dSTony Lindgren #endif 142