blob: e794828dee553b2e943bc74b4ae819874c40455e [file] [log] [blame]
Rajendra Nayak234f0c42009-12-08 18:24:52 -07001/*
2 * OMAP44xx Power Management register bits
3 *
Rajendra Nayak568997c2010-09-27 14:02:55 -06004 * Copyright (C) 2009-2010 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
Rajendra Nayak234f0c42009-12-08 18:24:52 -07006 *
7 * Paul Walmsley (paul@pwsan.com)
8 * Rajendra Nayak (rnayak@ti.com)
9 * Benoit Cousson (b-cousson@ti.com)
10 *
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License version 2 as
19 * published by the Free Software Foundation.
20 */
21
22#ifndef __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_44XX_H
23#define __ARCH_ARM_MACH_OMAP2_PRM_REGBITS_44XX_H
24
Rajendra Nayak568997c2010-09-27 14:02:55 -060025#define OMAP4430_C2C_RST_SHIFT 10
Rajendra Nayak568997c2010-09-27 14:02:55 -060026#define OMAP4430_CMDRA_VDD_CORE_L_MASK (0xff << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060027#define OMAP4430_CMDRA_VDD_IVA_L_MASK (0xff << 8)
Rajendra Nayak568997c2010-09-27 14:02:55 -060028#define OMAP4430_CMDRA_VDD_MPU_L_MASK (0xff << 16)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070029#define OMAP4430_DATA_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -060030#define OMAP4430_ERRORGAIN_MASK (0xff << 16)
Rajendra Nayak568997c2010-09-27 14:02:55 -060031#define OMAP4430_ERROROFFSET_MASK (0xff << 24)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070032#define OMAP4430_EXTERNAL_WARM_RST_SHIFT 5
Rajendra Nayak568997c2010-09-27 14:02:55 -060033#define OMAP4430_FORCEUPDATE_MASK (1 << 1)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070034#define OMAP4430_GLOBAL_COLD_RST_SHIFT 0
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070035#define OMAP4430_GLOBAL_WARM_SW_RST_SHIFT 1
Rajendra Nayak568997c2010-09-27 14:02:55 -060036#define OMAP4430_GLOBAL_WUEN_MASK (1 << 16)
Rajendra Nayak568997c2010-09-27 14:02:55 -060037#define OMAP4430_HSMCODE_MASK (0x7 << 0)
Tony Lindgren102bcb62015-05-04 08:54:41 -070038#define OMAP4430_SRMODEEN_MASK (1 << 4)
Rajendra Nayak568997c2010-09-27 14:02:55 -060039#define OMAP4430_HSMODEEN_MASK (1 << 3)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070040#define OMAP4430_HSSCLL_SHIFT 24
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070041#define OMAP4430_ICEPICK_RST_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -060042#define OMAP4430_INITVDD_MASK (1 << 2)
Rajendra Nayak568997c2010-09-27 14:02:55 -060043#define OMAP4430_INITVOLTAGE_MASK (0xff << 8)
Rajendra Nayak568997c2010-09-27 14:02:55 -060044#define OMAP4430_LASTPOWERSTATEENTERED_SHIFT 24
45#define OMAP4430_LASTPOWERSTATEENTERED_MASK (0x3 << 24)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070046#define OMAP4430_LOGICRETSTATE_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -060047#define OMAP4430_LOGICRETSTATE_MASK (1 << 2)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070048#define OMAP4430_LOGICSTATEST_SHIFT 2
Rajendra Nayak568997c2010-09-27 14:02:55 -060049#define OMAP4430_LOGICSTATEST_MASK (1 << 2)
Rajendra Nayak568997c2010-09-27 14:02:55 -060050#define OMAP4430_LOSTCONTEXT_DFF_MASK (1 << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060051#define OMAP4430_LOSTMEM_AESSMEM_MASK (1 << 8)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070052#define OMAP4430_LOWPOWERSTATECHANGE_SHIFT 4
Rajendra Nayak568997c2010-09-27 14:02:55 -060053#define OMAP4430_LOWPOWERSTATECHANGE_MASK (1 << 4)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070054#define OMAP4430_MPU_SECURITY_VIOL_RST_SHIFT 2
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070055#define OMAP4430_MPU_WDT_RST_SHIFT 3
Rajendra Nayak568997c2010-09-27 14:02:55 -060056#define OMAP4430_OCP_NRET_BANK_ONSTATE_MASK (0x3 << 24)
Rajendra Nayak568997c2010-09-27 14:02:55 -060057#define OMAP4430_OCP_NRET_BANK_RETSTATE_MASK (1 << 12)
Rajendra Nayak568997c2010-09-27 14:02:55 -060058#define OMAP4430_OCP_NRET_BANK_STATEST_MASK (0x3 << 12)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070059#define OMAP4430_OFF_SHIFT 0
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070060#define OMAP4430_ON_SHIFT 24
Rajendra Nayak568997c2010-09-27 14:02:55 -060061#define OMAP4430_ON_MASK (0xff << 24)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070062#define OMAP4430_ONLP_SHIFT 16
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070063#define OMAP4430_RAMP_DOWN_COUNT_SHIFT 16
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070064#define OMAP4430_RAMP_UP_COUNT_SHIFT 0
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070065#define OMAP4430_RAMP_UP_PRESCAL_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070066#define OMAP4430_REGADDR_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070067#define OMAP4430_RET_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -060068#define OMAP4430_RST_GLOBAL_WARM_SW_MASK (1 << 0)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070069#define OMAP4430_SA_VDD_CORE_L_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -060070#define OMAP4430_SA_VDD_CORE_L_0_6_MASK (0x7f << 0)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070071#define OMAP4430_SA_VDD_IVA_L_SHIFT 8
Rajendra Nayak568997c2010-09-27 14:02:55 -060072#define OMAP4430_SA_VDD_IVA_L_PRM_VC_SMPS_SA_MASK (0x7f << 8)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070073#define OMAP4430_SA_VDD_MPU_L_SHIFT 16
Rajendra Nayak568997c2010-09-27 14:02:55 -060074#define OMAP4430_SA_VDD_MPU_L_PRM_VC_SMPS_SA_MASK (0x7f << 16)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070075#define OMAP4430_SCLH_SHIFT 0
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070076#define OMAP4430_SCLL_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070077#define OMAP4430_SECURE_WDT_RST_SHIFT 4
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070078#define OMAP4430_SLAVEADDR_SHIFT 0
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070079#define OMAP4430_SMPSWAITTIMEMAX_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070080#define OMAP4430_SMPSWAITTIMEMIN_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070081#define OMAP4430_TIMEOUT_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -060082#define OMAP4430_TIMEOUTEN_MASK (1 << 3)
Rajendra Nayak568997c2010-09-27 14:02:55 -060083#define OMAP4430_VALID_MASK (1 << 24)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070084#define OMAP4430_VDDMAX_SHIFT 24
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070085#define OMAP4430_VDDMIN_SHIFT 16
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070086#define OMAP4430_VDD_CORE_VOLT_MGR_RST_SHIFT 8
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070087#define OMAP4430_VDD_IVA_VOLT_MGR_RST_SHIFT 7
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070088#define OMAP4430_VDD_MPU_VOLT_MGR_RST_SHIFT 6
Rajendra Nayak568997c2010-09-27 14:02:55 -060089#define OMAP4430_VOLRA_VDD_CORE_L_MASK (0xff << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060090#define OMAP4430_VOLRA_VDD_IVA_L_MASK (0xff << 8)
Rajendra Nayak568997c2010-09-27 14:02:55 -060091#define OMAP4430_VOLRA_VDD_MPU_L_MASK (0xff << 16)
Rajendra Nayak568997c2010-09-27 14:02:55 -060092#define OMAP4430_VPENABLE_MASK (1 << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060093#define OMAP4430_VPVOLTAGE_MASK (0xff << 0)
Rajendra Nayak568997c2010-09-27 14:02:55 -060094#define OMAP4430_VP_CORE_TRANXDONE_ST_MASK (1 << 21)
Rajendra Nayak568997c2010-09-27 14:02:55 -060095#define OMAP4430_VP_IVA_TRANXDONE_ST_MASK (1 << 29)
Rajendra Nayak568997c2010-09-27 14:02:55 -060096#define OMAP4430_VP_MPU_TRANXDONE_ST_MASK (1 << 5)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070097#define OMAP4430_VSTEPMAX_SHIFT 0
Rajendra Nayak56ef28a2010-01-26 20:13:12 -070098#define OMAP4430_VSTEPMIN_SHIFT 0
Rajendra Nayak568997c2010-09-27 14:02:55 -060099#define OMAP4430_WUCLK_CTRL_MASK (1 << 8)
Rajendra Nayak56ef28a2010-01-26 20:13:12 -0700100#define OMAP4430_WUCLK_STATUS_SHIFT 9
Rajendra Nayak568997c2010-09-27 14:02:55 -0600101#define OMAP4430_WUCLK_STATUS_MASK (1 << 9)
Rajendra Nayak234f0c42009-12-08 18:24:52 -0700102#endif