mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-22 04:12:48 +01:00
ARM: qca: Updated support for crashdump onto flash
Increased context_dump size from 2K to 4K for ipq8074 SoC. Change-Id: I5f10c0f4081c6ebe155599bb2575b1347e1933d1 Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
parent
36eece43ac
commit
3f2b61ee41
2 changed files with 4 additions and 5 deletions
|
|
@ -743,7 +743,6 @@ U_BOOT_CMD(bootipq, 2, 0, do_bootipq,
|
|||
#define QCA_WDT_SCM_TLV_LEN_SIZE 2
|
||||
#define QCA_WDT_SCM_TLV_TYPE_LEN_SIZE (QCA_WDT_SCM_TLV_TYPE_SIZE +\
|
||||
QCA_WDT_SCM_TLV_LEN_SIZE)
|
||||
#define CRASHDUMP_CPU_CONTEXT_SIZE 2048
|
||||
#define MAX_NAND_PAGE_SIZE 2048
|
||||
#define MAX_EMMC_BLK_LEN 1024
|
||||
|
||||
|
|
@ -1326,7 +1325,7 @@ static int qca_wdt_write_crashdump_data(
|
|||
}
|
||||
|
||||
/* Start writing cpu context and uname in flash */
|
||||
required_size = CRASHDUMP_CPU_CONTEXT_SIZE +
|
||||
required_size = CONFIG_CPU_CONTEXT_DUMP_SIZE +
|
||||
crashdump_data->uname_length;
|
||||
|
||||
ret = crashdump_flash_write_init(crashdump_cnxt,
|
||||
|
|
@ -1338,7 +1337,7 @@ static int qca_wdt_write_crashdump_data(
|
|||
|
||||
ret = crashdump_flash_write(crashdump_cnxt,
|
||||
crashdump_data->cpu_context,
|
||||
CRASHDUMP_CPU_CONTEXT_SIZE);
|
||||
CONFIG_CPU_CONTEXT_DUMP_SIZE);
|
||||
|
||||
if (!ret)
|
||||
ret = crashdump_flash_write(crashdump_cnxt,
|
||||
|
|
|
|||
|
|
@ -290,8 +290,8 @@ extern loff_t board_env_size;
|
|||
#define IPQ_TEMP_DUMP_ADDR 0x44000000
|
||||
#endif
|
||||
|
||||
#define CONFIG_QCA_KERNEL_CRASHDUMP_ADDRESS 0x08605FFF
|
||||
#define CONFIG_CPU_CONTEXT_DUMP_SIZE 2048
|
||||
#define CONFIG_QCA_KERNEL_CRASHDUMP_ADDRESS *((unsigned int *)0x08600658)
|
||||
#define CONFIG_CPU_CONTEXT_DUMP_SIZE 4096
|
||||
#define CONFIG_TLV_DUMP_SIZE 2048
|
||||
|
||||
/* L1 cache line size is 64 bytes, L2 cache line size is 128 bytes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue