rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #ifndef DSP_EINTC_H |
| 2 | #define DSP_EINTC_H |
| 3 | |
| 4 | #include "kal_public_api.h" |
| 5 | #include "sync_data.h" |
| 6 | #include "reg_base.h" |
| 7 | #define DSP_EINTC_REG(ptr) (*(volatile kal_uint32*)(ptr)) |
| 8 | |
| 9 | #if defined(MT6297) || defined(MT6885) || defined(MT6873) || defined(MT6853) || defined(CHIP10992) || defined(MT6833) || defined(MT6877) |
| 10 | #define EINTC_BASE BASE_MADDR_MCORE0_EINTC |
| 11 | #define EINTC_SET_IDLE_SIGNAL 0x1C4 |
| 12 | #define EINTC_CLR_IDLE_SIGNAL 0x1C8 |
| 13 | #define EINTC_IDLE_SIGNAL_STATUS 0x1CC |
| 14 | #define DSP_MCORE_THREAD_NUMBER 0x4 |
| 15 | #elif defined(__MD95__) |
| 16 | #else |
| 17 | #error "need to define address for new chip" |
| 18 | #endif |
| 19 | |
| 20 | |
| 21 | #endif /* DSP_EINTC_H */ |