Skip to contentSkip to conversation

board: armltd: Add support for Total Compute platform

PATCH Superseded Usama Arif 2 participants 4 messages Aug 12, 2020 – Aug 25, 2020 Arm (32-bit)

lore
Share & tools
lore

Usama Arif

author
#0 lore raw

PATCH v3 1/1 board: armltd: Add support for Total Compute platform

Total Compute is based on ARM architecture and has the following features enabled in u-boot:
- PL011 UART
- PL180 MMC
- NOR Flash
- FIT image with Signature
- AVB

---
Changes for v2:
- Added arch/arm/dts/total_compute.dts to board/armltd/total_compute/MAINTAINERS
- Added bootm_size of 512 MB for total compute board.

Changes for v3:
- Removed fdt_high and initrd_high to allow relocation

 arch/arm/Kconfig                           | 11 +++
 arch/arm/dts/Makefile                      |  2 +
 arch/arm/dts/total_compute.dts             | 48 ++++++++++++
 arch/arm/include/asm/gpio.h                |  2 +-
 board/armltd/total_compute/Kconfig         | 12 +++
 board/armltd/total_compute/MAINTAINERS     |  7 ++
 board/armltd/total_compute/Makefile        |  6 ++
 board/armltd/total_compute/total_compute.c | 67 ++++++++++++++++
 configs/total_compute_defconfig            | 53 +++++++++++++
 include/configs/total_compute.h            | 89 ++++++++++++++++++++++
 10 files changed, 296 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/total_compute.dts
 create mode 100644 board/armltd/total_compute/Kconfig
 create mode 100644 board/armltd/total_compute/MAINTAINERS
 create mode 100644 board/armltd/total_compute/Makefile
 create mode 100644 board/armltd/total_compute/total_compute.c
 create mode 100644 configs/total_compute_defconfig
 create mode 100644 include/configs/total_compute.h
arch/arm/Kconfig +11 -0
index 6b8a32c38d..20ae4af9c2 100644
@@ -1195,6 +1195,15 @@ config TARGET_VEXPRESS64_JUNO
 	select USB
 	select DM_USB
 
+config TARGET_TOTAL_COMPUTE
+	bool "Support Total Compute Platform"
+	select ARM64
+	select PL01X_SERIAL
+	select DM
+	select DM_SERIAL
+	select DM_MMC
+	select DM_GPIO
+
 config TARGET_LS2080A_EMU
 	bool "Support ls2080a_emu"
 	select ARCH_LS2080A
@@ -1893,6 +1902,8 @@ source "arch/arm/mach-imx/Kconfig"
 
 source "arch/arm/mach-nexell/Kconfig"
 
+source "board/armltd/total_compute/Kconfig"
+
 source "board/bosch/shc/Kconfig"
 source "board/bosch/guardian/Kconfig"
 source "board/CarMediaLab/flea3/Kconfig"
arch/arm/dts/Makefile +2 -0
index 8ecf63e988..5fc0840c5a 100644
@@ -978,6 +978,8 @@ dtb-$(CONFIG_TARGET_VEXPRESS_CA5X2) += vexpress-v2p-ca5s.dtb
 dtb-$(CONFIG_TARGET_VEXPRESS_CA9X4) += vexpress-v2p-ca9.dtb
 dtb-$(CONFIG_TARGET_VEXPRESS_CA15_TC2) += vexpress-v2p-ca15_a7.dtb
 
+dtb-$(CONFIG_TARGET_TOTAL_COMPUTE) += total_compute.dtb
+
 dtb-$(CONFIG_TARGET_DURIAN) += phytium-durian.dtb
 
 dtb-$(CONFIG_TARGET_PRESIDIO_ASIC) += ca-presidio-engboard.dtb
arch/arm/dts/total_compute.dts new file +48 -0

48 lines not on this page · raw message

arch/arm/include/asm/gpio.h +1 -1
index 7dc87afb83..6ecb876eda 100644
@@ -3,7 +3,7 @@
 	!defined(CONFIG_ARCH_BCM6858) && !defined(CONFIG_ARCH_BCM63158) && \
 	!defined(CONFIG_ARCH_ROCKCHIP) && !defined(CONFIG_ARCH_ASPEED) && \
 	!defined(CONFIG_ARCH_U8500) && !defined(CONFIG_CORTINA_PLATFORM) && \
-	!defined(CONFIG_TARGET_BCMNS3)
+	!defined(CONFIG_TARGET_BCMNS3) && !defined(CONFIG_TARGET_TOTAL_COMPUTE)
 #include <asm/arch/gpio.h>
 #endif
 #include <asm-generic/gpio.h>
board/armltd/total_compute/Kconfig new file +12 -0
new file mode 100644
index 0000000000..62e6e6f4ac
@@ -0,0 +1,12 @@
+if TARGET_TOTAL_COMPUTE
+
+config SYS_BOARD
+	default "total_compute"
+
+config SYS_VENDOR
+	default "armltd"
+
+config SYS_CONFIG_NAME
+	default "total_compute"
+
+endif
board/armltd/total_compute/MAINTAINERS new file +7 -0
new file mode 100644
index 0000000000..3dc1cd188a
@@ -0,0 +1,7 @@
+TOTAL_COMPUTE BOARD
+M:	Usama Arif <[email protected]>
+S:	Maintained
+F:	board/armltd/total_compute/
+F:	include/configs/total_compute.h
+F:	configs/total_compute_defconfig
+F:	arch/arm/dts/total_compute.dts
board/armltd/total_compute/Makefile new file +6 -0
new file mode 100644
index 0000000000..8b10458431
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# (C) Copyright 2020 Arm Limited
+# Usama Arif <[email protected]>
+
+obj-y	:= total_compute.o
board/armltd/total_compute/total_compute.c new file +67 -0

67 lines not on this page · raw message

configs/total_compute_defconfig new file +53 -0

53 lines not on this page · raw message

include/configs/total_compute.h new file +89 -0

89 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/1 board: armltd: Add support for Total Compute platform

Quoted 9 lines · Usama Arif

Total Compute is based on ARM architecture and has the following features enabled in u-boot:
- PL011 UART
- PL180 MMC
- NOR Flash
- FIT image with Signature
- AVB

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200812/2de71d5f/attachment.sig>
author
#2 lore raw

PATCH v3 1/1 board: armltd: Add support for Total Compute platform

Quoted 10 lines · Tom Rini
Quoted 8 lines · Usama Arif

Total Compute is based on ARM architecture and has the following features enabled in u-boot:
- PL011 UART
- PL180 MMC
- NOR Flash
- FIT image with Signature
- AVB

Quoted 4 lines
Quoted 1 line

Hi,

Thanks for the review!

I am not completely sure about the review cycle in u-boot and just wanted to check if there was something required from my side to get this patch as well as patch [1/2] (avb: Make AVB independent of fastboot) merged in u-boot/master?

Thanks,
Usama

#3 lore raw

PATCH v3 1/1 board: armltd: Add support for Total Compute platform

In reply to Usama Arif
Quoted 10 lines · Usama Arif

Total Compute is based on ARM architecture and has the following features enabled in u-boot:
- PL011 UART
- PL180 MMC
- NOR Flash
- FIT image with Signature
- AVB

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200825/409afe24/attachment.sig>