Refactor 32-bit register definitions
This commit is contained in:
1 parent
c0f99fcd1c
commit
a6c7a2c57e
26 files changed
+126
-98
No files matched your search
+2
-2
@@ -9,7 +9,7 @@
|
||||
|
||||
#define CAR_BASE (MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_CLKRST))
|
||||
|
||||
#define MAKE_CAR_REG(n) (*((volatile uint32_t *)(CAR_BASE + n)))
|
||||
#define MAKE_CAR_REG(n) MAKE_REG32(CAR_BASE + n)
|
||||
|
||||
#define CLK_RST_CONTROLLER_MISC_CLK_ENB_0 MAKE_CAR_REG(0x048)
|
||||
#define CLK_RST_CONTROLLER_RST_DEVICES_H_0 MAKE_CAR_REG(0x008)
|
||||
@@ -35,4 +35,4 @@ void clkrst_disable(car_device_t dev);
|
||||
|
||||
void clkrst_reboot(car_device_t dev);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in new issue
Block a user