diff mbox series

arm-bsp/corstone500: upgrade u-boot to the latest

Message ID 20230830135710.3693738-1-jon.mason@arm.com
State New
Headers show
Series arm-bsp/corstone500: upgrade u-boot to the latest | expand

Commit Message

Jon Mason Aug. 30, 2023, 1:57 p.m. UTC
Rebase the corstone500 u-boot patches to 2023.07.02.  Some defined
variables changed names, and had to be updated.

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 meta-arm-bsp/conf/machine/corstone500.conf    |  2 +-
 ...ng-generic-timer-access-through-MMIO.patch | 35 ++++------------
 ...0002-board-arm-add-corstone500-board.patch | 40 +++++++++----------
 3 files changed, 28 insertions(+), 49 deletions(-)

Comments

Jon Mason Aug. 30, 2023, 10:29 p.m. UTC | #1
On Wed, 30 Aug 2023 08:57:10 -0500, Jon Mason wrote:
> Rebase the corstone500 u-boot patches to 2023.07.02.  Some defined
> variables changed names, and had to be updated.
> 
> 

Applied, thanks!

[1/1] arm-bsp/corstone500: upgrade u-boot to the latest
      commit: bddec6c8007a43e4b08333aff8de19eb348d51e4

Best regards,
diff mbox series

Patch

diff --git a/meta-arm-bsp/conf/machine/corstone500.conf b/meta-arm-bsp/conf/machine/corstone500.conf
index 6d2294c2..a169b921 100644
--- a/meta-arm-bsp/conf/machine/corstone500.conf
+++ b/meta-arm-bsp/conf/machine/corstone500.conf
@@ -25,7 +25,7 @@  SERIAL_CONSOLES = "115200;ttyAMA0"
 UBOOT_MACHINE = "corstone500_defconfig"
 UBOOT_IMAGE_ENTRYPOINT = "0x84000000"
 UBOOT_IMAGE_LOADADDRESS = "0x84000000"
-PREFERRED_VERSION_u-boot ?= "2023.01"
+PREFERRED_VERSION_u-boot ?= "2023.07%"
 
 # making sure EXTRA_IMAGEDEPENDS will be used while creating the image
 WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}"
diff --git a/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone500/0001-armv7-adding-generic-timer-access-through-MMIO.patch b/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone500/0001-armv7-adding-generic-timer-access-through-MMIO.patch
index 1d28631a..ff1754fb 100644
--- a/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone500/0001-armv7-adding-generic-timer-access-through-MMIO.patch
+++ b/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone500/0001-armv7-adding-generic-timer-access-through-MMIO.patch
@@ -1,10 +1,7 @@ 
-From 2bb9fb8414b8ad35ed5fc6c91a34c21cef285a01 Mon Sep 17 00:00:00 2001
+From 1f5d48695b896fcaf913eda788117b14afe84e39 Mon Sep 17 00:00:00 2001
 From: Rui Miguel Silva <rui.silva@linaro.org>
 Date: Wed, 18 Dec 2019 21:52:34 +0000
-Subject: [PATCH 1/2] armv7: adding generic timer access through MMIO
-
-Upstream-Status: Pending [Not submitted to upstream yet]
-Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
+Subject: [PATCH] armv7: adding generic timer access through MMIO
 
 This driver enables the ARMv7 generic timer.
 
@@ -20,22 +17,21 @@  the u-boot initcall level (timer_init) before u-boot relocation.
 Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
 Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
 
-
-Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
+Upstream-Status: Pending [Not submitted to upstream yet]
+Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
 ---
  arch/arm/cpu/armv7/Makefile     |  1 +
  arch/arm/cpu/armv7/mmio_timer.c | 75 +++++++++++++++++++++++++++++++++
- scripts/config_whitelist.txt    |  1 +
- 3 files changed, 77 insertions(+)
+ 2 files changed, 76 insertions(+)
  create mode 100644 arch/arm/cpu/armv7/mmio_timer.c
 
 diff --git a/arch/arm/cpu/armv7/Makefile b/arch/arm/cpu/armv7/Makefile
-index bfbd85ae64ef..1a0a24e53110 100644
+index 653eef8ad79e..5859b2e2120b 100644
 --- a/arch/arm/cpu/armv7/Makefile
 +++ b/arch/arm/cpu/armv7/Makefile
-@@ -28,6 +28,7 @@ obj-$(CONFIG_ARMV7_PSCI)	+= psci.o psci-common.o
+@@ -27,6 +27,7 @@ obj-$(CONFIG_ARMV7_PSCI)	+= psci.o psci-common.o
+ 
  obj-$(CONFIG_IPROC) += iproc-common/
- obj-$(CONFIG_KONA) += kona-common/
  obj-$(CONFIG_SYS_ARCH_TIMER) += arch_timer.o
 +obj-$(CONFIG_SYS_MMIO_TIMER) += mmio_timer.o
  
@@ -122,18 +118,3 @@  index 000000000000..edd806e06e42
 +{
 +	return gd->arch.timer_rate_hz;
 +}
-diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
-index ea71f9d23449..1496d9b88233 100644
---- a/scripts/config_whitelist.txt
-+++ b/scripts/config_whitelist.txt
-@@ -610,6 +610,7 @@ CONFIG_SYS_MMC_U_BOOT_DST
- CONFIG_SYS_MMC_U_BOOT_OFFS
- CONFIG_SYS_MMC_U_BOOT_SIZE
- CONFIG_SYS_MMC_U_BOOT_START
-+CONFIG_SYS_MMIO_TIMER
- CONFIG_SYS_MOR_VAL
- CONFIG_SYS_MRAM_BASE
- CONFIG_SYS_NAND_AMASK
--- 
-2.39.1
-
diff --git a/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone500/0002-board-arm-add-corstone500-board.patch b/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone500/0002-board-arm-add-corstone500-board.patch
index 5aec24cc..b938a46d 100644
--- a/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone500/0002-board-arm-add-corstone500-board.patch
+++ b/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone500/0002-board-arm-add-corstone500-board.patch
@@ -1,24 +1,24 @@ 
-From 376e7cc533e27f943191d44c112e3812885b8fd1 Mon Sep 17 00:00:00 2001
+From e296c84e276e8ccc39dd593442a4f3f8655b1f57 Mon Sep 17 00:00:00 2001
 From: Rui Miguel Silva <rui.silva@linaro.org>
 Date: Wed, 8 Jan 2020 09:48:11 +0000
-Subject: [PATCH 2/2] board: arm: add corstone500 board
-
-Upstream-Status: Pending [Not submitted to upstream yet]
-Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
+Subject: [PATCH] board: arm: add corstone500 board
 
 Add support for the Arm corstone500 platform, with a cortex-a5
 chip, add the default configuration, initialization and
 makefile for this system.
 
 Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
+
+Upstream-Status: Pending [Not submitted to upstream yet]
+Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
 ---
  arch/arm/Kconfig                       |  10 +++
  board/armltd/corstone500/Kconfig       |  12 +++
  board/armltd/corstone500/Makefile      |   8 ++
  board/armltd/corstone500/corstone500.c |  48 ++++++++++++
  configs/corstone500_defconfig          |  41 ++++++++++
- include/configs/corstone500.h          | 102 +++++++++++++++++++++++++
- 6 files changed, 221 insertions(+)
+ include/configs/corstone500.h          | 103 +++++++++++++++++++++++++
+ 6 files changed, 222 insertions(+)
  create mode 100644 board/armltd/corstone500/Kconfig
  create mode 100644 board/armltd/corstone500/Makefile
  create mode 100644 board/armltd/corstone500/corstone500.c
@@ -26,10 +26,10 @@  Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
  create mode 100644 include/configs/corstone500.h
 
 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
-index cac4fa09fd32..b875c1ef3d32 100644
+index 99264a64780c..522e3e549c8d 100644
 --- a/arch/arm/Kconfig
 +++ b/arch/arm/Kconfig
-@@ -1309,6 +1309,15 @@ config TARGET_CORSTONE1000
+@@ -1338,6 +1338,15 @@ config TARGET_CORSTONE1000
  	select PL01X_SERIAL
  	select DM
  
@@ -45,7 +45,7 @@  index cac4fa09fd32..b875c1ef3d32 100644
  config TARGET_TOTAL_COMPUTE
  	bool "Support Total Compute Platform"
  	select ARM64
-@@ -2264,6 +2273,7 @@ source "board/bosch/shc/Kconfig"
+@@ -2294,6 +2303,7 @@ source "board/bosch/shc/Kconfig"
  source "board/bosch/guardian/Kconfig"
  source "board/Marvell/octeontx/Kconfig"
  source "board/Marvell/octeontx2/Kconfig"
@@ -87,7 +87,7 @@  index 000000000000..6598fdd3ae0d
 +obj-y := corstone500.o
 diff --git a/board/armltd/corstone500/corstone500.c b/board/armltd/corstone500/corstone500.c
 new file mode 100644
-index 000000000000..e878f5c6a521
+index 000000000000..19ec5564291f
 --- /dev/null
 +++ b/board/armltd/corstone500/corstone500.c
 @@ -0,0 +1,48 @@
@@ -107,7 +107,7 @@  index 000000000000..e878f5c6a521
 +static const struct pl01x_serial_plat serial_platdata = {
 +	.base = V2M_UART0,
 +	.type = TYPE_PL011,
-+	.clock = CONFIG_PL011_CLOCK,
++	.clock = CFG_PL011_CLOCK,
 +};
 +
 +U_BOOT_DRVINFO(corstone500_serials) = {
@@ -188,10 +188,10 @@  index 000000000000..91661beb8d8d
 +CONFIG_OF_LIBFDT=y
 diff --git a/include/configs/corstone500.h b/include/configs/corstone500.h
 new file mode 100644
-index 000000000000..416f5fa4399d
+index 000000000000..555e0e44e432
 --- /dev/null
 +++ b/include/configs/corstone500.h
-@@ -0,0 +1,102 @@
+@@ -0,0 +1,103 @@
 +/* SPDX-License-Identifier: GPL-2.0+ */
 +/*
 + * (C) Copyright 2022 ARM Limited
@@ -250,7 +250,7 @@  index 000000000000..416f5fa4399d
 +
 +/* PL011 Serial Configuration */
 +#define CONFIG_CONS_INDEX	0
-+#define CONFIG_PL011_CLOCK	7500000
++#define CFG_PL011_CLOCK		7500000
 +
 +/* Physical Memory Map */
 +#define PHYS_SDRAM_1		(V2M_BASE)
@@ -260,11 +260,11 @@  index 000000000000..416f5fa4399d
 +#define PHYS_SDRAM_1_SIZE	(0x80000000 - DRAM_SEC_SIZE)
 +
 +/* Miscellaneous configurable options */
-+#define CONFIG_SYS_SDRAM_BASE	PHYS_SDRAM_1
++#define CFG_SYS_SDRAM_BASE	PHYS_SDRAM_1
 +
 +#define CONFIG_SYS_MMIO_TIMER
 +
-+#define CONFIG_EXTRA_ENV_SETTINGS     \
++#define CFG_EXTRA_ENV_SETTINGS     \
 +				"kernel_name=Image\0"           \
 +				"kernel_addr=0x80f00000\0"      \
 +				"initrd_name=ramdisk.img\0"     \
@@ -280,7 +280,8 @@  index 000000000000..416f5fa4399d
 +				"bootz $kernel_addr $initrd_addr:0x800000 $fdt_addr"
 +
 +/* Monitor Command Prompt */
-+#define CONFIG_SYS_FLASH_BASE		0x80000000
++#define CFG_SYS_FLASH_BASE		0x80000000
++
 +/* Store environment at top of flash */
 +#define CONFIG_ENV_ADDR			0x0a7c0000
 +#define CONFIG_ENV_SECT_SIZE		0x0040000
@@ -294,6 +295,3 @@  index 000000000000..416f5fa4399d
 +#define FLASH_MAX_SECTOR_SI		0x00040000
 +#define CONFIG_ENV_IS_IN_FLASH		1
 +#endif
--- 
-2.39.1
-