target/arm_cti : export CTI APPPULSE and INACK register
this permits the full control of CTI from config files Change-Id: Ia27ac8e12e08ec72da05f26dcbd81d24fa1a0f6f Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> Reviewed-on: http://openocd.zylin.com/4815 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
d1c7b0ab8a
commit
db070eb85d
|
@ -173,7 +173,7 @@ int arm_cti_clear_channel(struct arm_cti *self, uint32_t channel)
|
||||||
return arm_cti_write_reg(self, CTI_APPCLEAR, CTI_CHNL(channel));
|
return arm_cti_write_reg(self, CTI_APPCLEAR, CTI_CHNL(channel));
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t cti_regs[26];
|
static uint32_t cti_regs[28];
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
|
@ -206,6 +206,8 @@ static const struct {
|
||||||
{ CTI_CHOU_STATUS, "CHOUT", &cti_regs[23] },
|
{ CTI_CHOU_STATUS, "CHOUT", &cti_regs[23] },
|
||||||
{ CTI_APPSET, "APPSET", &cti_regs[24] },
|
{ CTI_APPSET, "APPSET", &cti_regs[24] },
|
||||||
{ CTI_APPCLEAR, "APPCLR", &cti_regs[25] },
|
{ CTI_APPCLEAR, "APPCLR", &cti_regs[25] },
|
||||||
|
{ CTI_APPPULSE, "APPPULSE", &cti_regs[26] },
|
||||||
|
{ CTI_INACK, "INACK", &cti_regs[27] },
|
||||||
};
|
};
|
||||||
|
|
||||||
static int cti_find_reg_offset(const char *name)
|
static int cti_find_reg_offset(const char *name)
|
||||||
|
|
Loading…
Reference in New Issue