Merge "ipq6018: Add support to enable crashdump compression"

This commit is contained in:
Linux Build Service Account 2019-12-24 11:35:53 -08:00 committed by Gerrit - the friendly Code Review server
commit 0adb4367d4
2 changed files with 25 additions and 0 deletions

View file

@ -57,7 +57,20 @@ struct dumpinfo_t dumpinfo_n[] = {
* | |
* ------------------------
*/
/* Compressed EBICS dump follows descending order
* to use in-memory compression for which destination
* for compression will be address of EBICS2.BIN
*
* EBICS2 - (ddr size / 2) [to] end of ddr
* EBICS1 - uboot end addr [to] (ddr size / 2)
* EBICS0 - ddr start [to] uboot start addr
*/
{ "EBICS0.BIN", 0x40000000, 0x10000000, 0 },
{ "EBICS2.BIN", 0x60000000, 0x20000000, 0, 0, 0, 0, 1 },
{ "EBICS1.BIN", CONFIG_UBOOT_END_ADDR, 0x10000000, 0, 0, 0, 0, 1 },
{ "EBICS0.BIN", 0x40000000, CONFIG_QCA_UBOOT_OFFSET, 0, 0, 0, 0, 1 },
{ "CODERAM.BIN", 0x00200000, 0x00028000, 0 },
{ "DATARAM.BIN", 0x00290000, 0x00014000, 0 },
{ "MSGRAM.BIN", 0x00060000, 0x00006000, 1 },
@ -71,9 +84,18 @@ struct dumpinfo_t dumpinfo_n[] = {
};
int dump_entries_n = ARRAY_SIZE(dumpinfo_n);
/* Compressed dumps:
* EBICS_S2 - (ddr start + 256M) [to] end of ddr
* EBICS_S1 - uboot end addr [to] (ddr start + 256M)
* EBICS_S0 - ddr start [to] uboot start addr
*/
struct dumpinfo_t dumpinfo_s[] = {
{ "EBICS_S0.BIN", 0x40000000, 0xA600000, 0 },
{ "EBICS_S1.BIN", CONFIG_TZ_END_ADDR, 0x10000000, 0 },
{ "EBICS_S2.BIN", 0x50000000, 0x10000000, 0, 0, 0, 0, 1 },
{ "EBICS_S1.BIN", CONFIG_UBOOT_END_ADDR, 0x5B00000, 0, 0, 0, 0, 1 },
{ "EBICS_S0.BIN", 0x40000000, CONFIG_QCA_UBOOT_OFFSET, 0, 0, 0, 0, 1 },
{ "DATARAM.BIN", 0x00290000, 0x00014000, 0 },
{ "MSGRAM.BIN", 0x00060000, 0x00006000, 1 },
{ "IMEM.BIN", 0x08600000, 0x00001000, 0 },

View file

@ -122,6 +122,9 @@
#define CONFIG_TZ_END_ADDR 0x4AA00000
#define CONFIG_SYS_SDRAM_END ((long long)CONFIG_SYS_SDRAM_BASE + gd->ram_size)
#define CONFIG_QCA_UBOOT_OFFSET 0xA100000
#define CONFIG_UBOOT_END_ADDR 0x4A500000
#ifndef __ASSEMBLY__
#include <compiler.h>
extern loff_t board_env_offset;