mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-02 13:30:09 +00:00
arm-bsp/corstone500: upgrade u-boot to the latest
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>
This commit is contained in:
@@ -25,7 +25,7 @@ SERIAL_CONSOLES = "115200;ttyAMA0"
|
|||||||
UBOOT_MACHINE = "corstone500_defconfig"
|
UBOOT_MACHINE = "corstone500_defconfig"
|
||||||
UBOOT_IMAGE_ENTRYPOINT = "0x84000000"
|
UBOOT_IMAGE_ENTRYPOINT = "0x84000000"
|
||||||
UBOOT_IMAGE_LOADADDRESS = "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
|
# making sure EXTRA_IMAGEDEPENDS will be used while creating the image
|
||||||
WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}"
|
WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}"
|
||||||
|
|||||||
+8
-27
@@ -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>
|
From: Rui Miguel Silva <rui.silva@linaro.org>
|
||||||
Date: Wed, 18 Dec 2019 21:52:34 +0000
|
Date: Wed, 18 Dec 2019 21:52:34 +0000
|
||||||
Subject: [PATCH 1/2] armv7: adding generic timer access through MMIO
|
Subject: [PATCH] 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>
|
|
||||||
|
|
||||||
This driver enables the ARMv7 generic timer.
|
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: Rui Miguel Silva <rui.silva@linaro.org>
|
||||||
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
|
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
|
||||||
|
|
||||||
|
Upstream-Status: Pending [Not submitted to upstream yet]
|
||||||
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
|
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
|
||||||
---
|
---
|
||||||
arch/arm/cpu/armv7/Makefile | 1 +
|
arch/arm/cpu/armv7/Makefile | 1 +
|
||||||
arch/arm/cpu/armv7/mmio_timer.c | 75 +++++++++++++++++++++++++++++++++
|
arch/arm/cpu/armv7/mmio_timer.c | 75 +++++++++++++++++++++++++++++++++
|
||||||
scripts/config_whitelist.txt | 1 +
|
2 files changed, 76 insertions(+)
|
||||||
3 files changed, 77 insertions(+)
|
|
||||||
create mode 100644 arch/arm/cpu/armv7/mmio_timer.c
|
create mode 100644 arch/arm/cpu/armv7/mmio_timer.c
|
||||||
|
|
||||||
diff --git a/arch/arm/cpu/armv7/Makefile b/arch/arm/cpu/armv7/Makefile
|
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
|
--- a/arch/arm/cpu/armv7/Makefile
|
||||||
+++ b/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_IPROC) += iproc-common/
|
||||||
obj-$(CONFIG_KONA) += kona-common/
|
|
||||||
obj-$(CONFIG_SYS_ARCH_TIMER) += arch_timer.o
|
obj-$(CONFIG_SYS_ARCH_TIMER) += arch_timer.o
|
||||||
+obj-$(CONFIG_SYS_MMIO_TIMER) += mmio_timer.o
|
+obj-$(CONFIG_SYS_MMIO_TIMER) += mmio_timer.o
|
||||||
|
|
||||||
@@ -122,18 +118,3 @@ index 000000000000..edd806e06e42
|
|||||||
+{
|
+{
|
||||||
+ return gd->arch.timer_rate_hz;
|
+ 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
|
|
||||||
|
|
||||||
|
|||||||
+19
-21
@@ -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>
|
From: Rui Miguel Silva <rui.silva@linaro.org>
|
||||||
Date: Wed, 8 Jan 2020 09:48:11 +0000
|
Date: Wed, 8 Jan 2020 09:48:11 +0000
|
||||||
Subject: [PATCH 2/2] board: arm: add corstone500 board
|
Subject: [PATCH] board: arm: add corstone500 board
|
||||||
|
|
||||||
Upstream-Status: Pending [Not submitted to upstream yet]
|
|
||||||
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
|
|
||||||
|
|
||||||
Add support for the Arm corstone500 platform, with a cortex-a5
|
Add support for the Arm corstone500 platform, with a cortex-a5
|
||||||
chip, add the default configuration, initialization and
|
chip, add the default configuration, initialization and
|
||||||
makefile for this system.
|
makefile for this system.
|
||||||
|
|
||||||
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
|
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 +++
|
arch/arm/Kconfig | 10 +++
|
||||||
board/armltd/corstone500/Kconfig | 12 +++
|
board/armltd/corstone500/Kconfig | 12 +++
|
||||||
board/armltd/corstone500/Makefile | 8 ++
|
board/armltd/corstone500/Makefile | 8 ++
|
||||||
board/armltd/corstone500/corstone500.c | 48 ++++++++++++
|
board/armltd/corstone500/corstone500.c | 48 ++++++++++++
|
||||||
configs/corstone500_defconfig | 41 ++++++++++
|
configs/corstone500_defconfig | 41 ++++++++++
|
||||||
include/configs/corstone500.h | 102 +++++++++++++++++++++++++
|
include/configs/corstone500.h | 103 +++++++++++++++++++++++++
|
||||||
6 files changed, 221 insertions(+)
|
6 files changed, 222 insertions(+)
|
||||||
create mode 100644 board/armltd/corstone500/Kconfig
|
create mode 100644 board/armltd/corstone500/Kconfig
|
||||||
create mode 100644 board/armltd/corstone500/Makefile
|
create mode 100644 board/armltd/corstone500/Makefile
|
||||||
create mode 100644 board/armltd/corstone500/corstone500.c
|
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
|
create mode 100644 include/configs/corstone500.h
|
||||||
|
|
||||||
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
|
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
|
||||||
index cac4fa09fd32..b875c1ef3d32 100644
|
index 99264a64780c..522e3e549c8d 100644
|
||||||
--- a/arch/arm/Kconfig
|
--- a/arch/arm/Kconfig
|
||||||
+++ b/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 PL01X_SERIAL
|
||||||
select DM
|
select DM
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ index cac4fa09fd32..b875c1ef3d32 100644
|
|||||||
config TARGET_TOTAL_COMPUTE
|
config TARGET_TOTAL_COMPUTE
|
||||||
bool "Support Total Compute Platform"
|
bool "Support Total Compute Platform"
|
||||||
select ARM64
|
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/bosch/guardian/Kconfig"
|
||||||
source "board/Marvell/octeontx/Kconfig"
|
source "board/Marvell/octeontx/Kconfig"
|
||||||
source "board/Marvell/octeontx2/Kconfig"
|
source "board/Marvell/octeontx2/Kconfig"
|
||||||
@@ -87,7 +87,7 @@ index 000000000000..6598fdd3ae0d
|
|||||||
+obj-y := corstone500.o
|
+obj-y := corstone500.o
|
||||||
diff --git a/board/armltd/corstone500/corstone500.c b/board/armltd/corstone500/corstone500.c
|
diff --git a/board/armltd/corstone500/corstone500.c b/board/armltd/corstone500/corstone500.c
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000000..e878f5c6a521
|
index 000000000000..19ec5564291f
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/board/armltd/corstone500/corstone500.c
|
+++ b/board/armltd/corstone500/corstone500.c
|
||||||
@@ -0,0 +1,48 @@
|
@@ -0,0 +1,48 @@
|
||||||
@@ -107,7 +107,7 @@ index 000000000000..e878f5c6a521
|
|||||||
+static const struct pl01x_serial_plat serial_platdata = {
|
+static const struct pl01x_serial_plat serial_platdata = {
|
||||||
+ .base = V2M_UART0,
|
+ .base = V2M_UART0,
|
||||||
+ .type = TYPE_PL011,
|
+ .type = TYPE_PL011,
|
||||||
+ .clock = CONFIG_PL011_CLOCK,
|
+ .clock = CFG_PL011_CLOCK,
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+U_BOOT_DRVINFO(corstone500_serials) = {
|
+U_BOOT_DRVINFO(corstone500_serials) = {
|
||||||
@@ -188,10 +188,10 @@ index 000000000000..91661beb8d8d
|
|||||||
+CONFIG_OF_LIBFDT=y
|
+CONFIG_OF_LIBFDT=y
|
||||||
diff --git a/include/configs/corstone500.h b/include/configs/corstone500.h
|
diff --git a/include/configs/corstone500.h b/include/configs/corstone500.h
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000000..416f5fa4399d
|
index 000000000000..555e0e44e432
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/include/configs/corstone500.h
|
+++ b/include/configs/corstone500.h
|
||||||
@@ -0,0 +1,102 @@
|
@@ -0,0 +1,103 @@
|
||||||
+/* SPDX-License-Identifier: GPL-2.0+ */
|
+/* SPDX-License-Identifier: GPL-2.0+ */
|
||||||
+/*
|
+/*
|
||||||
+ * (C) Copyright 2022 ARM Limited
|
+ * (C) Copyright 2022 ARM Limited
|
||||||
@@ -250,7 +250,7 @@ index 000000000000..416f5fa4399d
|
|||||||
+
|
+
|
||||||
+/* PL011 Serial Configuration */
|
+/* PL011 Serial Configuration */
|
||||||
+#define CONFIG_CONS_INDEX 0
|
+#define CONFIG_CONS_INDEX 0
|
||||||
+#define CONFIG_PL011_CLOCK 7500000
|
+#define CFG_PL011_CLOCK 7500000
|
||||||
+
|
+
|
||||||
+/* Physical Memory Map */
|
+/* Physical Memory Map */
|
||||||
+#define PHYS_SDRAM_1 (V2M_BASE)
|
+#define PHYS_SDRAM_1 (V2M_BASE)
|
||||||
@@ -260,11 +260,11 @@ index 000000000000..416f5fa4399d
|
|||||||
+#define PHYS_SDRAM_1_SIZE (0x80000000 - DRAM_SEC_SIZE)
|
+#define PHYS_SDRAM_1_SIZE (0x80000000 - DRAM_SEC_SIZE)
|
||||||
+
|
+
|
||||||
+/* Miscellaneous configurable options */
|
+/* 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_SYS_MMIO_TIMER
|
||||||
+
|
+
|
||||||
+#define CONFIG_EXTRA_ENV_SETTINGS \
|
+#define CFG_EXTRA_ENV_SETTINGS \
|
||||||
+ "kernel_name=Image\0" \
|
+ "kernel_name=Image\0" \
|
||||||
+ "kernel_addr=0x80f00000\0" \
|
+ "kernel_addr=0x80f00000\0" \
|
||||||
+ "initrd_name=ramdisk.img\0" \
|
+ "initrd_name=ramdisk.img\0" \
|
||||||
@@ -280,7 +280,8 @@ index 000000000000..416f5fa4399d
|
|||||||
+ "bootz $kernel_addr $initrd_addr:0x800000 $fdt_addr"
|
+ "bootz $kernel_addr $initrd_addr:0x800000 $fdt_addr"
|
||||||
+
|
+
|
||||||
+/* Monitor Command Prompt */
|
+/* Monitor Command Prompt */
|
||||||
+#define CONFIG_SYS_FLASH_BASE 0x80000000
|
+#define CFG_SYS_FLASH_BASE 0x80000000
|
||||||
|
+
|
||||||
+/* Store environment at top of flash */
|
+/* Store environment at top of flash */
|
||||||
+#define CONFIG_ENV_ADDR 0x0a7c0000
|
+#define CONFIG_ENV_ADDR 0x0a7c0000
|
||||||
+#define CONFIG_ENV_SECT_SIZE 0x0040000
|
+#define CONFIG_ENV_SECT_SIZE 0x0040000
|
||||||
@@ -294,6 +295,3 @@ index 000000000000..416f5fa4399d
|
|||||||
+#define FLASH_MAX_SECTOR_SI 0x00040000
|
+#define FLASH_MAX_SECTOR_SI 0x00040000
|
||||||
+#define CONFIG_ENV_IS_IN_FLASH 1
|
+#define CONFIG_ENV_IS_IN_FLASH 1
|
||||||
+#endif
|
+#endif
|
||||||
--
|
|
||||||
2.39.1
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user