-/* $OpenBSD: bwfm.c,v 1.80 2021/01/31 11:07:51 patrick Exp $ */
+/* $OpenBSD: bwfm.c,v 1.81 2021/02/24 10:13:08 patrick Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
* Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se>
rev = (val & BWFM_DMP_COMP_REVISION)
>> BWFM_DMP_COMP_REVISION_S;
- if (nmw + nsw == 0 && id != BWFM_AGENT_CORE_PMU)
+ if (nmw + nsw == 0 && id != BWFM_AGENT_CORE_PMU &&
+ id != BWFM_AGENT_CORE_GCI)
continue;
if (bwfm_chip_dmp_get_regaddr(sc, &erom, &base, &wrap))
else
*erom += 4;
}
- if (sztype != BWFM_DMP_SLAVE_SIZE_4K)
+ if (sztype != BWFM_DMP_SLAVE_SIZE_4K &&
+ sztype != BWFM_DMP_SLAVE_SIZE_8K)
continue;
stype = (val & BWFM_DMP_SLAVE_TYPE) >> BWFM_DMP_SLAVE_TYPE_S;
-/* $OpenBSD: bwfmreg.h,v 1.19 2020/05/15 14:09:14 patrick Exp $ */
+/* $OpenBSD: bwfmreg.h,v 1.20 2021/02/24 10:13:08 patrick Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
* Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se>
#define BWFM_AGENT_CORE_ARM_CM3 0x82A
#define BWFM_AGENT_CORE_PCIE2 0x83C
#define BWFM_AGENT_CORE_ARM_CR4 0x83E
+#define BWFM_AGENT_CORE_GCI 0x840
#define BWFM_AGENT_CORE_ARM_CA7 0x847
#define BWFM_AGENT_SYS_MEM 0x849