55#ifndef _GRLIB_GRCLKGATE_REGS_H
56#define _GRLIB_GRCLKGATE_REGS_H
84#define GRCLKGATE_UNLOCK_UNLOCK_SHIFT 0
85#define GRCLKGATE_UNLOCK_UNLOCK_MASK 0xffffffffU
86#define GRCLKGATE_UNLOCK_UNLOCK_GET( _reg ) \
87 ( ( ( _reg ) & GRCLKGATE_UNLOCK_UNLOCK_MASK ) >> \
88 GRCLKGATE_UNLOCK_UNLOCK_SHIFT )
89#define GRCLKGATE_UNLOCK_UNLOCK_SET( _reg, _val ) \
90 ( ( ( _reg ) & ~GRCLKGATE_UNLOCK_UNLOCK_MASK ) | \
91 ( ( ( _val ) << GRCLKGATE_UNLOCK_UNLOCK_SHIFT ) & \
92 GRCLKGATE_UNLOCK_UNLOCK_MASK ) )
93#define GRCLKGATE_UNLOCK_UNLOCK( _val ) \
94 ( ( ( _val ) << GRCLKGATE_UNLOCK_UNLOCK_SHIFT ) & \
95 GRCLKGATE_UNLOCK_UNLOCK_MASK )
107#define GRCLKGATE_CLKEN_ENABLE_SHIFT 0
108#define GRCLKGATE_CLKEN_ENABLE_MASK 0xffffffffU
109#define GRCLKGATE_CLKEN_ENABLE_GET( _reg ) \
110 ( ( ( _reg ) & GRCLKGATE_CLKEN_ENABLE_MASK ) >> \
111 GRCLKGATE_CLKEN_ENABLE_SHIFT )
112#define GRCLKGATE_CLKEN_ENABLE_SET( _reg, _val ) \
113 ( ( ( _reg ) & ~GRCLKGATE_CLKEN_ENABLE_MASK ) | \
114 ( ( ( _val ) << GRCLKGATE_CLKEN_ENABLE_SHIFT ) & \
115 GRCLKGATE_CLKEN_ENABLE_MASK ) )
116#define GRCLKGATE_CLKEN_ENABLE( _val ) \
117 ( ( ( _val ) << GRCLKGATE_CLKEN_ENABLE_SHIFT ) & \
118 GRCLKGATE_CLKEN_ENABLE_MASK )
130#define GRCLKGATE_RESET_RESET_SHIFT 0
131#define GRCLKGATE_RESET_RESET_MASK 0xffffffffU
132#define GRCLKGATE_RESET_RESET_GET( _reg ) \
133 ( ( ( _reg ) & GRCLKGATE_RESET_RESET_MASK ) >> \
134 GRCLKGATE_RESET_RESET_SHIFT )
135#define GRCLKGATE_RESET_RESET_SET( _reg, _val ) \
136 ( ( ( _reg ) & ~GRCLKGATE_RESET_RESET_MASK ) | \
137 ( ( ( _val ) << GRCLKGATE_RESET_RESET_SHIFT ) & \
138 GRCLKGATE_RESET_RESET_MASK ) )
139#define GRCLKGATE_RESET_RESET( _val ) \
140 ( ( ( _val ) << GRCLKGATE_RESET_RESET_SHIFT ) & \
141 GRCLKGATE_RESET_RESET_MASK )
153#define GRCLKGATE_OVERRIDE_FOVERRIDE_SHIFT 16
154#define GRCLKGATE_OVERRIDE_FOVERRIDE_MASK 0xf0000U
155#define GRCLKGATE_OVERRIDE_FOVERRIDE_GET( _reg ) \
156 ( ( ( _reg ) & GRCLKGATE_OVERRIDE_FOVERRIDE_MASK ) >> \
157 GRCLKGATE_OVERRIDE_FOVERRIDE_SHIFT )
158#define GRCLKGATE_OVERRIDE_FOVERRIDE_SET( _reg, _val ) \
159 ( ( ( _reg ) & ~GRCLKGATE_OVERRIDE_FOVERRIDE_MASK ) | \
160 ( ( ( _val ) << GRCLKGATE_OVERRIDE_FOVERRIDE_SHIFT ) & \
161 GRCLKGATE_OVERRIDE_FOVERRIDE_MASK ) )
162#define GRCLKGATE_OVERRIDE_FOVERRIDE( _val ) \
163 ( ( ( _val ) << GRCLKGATE_OVERRIDE_FOVERRIDE_SHIFT ) & \
164 GRCLKGATE_OVERRIDE_FOVERRIDE_MASK )
166#define GRCLKGATE_OVERRIDE_OVERRIDE_SHIFT 0
167#define GRCLKGATE_OVERRIDE_OVERRIDE_MASK 0xfU
168#define GRCLKGATE_OVERRIDE_OVERRIDE_GET( _reg ) \
169 ( ( ( _reg ) & GRCLKGATE_OVERRIDE_OVERRIDE_MASK ) >> \
170 GRCLKGATE_OVERRIDE_OVERRIDE_SHIFT )
171#define GRCLKGATE_OVERRIDE_OVERRIDE_SET( _reg, _val ) \
172 ( ( ( _reg ) & ~GRCLKGATE_OVERRIDE_OVERRIDE_MASK ) | \
173 ( ( ( _val ) << GRCLKGATE_OVERRIDE_OVERRIDE_SHIFT ) & \
174 GRCLKGATE_OVERRIDE_OVERRIDE_MASK ) )
175#define GRCLKGATE_OVERRIDE_OVERRIDE( _val ) \
176 ( ( ( _val ) << GRCLKGATE_OVERRIDE_OVERRIDE_SHIFT ) & \
177 GRCLKGATE_OVERRIDE_OVERRIDE_MASK )
This structure defines the GRCLKGATE register block memory map.
Definition: grclkgate-regs.h:184
uint32_t unlock
See Unlock register (UNLOCK).
Definition: grclkgate-regs.h:188
uint32_t clken
See Clock enable register (CLKEN).
Definition: grclkgate-regs.h:193
uint32_t reset
See Reset register (RESET).
Definition: grclkgate-regs.h:198