From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Date: Thu, 25 Feb 2021 15:20:34 +0000 Subject: [PATCH] sunxi-common: support loading compressed kernel images on ARMv8 In-Reply-To: <20210220121416.15215-4-nicolas@debian.org> References: <20210220121416.15215-1-nicolas@debian.org> <20210220121416.15215-4-nicolas@debian.org> Message-ID: <9ef08b59-a82a-e283-badd-810848669d77@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 20/02/2021 12:14, Nicolas Boulenguez wrote: Hi, > From: Arnaud Ferraris This looks OK on the first glance, but is missing a commit message and a Signed-off-by: Cheers, Andre > > --- > include/configs/sunxi-common.h | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h > index 5b0bec0561..227284cd29 100644 > --- a/include/configs/sunxi-common.h > +++ b/include/configs/sunxi-common.h > @@ -291,6 +291,8 @@ extern int soft_i2c_gpio_scl; > */ > #define BOOTM_SIZE __stringify(0xa000000) > #define KERNEL_ADDR_R __stringify(SDRAM_OFFSET(0080000)) > +#define KERNEL_COMP_ADDR_R __stringify(SDRAM_OFFSET(4000000)) > +#define KERNEL_COMP_SIZE __stringify(0x4000000) > #define FDT_ADDR_R __stringify(SDRAM_OFFSET(FA00000)) > #define SCRIPT_ADDR_R __stringify(SDRAM_OFFSET(FC00000)) > #define PXEFILE_ADDR_R __stringify(SDRAM_OFFSET(FD00000)) > @@ -332,6 +334,18 @@ extern int soft_i2c_gpio_scl; > "pxefile_addr_r=" PXEFILE_ADDR_R "\0" \ > "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" > > +#ifdef CONFIG_ARM64 > + > +#define MEM_LAYOUT_ENV_EXTRA_SETTINGS \ > + "kernel_comp_addr_r=" KERNEL_COMP_ADDR_R "\0" \ > + "kernel_comp_size=" KERNEL_COMP_SIZE "\0" > + > +#else > + > +#define MEM_LAYOUT_ENV_EXTRA_SETTINGS "" > + > +#endif > + > #define DFU_ALT_INFO_RAM \ > "dfu_alt_info_ram=" \ > "kernel ram " KERNEL_ADDR_R " 0x1000000;" \ > @@ -487,6 +501,7 @@ extern int soft_i2c_gpio_scl; > #define CONFIG_EXTRA_ENV_SETTINGS \ > CONSOLE_ENV_SETTINGS \ > MEM_LAYOUT_ENV_SETTINGS \ > + MEM_LAYOUT_ENV_EXTRA_SETTINGS \ > DFU_ALT_INFO_RAM \ > "fdtfile=" FDTFILE "\0" \ > "console=ttyS0,115200\0" \ >