7 #include "sw/device/lib/base/multibits.h"
9 #include "rv_dm_regs.h"
11 static bool late_debug_enable_is_locked(
const dif_rv_dm_t *rv_dm) {
12 uint32_t reg = mmio_region_read32(rv_dm->
base_addr,
13 RV_DM_LATE_DEBUG_ENABLE_REGWEN_REG_OFFSET);
15 reg, RV_DM_LATE_DEBUG_ENABLE_REGWEN_LATE_DEBUG_ENABLE_REGWEN_BIT);
24 if (late_debug_enable_is_locked(rv_dm)) {
28 multi_bit_bool_t enable_value = kMultiBitBool32False;
30 enable_value = kMultiBitBool32True;
33 mmio_region_write32(rv_dm->
base_addr, RV_DM_LATE_DEBUG_ENABLE_REG_OFFSET,
44 rv_dm->
base_addr, RV_DM_LATE_DEBUG_ENABLE_REGWEN_REG_OFFSET,
46 0, RV_DM_LATE_DEBUG_ENABLE_REGWEN_LATE_DEBUG_ENABLE_REGWEN_BIT,
53 if (rv_dm == NULL || is_locked == NULL) {
57 *is_locked = late_debug_enable_is_locked(rv_dm);