blob: 73cd52e0a54e8c1550c19472e3aa45d73f609ec7 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef __DSP_DBGC_H__
2#define __DSP_DBGC_H__
3
4
5#if defined(__MD97__)
6#include "kal_public_api.h"
7#include "sync_data.h"
8#include "reg_base.h"
9
10#define DSP_DBGC_REG(ptr) (*(volatile kal_uint32*)(ptr))
11
12#define DBGC_BASE (BASE_MADDR_MCORE0_DBGC)
13#define DBGC_IDLE_SIGNAL_SET_REG (DBGC_BASE + 0x1C4)
14#define DBGC_IDLE_SIGNAL_CLR_REG (DBGC_BASE + 0x1C8)
15#define DBGC_IDLE_SIGNAL_STATUS_REG (DBGC_BASE + 0x1CC)
16#define DSP_MCORE_THREAD_NUMBER (0x4)
17
18
19#else /* Not MD97 */
20
21// let it empty, because only MD97 has the DBGC module
22#endif
23
24#endif /* __DSP_DBGC_H__ */