diff options
Diffstat (limited to 'zephyr/shim/chip/npcx/include/system_chip.h')
-rw-r--r-- | zephyr/shim/chip/npcx/include/system_chip.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/shim/chip/npcx/include/system_chip.h b/zephyr/shim/chip/npcx/include/system_chip.h index e2e9d5379d..44a60b47b5 100644 --- a/zephyr/shim/chip/npcx/include/system_chip.h +++ b/zephyr/shim/chip/npcx/include/system_chip.h @@ -6,6 +6,13 @@ #ifndef __CROS_EC_SYSTEM_CHIP_H_ #define __CROS_EC_SYSTEM_CHIP_H_ +#define SET_BIT(reg, bit) ((reg) |= (0x1 << (bit))) +#define CLEAR_BIT(reg, bit) ((reg) &= (~(0x1 << (bit)))) + +/* TODO(b:179900857) Clean this up too */ +#undef IS_BIT_SET +#define IS_BIT_SET(reg, bit) (((reg) >> (bit)) & (0x1)) + /*****************************************************************************/ /* Memory mapping */ #define CONFIG_LPRAM_BASE 0x40001400 /* memory address of lpwr ram */ |