summaryrefslogtreecommitdiff
path: root/kernels/linux-libre-arm64/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-08 19:37:35 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-08 19:47:50 +0100
commit3d00a8089ed6fd5875be75733adc2da3768ba252 (patch)
tree5ed74e627f761c0054ae4bbc71185c380f6806f6 /kernels/linux-libre-arm64/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch
parentb8dd027e7c1b4103263135b75537d7117792ac8e (diff)
downloadabslibre-3d00a8089ed6fd5875be75733adc2da3768ba252.tar.gz
abslibre-3d00a8089ed6fd5875be75733adc2da3768ba252.tar.bz2
abslibre-3d00a8089ed6fd5875be75733adc2da3768ba252.zip
kernels: add linux-libre-aarch64
Some System On a Chip (SOC) have 64bit ARM CPUs that are also capable of running arm 32bit applications. Since: - Parabola doesn't have an aarch64 package repository yet - The devicetree of devices using such System On a Chip are not compiled when using the armv7 defconfig - Drivers or other platform support code for such hardware might also not be compiled in with the armv7 defconfig - This approach has already been tested with the linux-libre-x86_64 kenrel It's then a good idea to add support for such devices by adding an arrch64 kernel as the maintenance and work is minimal. The downside is that the external kernel modules that are either compiled against the kernel or using DKMS will not work by default. It's however still possible to compile them by hand by using ARCH= and CROSS_COMPILE= as it is done for this kernel, so it should be relatively easy to add support for the non-dkms modules. As for DKMS, someone would need to look into it to understand how to pass it the make flags (ARCH= and CROSS_COMPILE=) that are required to automatically build modules. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'kernels/linux-libre-arm64/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch')
-rw-r--r--kernels/linux-libre-arm64/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/kernels/linux-libre-arm64/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch b/kernels/linux-libre-arm64/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch
new file mode 100644
index 000000000..074903c47
--- /dev/null
+++ b/kernels/linux-libre-arm64/0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch
@@ -0,0 +1,51 @@
+From 88f69b1dcdda406ba9e4c6ad51f0577623d238b1 Mon Sep 17 00:00:00 2001
+From: Willy Tarreau <w@xxxxxx>
+Date: Sun, 2 Dec 2012 19:59:28 +0100
+Subject: [PATCH 1/9] ARM: atags: add support for Marvell's u-boot
+
+Marvell uses a specific atag in its u-boot which includes among other
+information the MAC addresses for up to 4 network interfaces.
+
+Signed-off-by: Willy Tarreau <w@xxxxxx>
+---
+ arch/arm/include/uapi/asm/setup.h | 17 +++++++++++++++++
+ 1 file changed, 17 insertions(+)
+
+diff --git a/arch/arm/include/uapi/asm/setup.h b/arch/arm/include/uapi/asm/setup.h
+index 25ceda63b284..83578c54975b 100644
+--- a/arch/arm/include/uapi/asm/setup.h
++++ b/arch/arm/include/uapi/asm/setup.h
+@@ -144,6 +144,18 @@ struct tag_memclk {
+ __u32 fmemclk;
+ };
+
++/* Marvell uboot parameters */
++#define ATAG_MV_UBOOT 0x41000403
++struct tag_mv_uboot {
++ __u32 uboot_version;
++ __u32 tclk;
++ __u32 sysclk;
++ __u32 isUsbHost;
++ __u8 macAddr[4][6];
++ __u16 mtu[4];
++ __u32 nand_ecc;
++};
++
+ struct tag {
+ struct tag_header hdr;
+ union {
+@@ -166,6 +178,11 @@ struct tag {
+ * DC21285 specific
+ */
+ struct tag_memclk memclk;
++
++ /*
++ * Marvell specific
++ */
++ struct tag_mv_uboot mv_uboot;
+ } u;
+ };
+
+--
+2.23.0
+