aboutsummaryrefslogtreecommitdiff
path: root/target/linux/mvebu/patches-6.1
diff options
context:
space:
mode:
authorTobias Schramm <tobias@t-sys.eu>2024-02-26 12:47:29 +0100
committerChristian Lamparter <chunkeey@gmail.com>2024-03-02 14:21:20 +0100
commit336a531c15e7fa5f8a42a7b9f2662c249aafce89 (patch)
tree1aeca52573c3d4c96f6c36872e95dac88d39e71b /target/linux/mvebu/patches-6.1
parent1ed01ef606192ca7900b90bc81c4374bbdd5d786 (diff)
mvebu: add support for SolidRun ClearFog Pro
The SolidRun ClearFog Pro is a router based on the SolidRun CN9130 SOM. Specs: - SoC: Quad-Core Cortex-A72 CN9130 SoC - RAM: 4GiB DDR4 - Serial: Micro-USB port on front (FT232R, 115200 8n1) - Storage: 8GiB eMMC, microSD card slot, 8MiB SPI NOR flash - Ethernet: 7x GbE (1 port dedicated on SoC, 6 port switch with single GbE CPU port) - SFP: 1x SFP+ - USB: 1x USB-A 3.1 Gen 1 - PCIe: 2x mini PCIe (one slot with USB and SIM card socket) - SATA: 1x M.2 Key-B In addition to the usual connectivity options this device also features an internal mikroBUS expansion connector. SATA is currently untested due to lack of a suitable M.2 SSD. Installation ============ 1. Write sdcard sysupgrade image to microSD card using dd or similar 2. Insert microSD card into router and apply power 3. Device boots into OpenWRT 4. (optional) dd sysupgrade image to /dev/mmcblk0 to install to eMMC Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
Diffstat (limited to 'target/linux/mvebu/patches-6.1')
-rw-r--r--target/linux/mvebu/patches-6.1/000-cpufreq-armada-8k-add-ap807-support.patch9
-rw-r--r--target/linux/mvebu/patches-6.1/701-mvpp2-read-mac-address-from-nvmem.patch27
2 files changed, 29 insertions, 7 deletions
diff --git a/target/linux/mvebu/patches-6.1/000-cpufreq-armada-8k-add-ap807-support.patch b/target/linux/mvebu/patches-6.1/000-cpufreq-armada-8k-add-ap807-support.patch
index cacc65e7c0..354d262015 100644
--- a/target/linux/mvebu/patches-6.1/000-cpufreq-armada-8k-add-ap807-support.patch
+++ b/target/linux/mvebu/patches-6.1/000-cpufreq-armada-8k-add-ap807-support.patch
@@ -18,8 +18,6 @@ Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/armada-8k-cpufreq.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
-diff --git a/drivers/cpufreq/armada-8k-cpufreq.c b/drivers/cpufreq/armada-8k-cpufreq.c
-index b0fc5e84f857..8afefdea4d80 100644
--- a/drivers/cpufreq/armada-8k-cpufreq.c
+++ b/drivers/cpufreq/armada-8k-cpufreq.c
@@ -21,6 +21,13 @@
@@ -36,7 +34,7 @@ index b0fc5e84f857..8afefdea4d80 100644
/*
* Setup the opps list with the divider for the max frequency, that
* will be filled at runtime.
-@@ -127,7 +134,8 @@ static int __init armada_8k_cpufreq_init(void)
+@@ -127,7 +134,8 @@ static int __init armada_8k_cpufreq_init
struct device_node *node;
struct cpumask cpus;
@@ -46,7 +44,7 @@ index b0fc5e84f857..8afefdea4d80 100644
if (!node || !of_device_is_available(node)) {
of_node_put(node);
return -ENODEV;
-@@ -204,12 +212,6 @@ static void __exit armada_8k_cpufreq_exit(void)
+@@ -204,12 +212,6 @@ static void __exit armada_8k_cpufreq_exi
}
module_exit(armada_8k_cpufreq_exit);
@@ -59,6 +57,3 @@ index b0fc5e84f857..8afefdea4d80 100644
MODULE_AUTHOR("Gregory Clement <gregory.clement@bootlin.com>");
MODULE_DESCRIPTION("Armada 8K cpufreq driver");
MODULE_LICENSE("GPL");
---
-2.43.2
-
diff --git a/target/linux/mvebu/patches-6.1/701-mvpp2-read-mac-address-from-nvmem.patch b/target/linux/mvebu/patches-6.1/701-mvpp2-read-mac-address-from-nvmem.patch
new file mode 100644
index 0000000000..1c4194776a
--- /dev/null
+++ b/target/linux/mvebu/patches-6.1/701-mvpp2-read-mac-address-from-nvmem.patch
@@ -0,0 +1,27 @@
+From: Tobias Schramm <tobias@t-sys.eu>
+Subject: mvpp2: support fetching mac address from nvmem
+
+The mvpp2 driver did not query nvmem for hardware mac addresses. This
+patch adds querying of mac addresses stored in nvmem cells as a further
+fallback option before assigning a random address.
+Purposely added separately to fwnode_get_mac_address() above to maintain
+existing behaviour with builtin adapter mac address still taking
+precedence.
+
+Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
+---
+--- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
++++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+@@ -6134,6 +6134,12 @@ static void mvpp2_port_copy_mac_addr(str
+ }
+ }
+
++ if (!of_get_mac_address(to_of_node(fwnode), hw_mac_addr)) {
++ *mac_from = "nvmem cell";
++ eth_hw_addr_set(dev, hw_mac_addr);
++ return;
++ }
++
+ *mac_from = "random";
+ eth_hw_addr_random(dev);
+ }