mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "board: crashdump: Enable TME log dump"
This commit is contained in:
commit
cb261702f3
3 changed files with 23 additions and 0 deletions
|
|
@ -762,6 +762,14 @@ static int do_dumpqca_data(unsigned int dump_level)
|
|||
}
|
||||
|
||||
for (indx = 0; indx < dump_entries; indx++) {
|
||||
|
||||
#ifdef DUMP_TME_LOG
|
||||
if(!strncmp(dumpinfo[indx].name, "IMEM2.BIN", 9) &&
|
||||
qca_scm_is_feature_available(TME_LOG_DUMP_FEATURE_ID) \
|
||||
!= TME_LOG_DUMP_FEATURE_VERSION)
|
||||
continue;
|
||||
#endif
|
||||
|
||||
if (dump_level != dumpinfo[indx].dump_level)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ struct dumpinfo_t dumpinfo_n[] = {
|
|||
{ "EBICS0.BIN", 0x40000000, CONFIG_QCA_UBOOT_OFFSET, 0, 0, 0, 0, 1 },
|
||||
#endif
|
||||
{ "IMEM.BIN", 0x08600000, 0x00001000, 0 },
|
||||
{ "IMEM2.BIN", 0x860F000, 0x00001000, 0 },
|
||||
{ "UNAME.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP },
|
||||
{ "CPU_INFO.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP },
|
||||
{ "DMESG.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP },
|
||||
|
|
|
|||
|
|
@ -43,6 +43,20 @@ extern const add_node_t add_fdt_node[];
|
|||
#define DLOAD_DISABLED 0x40
|
||||
#define DLOAD_BITS 0xFF
|
||||
|
||||
/* TME DUMP */
|
||||
|
||||
#ifndef DUMP_TME_LOG
|
||||
#define DUMP_TME_LOG 1
|
||||
#endif
|
||||
|
||||
#ifndef TME_LOG_DUMP_FEATURE_ID
|
||||
#define TME_LOG_DUMP_FEATURE_ID 0x7
|
||||
#endif
|
||||
|
||||
#ifndef TME_LOG_DUMP_FEATURE_VERSION
|
||||
#define TME_LOG_DUMP_FEATURE_VERSION 0x401000
|
||||
#endif
|
||||
|
||||
/* USB Registers */
|
||||
#define TCSR_USB_PCIE_SEL 0x01947540
|
||||
#define TCSR_USB_PCIE_SEL_USB 0x1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue