adiv5/hosted: Export the BMP_TYPE in DP.

This commit is contained in:
Uwe Bonnes 2021-10-08 18:40:15 +02:00
parent b7e7aa3f9a
commit c13778139f
3 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,8 @@ int dap_init(bmp_info_t *info)
DEBUG_INFO(", SWO_MANCHESTER");
if (dap_caps & 0x10)
DEBUG_INFO(", Atomic Cmds");
if (has_swd_sequence)
DEBUG_INFO(", DAP_SWD_Sequence");
DEBUG_INFO("\n");
return 0;
}

View File

@ -211,6 +211,7 @@ int platform_jtagtap_init(void)
void platform_adiv5_dp_defaults(ADIv5_DP_t *dp)
{
dp->dp_bmp_type = info.bmp_type;
switch (info.bmp_type) {
case BMP_TYPE_BMP:
if (cl_opts.opt_no_hl) {

View File

@ -182,6 +182,7 @@ typedef struct ADIv5_DP_s {
void (*abort)(struct ADIv5_DP_s *dp, uint32_t abort);
#if PC_HOSTED == 1
bmp_type_t dp_bmp_type;
bool (*ap_setup)(int i);
void (*ap_cleanup)(int i);
void (*ap_regs_read)(ADIv5_AP_t *ap, void *data);