Source: u-boot
Severity: wishlist
Tags: patch

The part adding a defconfig is forwarded to the u-boot mailing list
and is here for information.  Once it has been applied upstream, the
other parts should be sufficient to enable the pinetab in Debian.
>From cc1e13e7956e0a6720ff479eb3e86823c664eb3a Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nico...@debian.org>
Date: Wed, 17 Feb 2021 18:45:27 +0100
Subject: [PATCH 2/2] Add support for the pinetab platform

The patch adding a defconfig has been forwarded to u-boot upstream.
---
 debian/bin/u-boot-install-sunxi               |  1 +
 .../0001-configs-add-PineTab-defconfig.patch  | 29 +++++++++++++++++++
 debian/patches/series                         |  2 ++
 debian/targets                                |  3 ++
 4 files changed, 35 insertions(+)
 create mode 100644 debian/patches/pinetab/0001-configs-add-PineTab-defconfig.patch

diff --git a/debian/bin/u-boot-install-sunxi b/debian/bin/u-boot-install-sunxi
index 7e5d1087d8..8be14dbf3d 100755
--- a/debian/bin/u-boot-install-sunxi
+++ b/debian/bin/u-boot-install-sunxi
@@ -10,6 +10,7 @@ if [ -z "$TARGET" ] && [ -f "${dtmodel}" ]; then
 	case "$dtmodelname" in
 		Pinebook) TARGET="/usr/lib/u-boot/pinebook" ;;
 		"Pine64 PinePhone (1."[12]")") TARGET='/usr/lib/u-boot/pinephone' ;;
+		PineTab) TARGET="/usr/lib/u-boot/pinetab" ;;
 		Pine64+) TARGET="/usr/lib/u-boot/pine64_plus" ;;
 		"Pine64 LTS") TARGET="/usr/lib/u-boot/pine64-lts" ;;
 		"Olimex A20-OLinuXino-LIME2") TARGET="/usr/lib/u-boot/A20-OLinuXino-Lime2"; itbfiles= ;;
diff --git a/debian/patches/pinetab/0001-configs-add-PineTab-defconfig.patch b/debian/patches/pinetab/0001-configs-add-PineTab-defconfig.patch
new file mode 100644
index 0000000000..03b9c32f33
--- /dev/null
+++ b/debian/patches/pinetab/0001-configs-add-PineTab-defconfig.patch
@@ -0,0 +1,29 @@
+From 2c346cacb4b0841051bceb27a57058020860ab8b Mon Sep 17 00:00:00 2001
+From: Arnaud Ferraris <arnaud.ferra...@gmail.com>
+Date: Wed, 2 Sep 2020 09:53:50 +0200
+Subject: [PATCH] configs: add PineTab defconfig
+
+--- /dev/null
++++ b/configs/pinetab_defconfig
+@@ -0,0 +1,21 @@
++CONFIG_ARM=y
++CONFIG_ARCH_SUNXI=y
++CONFIG_SPL=y
++CONFIG_IDENT_STRING=""
++CONFIG_MACH_SUN50I=y
++CONFIG_SUNXI_DRAM_LPDDR3_STOCK=y
++CONFIG_DRAM_CLK=552
++CONFIG_DRAM_ZQ=3881949
++CONFIG_MMC_SUNXI_SLOT_EXTRA=2
++# CONFIG_VIDEO_DE2 is not set
++CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-pinetab"
++# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
++CONFIG_BOOTDELAY=0
++CONFIG_SYS_CONSOLE_INFO_QUIET=y
++# CONFIG_DISPLAY_CPUINFO is not set
++# CONFIG_DISPLAY_BOARDINFO is not set
++# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
++# CONFIG_SPL_BANNER_PRINT is not set
++# CONFIG_SPL_POWER_SUPPORT is not set
++# CONFIG_NET is not set
++# CONFIG_EFI_LOADER is not set
diff --git a/debian/patches/series b/debian/patches/series
index 6e737632d3..745b81bf22 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -19,3 +19,5 @@ riscv64/qemu-riscv64_smode-sifive-fu540-fix-extlinux-define-.patch
 n900/bootz_and_raw_initrd.patch
 
 rk3399/disable-preboot
+
+pinetab/0001-configs-add-PineTab-defconfig.patch
diff --git a/debian/targets b/debian/targets
index a2855f6daf..04c5b31978 100644
--- a/debian/targets
+++ b/debian/targets
@@ -259,6 +259,9 @@ arm64	sunxi		pinebook	/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin u-boot.b
 # Arnaud Ferraris <arnaud.ferra...@collabora.com> (1.1, 1.2)
 arm64	sunxi		pinephone	/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin u-boot.bin spl/sunxi-spl.bin u-boot-nodtb.bin arch/arm/dts/sun50i-a64-pinephone-1.1.dtb arch/arm/dts/sun50i-a64-pinephone-1.2.dtb u-boot-sunxi-with-spl.fit.itb
 
+# Arnaud Ferraris <arnaud.ferra...@collabora.com>
+arm64	sunxi		pinetab		/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin u-boot.bin spl/sunxi-spl.bin u-boot-nodtb.bin arch/arm/dts/sun50i-a64-pinetab.dtb u-boot-sunxi-with-spl.fit.itb
+
 # Jonas Smedegaard <d...@jones.dk>
 arm64	sunxi		teres_i		/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin u-boot.bin spl/sunxi-spl.bin u-boot-nodtb.bin arch/arm/dts/sun50i-a64-teres-i.dtb u-boot-sunxi-with-spl.fit.itb
 
-- 
2.30.0

Reply via email to