uboot-mvebu: add support for espressobin
[openwrt/staging/yousong.git] / package / boot / uboot-mvebu / patches / 131-arm64-dts-armada-3720-espressobin-use-Linux-model-co.patch
1 From 753947e2c374820dcbc9c86626812aeb7d460653 Mon Sep 17 00:00:00 2001
2 From: Andre Heider <a.heider@gmail.com>
3 Date: Fri, 4 Sep 2020 16:34:22 +0200
4 Subject: [PATCH] arm64: dts: armada-3720-espressobin: use Linux
5 model/compatible strings
6
7 Fix the actual board vendor and ease synching dts files from Linux.
8 ---
9 arch/arm/dts/armada-3720-espressobin.dts | 4 ++--
10 board/Marvell/mvebu_armada-37xx/board.c | 4 ++--
11 2 files changed, 4 insertions(+), 4 deletions(-)
12
13 --- a/arch/arm/dts/armada-3720-espressobin.dts
14 +++ b/arch/arm/dts/armada-3720-espressobin.dts
15 @@ -50,8 +50,8 @@
16 #include "armada-372x.dtsi"
17
18 / {
19 - model = "Marvell Armada 3720 Community Board ESPRESSOBin";
20 - compatible = "marvell,armada-3720-espressobin", "marvell,armada3720", "marvell,armada3710";
21 + model = "Globalscale Marvell ESPRESSOBin Board";
22 + compatible = "globalscale,espressobin", "marvell,armada3720", "marvell,armada3710";
23
24 chosen {
25 stdout-path = "serial0:115200n8";
26 --- a/board/Marvell/mvebu_armada-37xx/board.c
27 +++ b/board/Marvell/mvebu_armada-37xx/board.c
28 @@ -201,7 +201,7 @@ static int mii_multi_chip_mode_write(str
29 /* Bring-up board-specific network stuff */
30 int board_network_enable(struct mii_dev *bus)
31 {
32 - if (!of_machine_is_compatible("marvell,armada-3720-espressobin"))
33 + if (!of_machine_is_compatible("globalscale,espressobin"))
34 return 0;
35
36 /*
37 @@ -253,7 +253,7 @@ int ft_board_setup(void *blob, struct bd
38 int part_off;
39
40 /* Fill SPI MTD partitions for Linux kernel on Espressobin */
41 - if (!of_machine_is_compatible("marvell,armada-3720-espressobin"))
42 + if (!of_machine_is_compatible("globalscale,espressobin"))
43 return 0;
44
45 spi_off = fdt_node_offset_by_compatible(blob, -1, "jedec,spi-nor");