summaryrefslogtreecommitdiff
path: root/common/include/asm
diff options
context:
space:
mode:
authorOlivier Dufour2012-11-19 16:40:39 +0100
committerOlivier Dufour2012-12-21 15:15:45 +0100
commit6f0a3313dc2effd7435149c22ea4719718090835 (patch)
treed2d360e1d98fbb3236e426ad2ea686413ec461f5 /common/include/asm
parent8c10cce00c2d426af6b9a60bf12444e91c4ba7eb (diff)
common/{tools,inc}: add pm support in NVRAM, refs #2633
Diffstat (limited to 'common/include/asm')
-rw-r--r--common/include/asm/arch/nvram.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/include/asm/arch/nvram.h b/common/include/asm/arch/nvram.h
index c4ba7c6955..50e9681354 100644
--- a/common/include/asm/arch/nvram.h
+++ b/common/include/asm/arch/nvram.h
@@ -132,6 +132,7 @@ typedef struct
unsigned char eth2_address[6]; /* Ethernet MAC address for ETH 2 */
unsigned char eth2_port_nb; /* Ethernet port number for ETH 2 */
unsigned char reserved3;
+ uint32_t pm_cfg; /* Power management configuration */
#endif /* CONFIG_CHIP_FEATURE_EXTRA_NVRAM_FIELDS */
} spidcom_nvram_t; //Currently __attribute__((packed)) not needed
@@ -344,6 +345,14 @@ static inline void spidcom_nvram_copy(void* dst, void* src, unsigned int length)
#define NVRAM_FLASH_SECT_128 1
#define NVRAM_FLASH_SECT_256 2
+/* Bitfields for power management config. */
+#define NVRAM_PM_CFG_ENABLE_SHIFT 0
+#define NVRAM_PM_CFG_ENABLE_MASK 0x1
+
+/* Values for power management config. */
+#define NVRAM_PM_CFG_DISABLE 0
+#define NVRAM_PM_CFG_ENABLE 1
+
#ifndef __ASSEMBLY__
/* GPIO common definitions */