From 9a5483e9df9557c1387e9a0c15c881e6f0278448 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Tue, 3 Apr 2018 12:52:48 +0200 Subject: ARM: rmobile: Add TPL support on R8A7791 M2 Porter Add and enable TPL on M2 Porter. The TPL must fit into 16 kiB due to the Gen2 BootROM restriction. The TPL is running from MERAM and is capable of performing the initial initialization of PFC, Clock, GPIO, LBSC, DBSC and QSPI NOR. DBSC is responsible for bringing up the DDR DRAM access. The TPL is capable of loading the next stage, U-Boot, from either SPI NOR or UART as a fallback. If either does provide a valid U-Boot uImage, the system stops, which allows the operator to load U-Boot ie. via JTAG and start it manually. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- include/configs/porter.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/configs/porter.h b/include/configs/porter.h index 48f433486c8..7c46b55d8ff 100644 --- a/include/configs/porter.h +++ b/include/configs/porter.h @@ -59,4 +59,10 @@ #define CONFIG_SPL_MAX_SIZE 0x40000 #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x140000 +/* TPL support */ +#ifdef CONFIG_TPL_BUILD +#define CONFIG_CONS_SCIF0 +#define CONFIG_SH_SCIF_CLK_FREQ 65000000 +#endif + #endif /* __PORTER_H */ -- cgit v1.3.1 From 97ed677831e45b789fc19bd807273ff34486efb8 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Tue, 10 Apr 2018 16:06:40 +0200 Subject: ARM: rmobile: Set maximum kernel size to 64 MiB on Gen3 The Gen3 kernel images are often above 8 MiB, increase the maximum kernel size to 64 MiB to future-proof it, just like many other ARM64 boards do. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- include/configs/rcar-gen3-common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/configs/rcar-gen3-common.h b/include/configs/rcar-gen3-common.h index bbaab80e230..da82e4442a8 100644 --- a/include/configs/rcar-gen3-common.h +++ b/include/configs/rcar-gen3-common.h @@ -51,6 +51,7 @@ #define CONFIG_SYS_MONITOR_LEN (256 * 1024) #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) +#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* ENV setting */ #define CONFIG_ENV_OVERWRITE -- cgit v1.3.1