arm_dpm: add some SCR/RCR macros
Signed-off-by: Aaron Carroll <aaronc@cse.unsw.edu.au>
This commit is contained in:
parent
aea22bdbd1
commit
8e60d4955f
|
@ -151,6 +151,12 @@ void arm_dpm_report_wfar(struct arm_dpm *, uint32_t wfar);
|
|||
#define DSCR_DTR_RX_FULL (1 << 30)
|
||||
|
||||
#define DSCR_ENTRY(dscr) (((dscr) >> 2) & 0xf)
|
||||
#define DSCR_RUN_MODE(dscr) ((dscr) & (DSCR_CORE_HALTED | DSCR_CORE_RESTARTED))
|
||||
|
||||
/* DRCR (debug run control register) bits */
|
||||
#define DRCR_HALT (1 << 0)
|
||||
#define DRCR_RESTART (1 << 1)
|
||||
#define DRCR_CLEAR_EXCEPTIONS (1 << 2)
|
||||
|
||||
void arm_dpm_report_dscr(struct arm_dpm *dpm, uint32_t dcsr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue