Skip to contentSkip to conversation

Generic powerpc fixes and NXP board cleanup

PATCH Superseded Michael Walle 3 participants 15 messages Apr 29 – May 6

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Generic powerpc fixes and NXP board cleanup

While working on an ancient P2041 based board, I've encountered several issues.

cpu_init_r wasn't called anymore, but u-boot was still somehow working. CAAM was reading/writing on address 0 because pamu_init() is never called if secure boot isn't enabled.

Since legacy ethernet was removed, board_eth_init() and fdt_fixup_board_enet() won't be called anymore, but the functions are still defined. I've just removed the ones for the NXP boards, though I think the code there did something useful. But given that it wasn't called for two years now and nobody complained, it can't be that important.

Lastly, because I have a p2041rdb, move that to a upstream DTS. Keep in mind, that the uboot dts doesn't define an UART, so any output was broken since the move to DM provided serial support.

Michael Walle (10):
powerpc: fix call to cpu_init_r
caam: don't write memory at 0 on PPC
spi: fsl_espi: fix read transactions
boards: remove dead fman code
boards/nxp: remove board_eth_init()
boards/nxp: remove empty fdt_fixup_board_enet()
p2041rdb: use the upstream device tree
p2041rdb: support SDcard boot
p2041rdb: update README and fix typos
p2041rdb: remove NAND defconfig

 arch/powerpc/cpu/mpc85xx/cpu_init.c           |   4 +-
 arch/powerpc/dts/p2041.dtsi                   | 138 ----
 arch/powerpc/dts/p2041rdb-u-boot.dtsi         |  19 +
 arch/powerpc/dts/p2041rdb.dts                 | 127 ---
 arch/powerpc/dts/p2041si-post.dtsi            |  43 --
 board/nxp/ls1012afrdm/eth.c                   |  10 -
 board/nxp/ls1012ardb/eth.c                    |  12 -
 board/nxp/ls1021atsn/ls1021atsn.c             |   5 -
 board/nxp/ls1021atwr/ls1021atwr.c             |   5 -
 board/nxp/ls1028a/ls1028a.c                   |   5 -
 board/nxp/ls1043aqds/Makefile                 |   3 -
 board/nxp/ls1043aqds/eth.c                    | 501 ------------
 board/nxp/ls1043aqds/ls1043aqds.c             |   4 -
 board/nxp/ls1043ardb/Makefile                 |   1 -
 board/nxp/ls1043ardb/eth.c                    |  77 --
 board/nxp/ls1046afrwy/eth.c                   |  57 --
 board/nxp/ls1046aqds/Makefile                 |   3 -
 board/nxp/ls1046aqds/eth.c                    | 431 -----------
 board/nxp/ls1046aqds/ls1046aqds.c             |   4 -
 board/nxp/ls1046ardb/eth.c                    |  71 --
 board/nxp/ls2080ardb/eth_ls2080rdb.c          |  19 -
 board/nxp/lx2160a/eth_lx2160aqds.c            |  18 -
 board/nxp/lx2160a/eth_lx2160ardb.c            |  17 -
 board/nxp/lx2160a/eth_lx2162aqds.c            |  18 -
 board/nxp/m5253demo/m5253demo.c               |   7 -
 board/nxp/mx6sxsabreauto/mx6sxsabreauto.c     |  52 --
 board/nxp/mx6sxsabresd/mx6sxsabresd.c         |  78 --
 board/nxp/p2041rdb/Makefile                   |   1 -
 board/nxp/p2041rdb/README                     |  34 +-
 board/nxp/p2041rdb/eth.c                      | 210 -----
 board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg        |  11 +
 ...{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} |   0
 board/nxp/t102xrdb/Makefile                   |   1 -
 board/nxp/t102xrdb/eth_t102xrdb.c             | 149 ----
 board/nxp/t102xrdb/t102xrdb.c                 |   1 -
 board/nxp/t102xrdb/t102xrdb.h                 |   1 -
 board/nxp/t104xrdb/Makefile                   |   1 -
 board/nxp/t104xrdb/eth.c                      |  91 ---
 board/nxp/t104xrdb/t104xrdb.h                 |   1 -
 board/nxp/t208xqds/Makefile                   |   2 +-
 board/nxp/t208xqds/eth_t208xqds.c             | 723 ------------------
 board/nxp/t208xrdb/eth_t208xrdb.c             |   5 -
 board/nxp/t208xrdb/t208xrdb.c                 |   1 -
 board/nxp/t208xrdb/t208xrdb.h                 |   1 -
 board/nxp/t4rdb/Makefile                      |   1 -
 board/nxp/t4rdb/eth.c                         | 152 ----
 board/nxp/t4rdb/t4240rdb.c                    |   1 -
 board/nxp/t4rdb/t4rdb.h                       |   1 -
 common/board_r.c                              |   2 +-
 configs/P2041RDB_NAND_defconfig               | 117 ---
 configs/P2041RDB_SDCARD_defconfig             |   3 +-
 configs/P2041RDB_SPIFLASH_defconfig           |   6 +-
 configs/P2041RDB_defconfig                    |   4 +-
 drivers/spi/fsl_espi.c                        |   6 +-
 include/configs/P2041RDB.h                    |   2 +
 55 files changed, 61 insertions(+), 3196 deletions(-)
 delete mode 100644 arch/powerpc/dts/p2041.dtsi
 create mode 100644 arch/powerpc/dts/p2041rdb-u-boot.dtsi
 delete mode 100644 arch/powerpc/dts/p2041rdb.dts
 delete mode 100644 arch/powerpc/dts/p2041si-post.dtsi
 delete mode 100644 board/nxp/ls1043aqds/eth.c
 delete mode 100644 board/nxp/ls1043ardb/eth.c
 delete mode 100644 board/nxp/ls1046aqds/eth.c
 delete mode 100644 board/nxp/p2041rdb/eth.c
 create mode 100644 board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg
 rename board/nxp/p2041rdb/{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} (100%)
 delete mode 100644 board/nxp/t102xrdb/eth_t102xrdb.c
 delete mode 100644 board/nxp/t104xrdb/eth.c
 delete mode 100644 board/nxp/t208xqds/eth_t208xqds.c
 delete mode 100644 board/nxp/t4rdb/eth.c
 delete mode 100644 configs/P2041RDB_NAND_defconfig
Signature · 1 line
2.47.3
#1 lore raw

PATCH 1/10 powerpc: fix call to cpu_init_r

Commit 6c171f7a184c ("common: board: make initcalls static") broke the call to cpu_init_r. That is because PPC is already defined to 1, see:

powerpc-linux-gnu-gcc -dM -E - < /dev/null

This will conflict with the CONFIG_IS_ENABLED(PPC). Change it to IS_ENABLED(CONFIG_PPC).

Fixes 6c171f7a184c ("common: board: make initcalls static")
---
 common/board_r.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/board_r.c +1 -1
index 5d37345ca09..9b6ba9d8e56 100644
@@ -687,7 +687,7 @@ static void initcall_run_r(void)
 	INITCALL(initr_flash);
 #endif
 	WATCHDOG_RESET();
-#if CONFIG_IS_ENABLED(PPC) || CONFIG_IS_ENABLED(M68K) || CONFIG_IS_ENABLED(X86)
+#if IS_ENABLED(CONFIG_PPC) || CONFIG_IS_ENABLED(M68K) || CONFIG_IS_ENABLED(X86)
 	/* initialize higher level parts of CPU like time base and timers */
 	INITCALL(cpu_init_r);
 #endif
Signature · 1 line
2.47.3
#2 lore raw

PATCH 2/10 caam: don't write memory at 0 on PPC

In reply to Michael Walle

For non-secure boot environments pamu_init() isn't called but the CAAM will still call sec_config_pamu_table() -> config_pamu() which then uses an uninitialized ppaact variable. In fact, that variable is initialized with 0, so the config_pamu() will happily assume the structure is there and will operate on that memory. Call pamu_init() in the non-secure boot case, too.

---
 arch/powerpc/cpu/mpc85xx/cpu_init.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/cpu/mpc85xx/cpu_init.c +3 -1
index 739d14f8002..478ab648948 100644
@@ -41,8 +41,8 @@
 #ifdef CONFIG_FSL_CAAM
 #include <fsl_sec.h>
 #endif
-#if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)
 #include <asm/fsl_pamu.h>
+#if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)
 #include <fsl_secboot_err.h>
 #endif
 #ifdef CONFIG_SYS_QE_FMAN_FW_IN_NAND
@@ -899,6 +899,8 @@ int cpu_init_r(void)
 #if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)
 	if (pamu_init() < 0)
 		fsl_secboot_handle_error(ERROR_ESBC_PAMU_INIT);
+#else
+	pamu_init();
 #endif
 
 #ifdef CONFIG_FSL_CAAM
Signature · 1 line
2.47.3
#3 lore raw

Re: [PATCH 02/10] caam: don't write memory at 0 on PPC

Quoted 27 lines · Michael Walle

For non-secure boot environments pamu_init() isn't called but the CAAM will still call sec_config_pamu_table() -> config_pamu() which then uses an uninitialized ppaact variable. In fact, that variable is initialized with 0, so the config_pamu() will happily assume the structure is there and will operate on that memory. Call pamu_init() in the non-secure boot case, too.

---
arch/powerpc/cpu/mpc85xx/cpu_init.c | 4 +++-

1 file changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/cpu/mpc85xx/cpu_init.c +1 -1
index 739d14f8002..478ab648948 100644
@@ -41,8 +41,8 @@
 #ifdef CONFIG_FSL_CAAM
 #include <fsl_sec.h>
 #endif
-#if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)
 #include <asm/fsl_pamu.h>
+#if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)
 #include <fsl_secboot_err.h>
 #endif
 #ifdef CONFIG_SYS_QE_FMAN_FW_IN_NAND

arch/powerpc/cpu/mpc85xx/cpu_init.c int cpu_init_r(void) · line 906

Quoted 8 lines
arch/powerpc/cpu/mpc85xx/cpu_init.c +2 -0
@@ -899,6 +899,8 @@ int cpu_init_r(void)
 #if defined(CONFIG_NXP_ESBC) && defined(CONFIG_FSL_CORENET)
 	if (pamu_init() < 0)
 		fsl_secboot_handle_error(ERROR_ESBC_PAMU_INIT);
+#else
+	pamu_init();
 #endif
 
 #ifdef CONFIG_FSL_CAAM

Seems this patch causes build error:
powerpc: + qemu-ppce500
+powerpc-linux-ld: arch/powerpc/cpu/mpc85xx/cpu_init.o: in function `cpu_init_r':
+arch/powerpc/cpu/mpc85xx/cpu_init.c:903:(.text.cpu_init_r+0x18): undefined reference to `pamu_init' +make[1]: *** [Makefile:2109: u-boot] Error 1
+make: *** [Makefile:189: __sub-make] Error 2
0 0 1 /1 qemu-ppce500

Regards
Peng

Quoted 4 lines
Signature · 1 line
2.47.3
#4 lore raw

PATCH 3/10 spi: fsl_espi: fix read transactions

In reply to Michael Walle

Since commit 7917c2e35604 ("spi: fsl_espi: fix din offset") MTD is basically broken because any read transaction will get wrong data. While the commit in question will fix simple transfers (where both SPI_XFER_BEGIN and SPI_XFER_END is set), it will break the most common case, where opcode and address is send first and then data comes as a second transfer.

This basically reverts commit 7917c2e35604 ("spi: fsl_espi: fix din offset") and make the fix particular for this simple case. Instead of providing two buffers for reading and writing, just malloc one which is used for both. This will work because the data is first written on the SPI bus and then it will be read (and overwite the written data) into the same buffer.

Fixes 7917c2e35604 ("spi: fsl_espi: fix din offset")
---
 drivers/spi/fsl_espi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/spi/fsl_espi.c +3 -3
index 117e36376b7..c5bc603b5c0 100644
@@ -216,13 +216,13 @@ int espi_xfer(struct fsl_spi_slave *fsl,  uint cs, unsigned int bitlen,
 		break;
 	case SPI_XFER_BEGIN | SPI_XFER_END:
 		len = data_len;
-		buffer = (unsigned char *)malloc(len * 2);
+		buffer = (unsigned char *)malloc(len);
 		if (!buffer) {
 			debug("SF: Failed to malloc memory.\n");
 			return 1;
 		}
 		memcpy(buffer, data_out, len);
-		rx_offset = len;
+		rx_offset = 0;
 		cmd_len = 0;
 		break;
 	}
@@ -275,7 +275,7 @@ int espi_xfer(struct fsl_spi_slave *fsl,  uint cs, unsigned int bitlen,
 			}
 		}
 		if (data_in) {
-			memcpy(data_in, buffer + rx_offset, tran_len);
+			memcpy(data_in, buffer + 2 * cmd_len, tran_len);
 			if (*buffer == 0x0b) {
 				data_in += tran_len;
 				data_len -= tran_len;
Signature · 1 line
2.47.3
#5 lore raw

PATCH 4/10 boards: remove dead fman code

In reply to Michael Walle

Commit cc2bf624eb71 ("net: fm: Remove non-DM_ETH code") removed the call to board_ft_fman_fixup_port(). Thus remove the dead code in the board files.

I'm not sure, all that DT shenanigans are covered by the new DM-version of the fman code, but it seems no one complained for the past 4 years.

---
 board/nxp/ls1043aqds/eth.c        |  99 -------------
 board/nxp/ls1046aqds/eth.c        |  81 -----------
 board/nxp/p2041rdb/eth.c          |  70 ----------
 board/nxp/t102xrdb/eth_t102xrdb.c |  15 --
 board/nxp/t208xqds/eth_t208xqds.c | 225 ------------------------------
 5 files changed, 490 deletions(-)
board/nxp/ls1043aqds/eth.c +0 -99
index 5a8ca27b327..5680fd2d377 100644
@@ -159,105 +159,6 @@ static int ls1043aqds_mdio_init(char *realbusname, u8 muxval)
 	return mdio_register(bus);
 }
 
-void board_ft_fman_fixup_port(void *fdt, char *compat, phys_addr_t addr,
-			      enum fm_port port, int offset)
-{
-	struct fixed_link f_link;
-
-	if (fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_SGMII) {
-		if (port == FM1_DTSEC9) {
-			fdt_set_phy_handle(fdt, compat, addr,
-					   "sgmii-riser-s1-p1");
-		} else if (port == FM1_DTSEC2) {
-			fdt_set_phy_handle(fdt, compat, addr,
-					   "sgmii-riser-s2-p1");
-		} else if (port == FM1_DTSEC5) {
-			fdt_set_phy_handle(fdt, compat, addr,
-					   "sgmii-riser-s3-p1");
-		} else if (port == FM1_DTSEC6) {
-			fdt_set_phy_handle(fdt, compat, addr,
-					   "sgmii-riser-s4-p1");
-		}
-	} else if (fm_info_get_enet_if(port) ==
-		   PHY_INTERFACE_MODE_2500BASEX) {
-		/* 2.5G SGMII interface */
-		f_link.phy_id = cpu_to_fdt32(port);
-		f_link.duplex = cpu_to_fdt32(1);
-		f_link.link_speed = cpu_to_fdt32(1000);
-		f_link.pause = 0;
-		f_link.asym_pause = 0;
-		/* no PHY for 2.5G SGMII */
-		fdt_delprop(fdt, offset, "phy-handle");
-		fdt_setprop(fdt, offset, "fixed-link", &f_link, sizeof(f_link));
-		fdt_setprop_string(fdt, offset, "phy-connection-type",
-				   "2500base-x");
-	} else if (fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_QSGMII) {
-		switch (mdio_mux[port]) {
-		case EMI1_SLOT1:
-			switch (port) {
-			case FM1_DTSEC1:
-				fdt_set_phy_handle(fdt, compat, addr,
-						   "qsgmii-s1-p1");
-				break;
-			case FM1_DTSEC2:
-				fdt_set_phy_handle(fdt, compat, addr,
-						   "qsgmii-s1-p2");
-				break;
-			case FM1_DTSEC5:
-				fdt_set_phy_handle(fdt, compat, addr,
-						   "qsgmii-s1-p3");
-				break;
-			case FM1_DTSEC6:
-				fdt_set_phy_handle(fdt, compat, addr,
-						   "qsgmii-s1-p4");
-				break;
-			default:
-				break;
-			}
-			break;
-		case EMI1_SLOT2:
-			switch (port) {
-			case FM1_DTSEC1:
-				fdt_set_phy_handle(fdt, compat, addr,
-						   "qsgmii-s2-p1");
-				break;
-			case FM1_DTSEC2:
-				fdt_set_phy_handle(fdt, compat, addr,
-						   "qsgmii-s2-p2");
-				break;
-			case FM1_DTSEC5:
-				fdt_set_phy_handle(fdt, compat, addr,
-						   "qsgmii-s2-p3");
-				break;
-			case FM1_DTSEC6:
-				fdt_set_phy_handle(fdt, compat, addr,
-						   "qsgmii-s2-p4");
-				break;
-			default:
-				break;
-			}
-			break;
-		default:
-			break;
-		}
-		fdt_delprop(fdt, offset, "phy-connection-type");
-		fdt_setprop_string(fdt, offset, "phy-connection-type",
-				   "qsgmii");
-	} else if (fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_XGMII &&
-		   port == FM1_10GEC1) {
-		/* 10GBase-R interface */
-		f_link.phy_id = cpu_to_fdt32(port);
-		f_link.duplex = cpu_to_fdt32(1);
-		f_link.link_speed = cpu_to_fdt32(10000);
-		f_link.pause = 0;
-		f_link.asym_pause = 0;
-		/* no PHY for 10GBase-R */
-		fdt_delprop(fdt, offset, "phy-handle");
-		fdt_setprop(fdt, offset, "fixed-link", &f_link, sizeof(f_link));
-		fdt_setprop_string(fdt, offset, "phy-connection-type", "xgmii");
-	}
-}
-
 void fdt_fixup_board_enet(void *fdt)
 {
 	int i;
board/nxp/ls1046aqds/eth.c +0 -81

87 lines not on this page · raw message

board/nxp/p2041rdb/eth.c +0 -70

76 lines not on this page · raw message

board/nxp/t102xrdb/eth_t102xrdb.c +0 -15
index 7185a0abd52..91f87983dc5 100644
@@ -129,21 +129,6 @@ int board_eth_init(struct bd_info *bis)
 	return pci_eth_init(bis);
 }
 
-void board_ft_fman_fixup_port(void *fdt, char *compat, phys_addr_t addr,
-			      enum fm_port port, int offset)
-{
-#if defined(CONFIG_TARGET_T1024RDB)
-	if (((fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_2500BASEX) ||
-	     (fm_info_get_enet_if(port) == PHY_INTERFACE_MODE_SGMII)) &&
-			(port == FM1_DTSEC3)) {
-		fdt_set_phy_handle(fdt, compat, addr, "sg_2500_aqr105_phy4");
-		fdt_setprop_string(fdt, offset, "phy-connection-type",
-				   "2500base-x");
-		fdt_status_disabled_by_alias(fdt, "xg_aqr105_phy3");
-	}
-#endif
-}
-
 void fdt_fixup_board_enet(void *fdt)
 {
 }
board/nxp/t208xqds/eth_t208xqds.c +0 -225

231 lines not on this page · raw message

Signature · 1 line
2.47.3
#6 lore raw

PATCH 5/10 boards/nxp: remove board_eth_init()

In reply to Michael Walle

board_eth_init() is dead code since commit e524f3a449f5 ("net: Remove eth_legacy.c"). Remove it.

I'm not sure, all the shenanigans are covered by the new DM-version. The MDIO mux and iomux controls probably are. The fman configuration probably isn't. OTOH, nobody cared for years and the called fm_info_set_phy_address() was also removed years ago.

This also removes fdt_fixup_board_enet() for the ls1043a and ls1046a because it relies on the local variable "mdio_mux" being initialized by the board_eth_init().

---
 board/nxp/ls1012afrdm/eth.c               |  10 -
 board/nxp/ls1012ardb/eth.c                |  12 -
 board/nxp/ls1021atsn/ls1021atsn.c         |   5 -
 board/nxp/ls1021atwr/ls1021atwr.c         |   5 -
 board/nxp/ls1028a/ls1028a.c               |   5 -
 board/nxp/ls1043aqds/eth.c                | 391 ------------------
 board/nxp/ls1043ardb/Makefile             |   1 -
 board/nxp/ls1043ardb/eth.c                |  77 ----
 board/nxp/ls1046afrwy/eth.c               |  57 ---
 board/nxp/ls1046aqds/eth.c                | 339 ----------------
 board/nxp/ls1046ardb/eth.c                |  71 ----
 board/nxp/ls2080ardb/eth_ls2080rdb.c      |  19 -
 board/nxp/lx2160a/eth_lx2160aqds.c        |  18 -
 board/nxp/lx2160a/eth_lx2160ardb.c        |  17 -
 board/nxp/lx2160a/eth_lx2162aqds.c        |  18 -
 board/nxp/m5253demo/m5253demo.c           |   7 -
 board/nxp/mx6sxsabreauto/mx6sxsabreauto.c |  52 ---
 board/nxp/mx6sxsabresd/mx6sxsabresd.c     |  78 ----
 board/nxp/p2041rdb/Makefile               |   1 -
 board/nxp/p2041rdb/eth.c                  | 140 -------
 board/nxp/t102xrdb/eth_t102xrdb.c         | 103 -----
 board/nxp/t104xrdb/Makefile               |   1 -
 board/nxp/t104xrdb/eth.c                  |  91 -----
 board/nxp/t208xqds/eth_t208xqds.c         | 460 ----------------------
 board/nxp/t4rdb/eth.c                     | 115 ------
 25 files changed, 2093 deletions(-)
 delete mode 100644 board/nxp/ls1043ardb/eth.c
 delete mode 100644 board/nxp/p2041rdb/eth.c
 delete mode 100644 board/nxp/t104xrdb/eth.c
board/nxp/ls1012afrdm/eth.c +0 -10
index c431e5e611b..8761ec7845e 100644
@@ -7,16 +7,6 @@
 #include <dm.h>
 #include <net.h>
 #include <asm/io.h>
-#include <netdev.h>
-#include <fm_eth.h>
-#include <fsl_mdio.h>
-#include <malloc.h>
-#include <asm/types.h>
-#include <fsl_dtsec.h>
-#include <asm/arch/soc.h>
-#include <asm/arch-fsl-layerscape/config.h>
-#include <asm/arch-fsl-layerscape/immap_lsch2.h>
-#include <asm/arch/fsl_serdes.h>
 #include <linux/delay.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <dm/platform_data/pfe_dm_eth.h>
board/nxp/ls1012ardb/eth.c +0 -12
index 71cb2988a56..6a6f4608fd1 100644
@@ -6,18 +6,6 @@
 
 #include <config.h>
 #include <dm.h>
-#include <net.h>
-#include <asm/io.h>
-#include <netdev.h>
-#include <fm_eth.h>
-#include <fsl_mdio.h>
-#include <malloc.h>
-#include <asm/types.h>
-#include <fsl_dtsec.h>
-#include <asm/arch/soc.h>
-#include <asm/arch-fsl-layerscape/config.h>
-#include <asm/arch-fsl-layerscape/immap_lsch2.h>
-#include <asm/arch/fsl_serdes.h>
 #include <linux/delay.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <dm/platform_data/pfe_dm_eth.h>
board/nxp/ls1021atsn/ls1021atsn.c +0 -5
index c92430c0896..277506fdbb8 100644
@@ -123,11 +123,6 @@ int dram_init(void)
 	return 0;
 }
 
-int board_eth_init(struct bd_info *bis)
-{
-	return pci_eth_init(bis);
-}
-
 int board_early_init_f(void)
 {
 	struct ccsr_scfg *scfg = (struct ccsr_scfg *)CFG_SYS_FSL_SCFG_ADDR;
board/nxp/ls1021atwr/ls1021atwr.c +0 -5
index 0758e5eae25..135497f7c5d 100644
@@ -239,11 +239,6 @@ int dram_init(void)
 	return 0;
 }
 
-int board_eth_init(struct bd_info *bis)
-{
-	return pci_eth_init(bis);
-}
-
 #if !defined(CONFIG_QSPI_BOOT) && !defined(CONFIG_SD_BOOT_QSPI)
 static void convert_serdes_mux(int type, int need_reset)
 {
board/nxp/ls1028a/ls1028a.c +0 -5
index db94d9c1fa8..007125358bd 100644
@@ -103,11 +103,6 @@ int board_init(void)
 	return 0;
 }
 
-int board_eth_init(struct bd_info *bis)
-{
-	return pci_eth_init(bis);
-}
-
 #ifdef CONFIG_MISC_INIT_R
 int misc_init_r(void)
 {
board/nxp/ls1043aqds/eth.c +0 -391

399 lines not on this page · raw message

board/nxp/ls1043ardb/Makefile +0 -1
index 95745bf3a9c..13e0411c1ba 100644
@@ -5,6 +5,5 @@
 obj-y += ddr.o
 obj-y += ls1043ardb.o
 ifndef CONFIG_XPL_BUILD
-obj-$(CONFIG_NET) += eth.o
 obj-y += cpld.o
 endif
board/nxp/ls1043ardb/eth.c deleted +0 -77

77 lines not on this page · raw message

board/nxp/ls1046afrwy/eth.c +0 -57

64 lines not on this page · raw message

board/nxp/ls1046aqds/eth.c +0 -339

347 lines not on this page · raw message

board/nxp/ls1046ardb/eth.c +0 -71

78 lines not on this page · raw message

board/nxp/ls2080ardb/eth_ls2080rdb.c +0 -19
index 7d5beb32417..6a8859fd0c5 100644
@@ -9,25 +9,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int board_eth_init(struct bd_info *bis)
-{
-
-#if defined(CONFIG_PHY_AQUANTIA) && !defined(CONFIG_XPL_BUILD)
-	/*
-	 * Export functions to be used by AQ firmware
-	 * upload application
-	 */
-	gd->jt->strcpy = strcpy;
-	gd->jt->mdelay = mdelay;
-	gd->jt->mdio_get_current_dev = mdio_get_current_dev;
-	gd->jt->phy_find_by_mask = phy_find_by_mask;
-	gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
-	gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
-#endif
-
-	return 0;
-}
-
 #if defined(CONFIG_RESET_PHY_R)
 void reset_phy(void)
 {
board/nxp/lx2160a/eth_lx2160aqds.c +0 -18
index 9939bb6f89e..4c16f565b69 100644
@@ -11,24 +11,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int board_eth_init(struct bd_info *bis)
-{
-#ifdef CONFIG_PHY_AQUANTIA
-	/*
-	 * Export functions to be used by AQ firmware
-	 * upload application
-	 */
-	gd->jt->strcpy = strcpy;
-	gd->jt->mdelay = mdelay;
-	gd->jt->mdio_get_current_dev = mdio_get_current_dev;
-	gd->jt->phy_find_by_mask = phy_find_by_mask;
-	gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
-	gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
-#endif
-
-	return 0;
-}
-
 #if defined(CONFIG_RESET_PHY_R)
 void reset_phy(void)
 {
board/nxp/lx2160a/eth_lx2160ardb.c +0 -17
index 90e7c9100e1..31bbac6310e 100644
@@ -11,23 +11,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int board_eth_init(struct bd_info *bis)
-{
-#ifdef CONFIG_PHY_AQUANTIA
-	/*
-	 * Export functions to be used by AQ firmware
-	 * upload application
-	 */
-	gd->jt->strcpy = strcpy;
-	gd->jt->mdelay = mdelay;
-	gd->jt->mdio_get_current_dev = mdio_get_current_dev;
-	gd->jt->phy_find_by_mask = phy_find_by_mask;
-	gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
-	gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
-#endif
-	return pci_eth_init(bis);
-}
-
 #if defined(CONFIG_RESET_PHY_R)
 void reset_phy(void)
 {
board/nxp/lx2160a/eth_lx2162aqds.c +0 -18
index 805aa705be9..81b81d47978 100644
@@ -11,24 +11,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int board_eth_init(struct bd_info *bis)
-{
-#ifdef CONFIG_PHY_AQUANTIA
-	/*
-	 * Export functions to be used by AQ firmware
-	 * upload application
-	 */
-	gd->jt->strcpy = strcpy;
-	gd->jt->mdelay = mdelay;
-	gd->jt->mdio_get_current_dev = mdio_get_current_dev;
-	gd->jt->phy_find_by_mask = phy_find_by_mask;
-	gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
-	gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
-#endif
-
-	return 0;
-}
-
 #if defined(CONFIG_RESET_PHY_R)
 void reset_phy(void)
 {
board/nxp/m5253demo/m5253demo.c +0 -7
index 50c5320b55c..7d4b60b283e 100644
@@ -133,10 +133,3 @@ void ide_set_reset(int idereset)
 	}
 }
 #endif				/* CONFIG_IDE */
-
-#ifdef CONFIG_DRIVER_DM9000
-int board_eth_init(struct bd_info *bis)
-{
-	return dm9000_initialize(bis);
-}
-#endif
board/nxp/mx6sxsabreauto/mx6sxsabreauto.c +0 -52

64 lines not on this page · raw message

board/nxp/mx6sxsabresd/mx6sxsabresd.c +0 -78

100 lines not on this page · raw message

board/nxp/p2041rdb/Makefile +0 -1
index ebd0982b5db..5512458832d 100644
@@ -7,4 +7,3 @@
 obj-y	+= p2041rdb.o
 obj-y	+= cpld.o
 obj-y	+= ddr.o
-obj-y	+= eth.o
board/nxp/p2041rdb/eth.c deleted +0 -140

140 lines not on this page · raw message

board/nxp/t102xrdb/eth_t102xrdb.c +0 -103

109 lines not on this page · raw message

board/nxp/t104xrdb/Makefile +0 -1
index 9bca1a1fbcc..cee574aabb9 100644
@@ -7,7 +7,6 @@ obj-y += spl.o
 else
 obj-y	+= t104xrdb.o
 obj-y	+= cpld.o
-obj-y	+= eth.o
 endif
 obj-y	+= ddr.o
 obj-y	+= law.o
board/nxp/t104xrdb/eth.c deleted +0 -91

91 lines not on this page · raw message

board/nxp/t208xqds/eth_t208xqds.c +0 -460

467 lines not on this page · raw message

board/nxp/t4rdb/eth.c +0 -115

118 lines not on this page · raw message

Signature · 1 line
2.47.3
#7 lore raw

PATCH 6/10 boards/nxp: remove empty fdt_fixup_board_enet()

In reply to Michael Walle

Remove any empty function which is just called by the board code. There is no need to define this function at all.

---
 board/nxp/ls1043aqds/Makefile     |  3 ---
 board/nxp/ls1043aqds/eth.c        | 11 ---------
 board/nxp/ls1043aqds/ls1043aqds.c |  4 ----
 board/nxp/ls1046aqds/Makefile     |  3 ---
 board/nxp/ls1046aqds/eth.c        | 11 ---------
 board/nxp/ls1046aqds/ls1046aqds.c |  4 ----
 board/nxp/t102xrdb/Makefile       |  1 -
 board/nxp/t102xrdb/eth_t102xrdb.c | 31 -------------------------
 board/nxp/t102xrdb/t102xrdb.c     |  1 -
 board/nxp/t102xrdb/t102xrdb.h     |  1 -
 board/nxp/t104xrdb/t104xrdb.h     |  1 -
 board/nxp/t208xqds/Makefile       |  2 +-
 board/nxp/t208xqds/eth_t208xqds.c | 38 -------------------------------
 board/nxp/t208xrdb/eth_t208xrdb.c |  5 ----
 board/nxp/t208xrdb/t208xrdb.c     |  1 -
 board/nxp/t208xrdb/t208xrdb.h     |  1 -
 board/nxp/t4rdb/Makefile          |  1 -
 board/nxp/t4rdb/eth.c             | 37 ------------------------------
 board/nxp/t4rdb/t4240rdb.c        |  1 -
 board/nxp/t4rdb/t4rdb.h           |  1 -
 20 files changed, 1 insertion(+), 157 deletions(-)
 delete mode 100644 board/nxp/ls1043aqds/eth.c
 delete mode 100644 board/nxp/ls1046aqds/eth.c
 delete mode 100644 board/nxp/t102xrdb/eth_t102xrdb.c
 delete mode 100644 board/nxp/t208xqds/eth_t208xqds.c
 delete mode 100644 board/nxp/t4rdb/eth.c
board/nxp/ls1043aqds/Makefile +0 -3
index ff830788fd7..98ad49f6f0c 100644
@@ -5,7 +5,4 @@
 #
 
 obj-y += ddr.o
-ifndef CONFIG_XPL_BUILD
-obj-y += eth.o
-endif
 obj-y += ls1043aqds.o
board/nxp/ls1043aqds/eth.c deleted +0 -11
deleted file mode 100644
index d62cf74732c..00000000000
@@ -1,11 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2015 Freescale Semiconductor, Inc.
- * Copyright 2019 NXP
- */
-
-#include <fdt_support.h>
-
-void fdt_fixup_board_enet(void *fdt)
-{
-}
board/nxp/ls1043aqds/ls1043aqds.c +0 -4
index f043599fbb8..0f115c16232 100644
@@ -550,10 +550,6 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 	fdt_fixup_memory_banks(blob, base, size, 2);
 	ft_cpu_setup(blob, bd);
 
-#ifdef CONFIG_FMAN_ENET
-	fdt_fixup_board_enet(blob);
-#endif
-
 	fdt_fixup_icid(blob);
 
 	reg = QIXIS_READ(brdcfg[0]);
board/nxp/ls1046aqds/Makefile +0 -3
index 365247d92bc..8292726b0e4 100644
@@ -5,7 +5,4 @@
 #
 
 obj-y += ddr.o
-ifndef CONFIG_XPL_BUILD
-obj-y += eth.o
-endif
 obj-y += ls1046aqds.o
board/nxp/ls1046aqds/eth.c deleted +0 -11
deleted file mode 100644
index 24e6c93aece..00000000000
@@ -1,11 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2016 Freescale Semiconductor, Inc.
- * Copyright 2018-2020 NXP
- */
-
-#include <fdt_support.h>
-
-void fdt_fixup_board_enet(void *fdt)
-{
-}
board/nxp/ls1046aqds/ls1046aqds.c +0 -4
index 7df12550868..679b0b2235f 100644
@@ -434,10 +434,6 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 	fdt_fixup_memory_banks(blob, base, size, 2);
 	ft_cpu_setup(blob, bd);
 
-#ifdef CONFIG_FMAN_ENET
-	fdt_fixup_board_enet(blob);
-#endif
-
 	fdt_fixup_icid(blob);
 
 	reg = QIXIS_READ(brdcfg[0]);
board/nxp/t102xrdb/Makefile +0 -1
index b0f27c47191..2a360227418 100644
@@ -9,7 +9,6 @@ obj-y	+= spl.o
 else
 obj-y   += t102xrdb.o
 obj-$(CONFIG_TARGET_T1024RDB)   += cpld.o
-obj-y   += eth_t102xrdb.o
 endif
 obj-y   += ddr.o
 obj-y   += law.o
board/nxp/t102xrdb/eth_t102xrdb.c deleted +0 -31
deleted file mode 100644
index a07d242c1eb..00000000000
@@ -1,31 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2014 Freescale Semiconductor, Inc.
- *
- * Shengzhou Liu <[email protected]>
- */
-
-#include <config.h>
-#include <command.h>
-#include <fdt_support.h>
-#include <net.h>
-#include <netdev.h>
-#include <asm/mmu.h>
-#include <asm/processor.h>
-#include <asm/immap_85xx.h>
-#include <asm/fsl_law.h>
-#include <asm/fsl_serdes.h>
-#include <asm/fsl_portals.h>
-#include <asm/fsl_liodn.h>
-#include <malloc.h>
-#include <fm_eth.h>
-#include <fsl_mdio.h>
-#include <miiphy.h>
-#include <phy.h>
-#include <fsl_dtsec.h>
-#include <asm/fsl_serdes.h>
-#include "../common/fman.h"
-
-void fdt_fixup_board_enet(void *fdt)
-{
-}
board/nxp/t102xrdb/t102xrdb.c +0 -1
index 0a29e27b42c..02223497dd3 100644
@@ -207,7 +207,6 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 #ifndef CONFIG_DM_ETH
 	fdt_fixup_fman_ethernet(blob);
 #endif
-	fdt_fixup_board_enet(blob);
 #endif
 
 #ifdef CONFIG_TARGET_T1023RDB
board/nxp/t102xrdb/t102xrdb.h +0 -1
index 33df0f24df8..71e2cfea22e 100644
@@ -6,7 +6,6 @@
 #ifndef __T1024_RDB_H__
 #define __T1024_RDB_H__
 
-void fdt_fixup_board_enet(void *blob);
 void pci_of_setup(void *blob, struct bd_info *bd);
 #ifdef CONFIG_TARGET_T1023RDB
 static u32 t1023rdb_ctrl(u32 ctrl_type);
board/nxp/t104xrdb/t104xrdb.h +0 -1
index 678724c7e2b..5825e69cdb4 100644
@@ -6,7 +6,6 @@
 #ifndef __T104x_RDB_H__
 #define __T104x_RDB_H__
 
-void fdt_fixup_board_enet(void *blob);
 void pci_of_setup(void *blob, struct bd_info *bd);
 
 #endif
board/nxp/t208xqds/Makefile +1 -1
index eb99d921b4a..4bfd2b50d8f 100644
@@ -7,7 +7,7 @@
 ifdef CONFIG_XPL_BUILD
 obj-y += spl.o
 else
-obj-$(CONFIG_TARGET_T2080QDS) += t208xqds.o eth_t208xqds.o
+obj-$(CONFIG_TARGET_T2080QDS) += t208xqds.o
 endif
 
 obj-y   += ddr.o
board/nxp/t208xqds/eth_t208xqds.c deleted +0 -38
deleted file mode 100644
index e6aeb9bb66f..00000000000
@@ -1,38 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2013 Freescale Semiconductor, Inc.
- * Copyright 2020 NXP
- *
- * Shengzhou Liu <[email protected]>
- */
-
-#include <config.h>
-#include <command.h>
-#include <fdt_support.h>
-#include <log.h>
-#include <net.h>
-#include <netdev.h>
-#include <asm/mmu.h>
-#include <asm/processor.h>
-#include <asm/immap_85xx.h>
-#include <asm/fsl_law.h>
-#include <asm/fsl_serdes.h>
-#include <asm/fsl_portals.h>
-#include <asm/fsl_liodn.h>
-#include <malloc.h>
-#include <fm_eth.h>
-#include <fsl_mdio.h>
-#include <miiphy.h>
-#include <phy.h>
-#include <fsl_dtsec.h>
-#include <asm/fsl_serdes.h>
-#include <hwconfig.h>
-#include "../common/qixis.h"
-#include "../common/fman.h"
-#include "t208xqds_qixis.h"
-#include <linux/libfdt.h>
-
-void fdt_fixup_board_enet(void *fdt)
-{
-	return;
-}
board/nxp/t208xrdb/eth_t208xrdb.c +0 -5
index 5223eccb280..c9e415bc446 100644
@@ -93,8 +93,3 @@ void fdt_fixup_board_phy(void *fdt)
 		printf("Unable to rename node ethernet-phy@1: %s\n",
 		       fdt_strerror(ret));
 }
-
-void fdt_fixup_board_enet(void *fdt)
-{
-	return;
-}
board/nxp/t208xrdb/t208xrdb.c +0 -1
index d93edf007ad..d47ec91e7d0 100644
@@ -160,7 +160,6 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
 #ifdef CONFIG_SYS_DPAA_FMAN
 	fdt_fixup_board_fman_ethernet(blob);
-	fdt_fixup_board_enet(blob);
 	fdt_fixup_board_phy(blob);
 #endif
 
board/nxp/t208xrdb/t208xrdb.h +0 -1
index 26998898e82..e800270a0e2 100644
@@ -10,7 +10,6 @@
 #define CORTINA_FW_ADDR_IFCNOR				0xefe00000
 #define CORTINA_FW_ADDR_IFCNOR_ALTBANK		0xebe00000
 
-void fdt_fixup_board_enet(void *blob);
 void pci_of_setup(void *blob, struct bd_info *bd);
 void fdt_fixup_board_fman_ethernet(void *blob);
 void fdt_fixup_board_phy(void *blob);
board/nxp/t4rdb/Makefile +0 -1
index 8d94faaba1c..6d9b8df2fc1 100644
@@ -9,7 +9,6 @@ obj-y	+= spl.o
 else
 obj-$(CONFIG_TARGET_T4240RDB)	+= t4240rdb.o
 obj-y			+= cpld.o
-obj-y			+= eth.o
 endif
 
 obj-y	+= ddr.o
board/nxp/t4rdb/eth.c deleted +0 -37
deleted file mode 100644
index dc2390f1003..00000000000
@@ -1,37 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2014 Freescale Semiconductor, Inc.
- *
- * Chunhe Lan <[email protected]>
- */
-
-#include <config.h>
-#include <command.h>
-#include <fdt_support.h>
-#include <net.h>
-#include <netdev.h>
-#include <asm/mmu.h>
-#include <asm/processor.h>
-#include <asm/cache.h>
-#include <asm/immap_85xx.h>
-#include <asm/fsl_law.h>
-#include <fsl_ddr_sdram.h>
-#include <asm/fsl_serdes.h>
-#include <asm/fsl_portals.h>
-#include <asm/fsl_liodn.h>
-#include <malloc.h>
-#include <fm_eth.h>
-#include <fsl_mdio.h>
-#include <miiphy.h>
-#include <phy.h>
-#include <fsl_dtsec.h>
-#include <asm/fsl_serdes.h>
-#include <hwconfig.h>
-
-#include "../common/fman.h"
-#include "t4rdb.h"
-
-void fdt_fixup_board_enet(void *fdt)
-{
-	return;
-}
board/nxp/t4rdb/t4240rdb.c +0 -1
index 5cacfd27380..11e2c0f78b7 100644
@@ -128,7 +128,6 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 #ifndef CONFIG_DM_ETH
 	fdt_fixup_fman_ethernet(blob);
 #endif
-	fdt_fixup_board_enet(blob);
 #endif
 
 	return 0;
board/nxp/t4rdb/t4rdb.h +0 -1
index bb3ce216d7d..9ec190c03cb 100644
@@ -14,7 +14,6 @@
 #define CORTINA_FW_ADDR_IFCNOR				0xefe00000
 #define CORTINA_FW_ADDR_IFCNOR_ALTBANK		0xebf00000
 
-void fdt_fixup_board_enet(void *blob);
 void pci_of_setup(void *blob, struct bd_info *bd);
 
 #endif
Signature · 1 line
2.47.3
#8 lore raw

PATCH 7/10 p2041rdb: use the upstream device tree

In reply to Michael Walle

Switch to the upstream device tree, which already includes the UART nodes we need for the DM.

We also need to increase malloc area before relocation otherwise you'll get the following error and the board panics:

DRAM: Initializing....using SPD
alloc space exhausted ptr 414 limit 400

---
 arch/powerpc/dts/p2041.dtsi           | 138 --------------------------
 arch/powerpc/dts/p2041rdb-u-boot.dtsi |  19 ++++
 arch/powerpc/dts/p2041rdb.dts         | 127 ------------------------
 arch/powerpc/dts/p2041si-post.dtsi    |  43 --------
 configs/P2041RDB_SPIFLASH_defconfig   |   4 +-
 configs/P2041RDB_defconfig            |   4 +-
 include/configs/P2041RDB.h            |   2 +
 7 files changed, 27 insertions(+), 310 deletions(-)
 delete mode 100644 arch/powerpc/dts/p2041.dtsi
 create mode 100644 arch/powerpc/dts/p2041rdb-u-boot.dtsi
 delete mode 100644 arch/powerpc/dts/p2041rdb.dts
 delete mode 100644 arch/powerpc/dts/p2041si-post.dtsi
arch/powerpc/dts/p2041.dtsi deleted +0 -138
deleted file mode 100644
index ad09b138fc8..00000000000
@@ -1,138 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+ OR X11
-/*
- * P2041 Silicon/SoC Device Tree Source (pre include)
- *
- * Copyright 2011 - 2015 Freescale Semiconductor Inc.
- * Copyright 2019-2020 NXP
- */
-
-/dts-v1/;
-
-/include/ "e500mc_power_isa.dtsi"
-
-/ {
-	compatible = "fsl,P2041";
-	#address-cells = <2>;
-	#size-cells = <2>;
-	interrupt-parent = <&mpic>;
-
-	cpus {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
-		cpu0: PowerPC,e500mc@0 {
-			device_type = "cpu";
-			reg = <0>;
-			fsl,portid-mapping = <0x80000000>;
-		};
-		cpu1: PowerPC,e500mc@1 {
-			device_type = "cpu";
-			reg = <1>;
-			fsl,portid-mapping = <0x40000000>;
-		};
-		cpu2: PowerPC,e500mc@2 {
-			device_type = "cpu";
-			reg = <2>;
-			fsl,portid-mapping = <0x20000000>;
-		};
-		cpu3: PowerPC,e500mc@3 {
-			device_type = "cpu";
-			reg = <3>;
-			fsl,portid-mapping = <0x10000000>;
-		};
-	};
-
-	soc: soc@ffe000000 {
-		ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
-		reg = <0xf 0xfe000000 0 0x00001000>;
-		#address-cells = <1>;
-		#size-cells = <1>;
-		device_type = "soc";
-		compatible = "simple-bus";
-
-		mpic: pic@40000 {
-			interrupt-controller;
-			#address-cells = <0>;
-			#interrupt-cells = <4>;
-			reg = <0x40000 0x40000>;
-			compatible = "fsl,mpic", "chrp,open-pic";
-			device_type = "open-pic";
-			clock-frequency = <0x0>;
-		};
-
-		espi0: spi@110000 {
-			compatible = "fsl,mpc8536-espi";
-			#address-cells = <1>;
-			#size-cells = <0>;
-			reg = <0x110000 0x1000>;
-			fsl,espi-num-chipselects = <4>;
-			status = "disabled";
-		};
-
-		usb0: usb@210000 {
-			compatible = "fsl-usb2-mph";
-			reg = <0x210000 0x1000>;
-			phy_type = "utmi";
-		};
-
-		usb1: usb@211000 {
-			compatible = "fsl-usb2-mph";
-			reg = <0x210000 0x1000>;
-			phy_type = "utmi";
-		};
-
-		sata: sata@220000 {
-			compatible = "fsl,pq-sata-v2";
-			reg = <0x220000 0x1000>;
-			interrupts = <68 0x2 0 0>;
-			sata-offset = <0x1000>;
-			sata-number = <2>;
-			sata-fpdma = <0>;
-		};
-
-		esdhc: esdhc@114000 {
-			compatible = "fsl,esdhc";
-			reg = <0x114000 0x1000>;
-			clock-frequency = <0>;
-		};
-
-		/include/ "qoriq-i2c-0.dtsi"
-		/include/ "qoriq-i2c-1.dtsi"
-	};
-
-	pcie@ffe200000 {
-		compatible = "fsl,pcie-p2041", "fsl,pcie-fsl-qoriq";
-		reg = <0xf 0xfe200000 0x0 0x1000>;   /* registers */
-		law_trgt_if = <0>;
-		#address-cells = <3>;
-		#size-cells = <2>;
-		device_type = "pci";
-		bus-range = <0x0 0xff>;
-		ranges = <0x01000000 0x0 0x00000000 0xf 0xf8000000 0x0 0x00010000   /* downstream I/O */
-			  0x02000000 0x0 0xe0000000 0xc 0x00000000 0x0 0x20000000>; /* non-prefetchable memory */
-	};
-
-	pcie@ffe201000 {
-		compatible = "fsl,pcie-p2041", "fsl,pcie-fsl-qoriq";
-		reg = <0xf 0xfe201000 0x0 0x1000>;   /* registers */
-		law_trgt_if = <1>;
-		#address-cells = <3>;
-		#size-cells = <2>;
-		device_type = "pci";
-		bus-range = <0x0 0xff>;
-		ranges = <0x01000000 0x0 0x00000000 0xf 0xf8010000 0x0 0x00010000   /* downstream I/O */
-			  0x02000000 0x0 0xe0000000 0xc 0x20000000 0x0 0x20000000>; /* non-prefetchable memory */
-	};
-
-	pcie@ffe202000 {
-		compatible = "fsl,pcie-p2041", "fsl,pcie-fsl-qoriq";
-		reg = <0xf 0xfe202000 0x0 0x1000>;   /* registers */
-		law_trgt_if = <2>;
-		#address-cells = <3>;
-		#size-cells = <2>;
-		device_type = "pci";
-		bus-range = <0x0 0xff>;
-		ranges = <0x01000000 0x0 0x00000000 0xf 0xf8020000 0x0 0x00010000   /* downstream I/O */
-			  0x02000000 0x0 0xe0000000 0xc 0x40000000 0x0 0x20000000>; /* non-prefetchable memory */
-	};
-};
arch/powerpc/dts/p2041rdb-u-boot.dtsi new file +19 -0
new file mode 100644
index 00000000000..1dc83cf846b
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+&serial0 {
+	bootph-all;
+};
+
+&soc {
+	i2c@118000 {
+		bootph-all;
+	};
+
+	spi@110000 {
+		flash@0 {
+			spi-max-frequency = <10000000>;
+		};
+	};
+};
+
+#include "u-boot.dtsi"
arch/powerpc/dts/p2041rdb.dts deleted +0 -127

127 lines not on this page · raw message

arch/powerpc/dts/p2041si-post.dtsi deleted +0 -43

43 lines not on this page · raw message

configs/P2041RDB_SPIFLASH_defconfig +3 -1
index 1b7389178be..465b3ee7dc7 100644
@@ -1,11 +1,12 @@
 CONFIG_PPC=y
 CONFIG_TEXT_BASE=0xFFF40000
 CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0x600
 CONFIG_SF_DEFAULT_SPEED=10000000
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x100000
 CONFIG_ENV_SECT_SIZE=0x10000
-CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
+CONFIG_DEFAULT_DEVICE_TREE="fsl/p2041rdb"
 CONFIG_SYS_MONITOR_LEN=786432
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
@@ -56,6 +57,7 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_OF_CONTROL=y
+CONFIG_OF_UPSTREAM=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
configs/P2041RDB_defconfig +3 -1
index b6c28db4f10..9c3e95093bf 100644
@@ -1,10 +1,11 @@
 CONFIG_PPC=y
 CONFIG_TEXT_BASE=0xEFF40000
 CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0x600
 CONFIG_SF_DEFAULT_SPEED=10000000
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
-CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
+CONFIG_DEFAULT_DEVICE_TREE="fsl/p2041rdb"
 CONFIG_SYS_MONITOR_LEN=786432
 CONFIG_ENV_ADDR=0xEFF20000
 CONFIG_MPC85xx=y
@@ -52,6 +53,7 @@ CONFIG_CMD_PING=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_OF_CONTROL=y
+CONFIG_OF_UPSTREAM=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_USE_BOOTFILE=y
include/configs/P2041RDB.h +2 -0
index f88fb9cdb9a..3525e29acc4 100644
@@ -149,6 +149,8 @@
  * shorted - index 1
  */
 
+#define CFG_SYS_NS16550_CLK          (get_bus_freq(0) / 2)
+
 #define CFG_SYS_BAUDRATE_TABLE	\
 	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
Signature · 1 line
2.47.3
#9 lore raw

PATCH 8/10 p2041rdb: support SDcard boot

In reply to Michael Walle

The RCW was just supporting SPI boot. Add a second one for the SDcard boot. While at it, use the same naming scheme as for the other NXP boards.

---
 board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg                | 11 +++++++++++
 .../{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg}        |  0
 configs/P2041RDB_SDCARD_defconfig                     |  3 ++-
 configs/P2041RDB_SPIFLASH_defconfig                   |  2 +-
 4 files changed, 14 insertions(+), 2 deletions(-)
 create mode 100644 board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg
 rename board/nxp/p2041rdb/{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} (100%)
board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg new file +11 -0
new file mode 100644
index 00000000000..f22f3335e73
@@ -0,0 +1,11 @@
+#
+# Default RCW for P2041RDB.
+#
+
+#PBL preamble and RCW header
+aa55aa55 010e0100
+#64 bytes RCW data
+12600000 00000000 241C0000 00000000
+649FA0C1 C3C02000 68000000 40000000
+00000000 00000000 00000000 D0030F07
+00000000 00000000 00000000 00000000
board/nxp/p2041rdb/p2041rdb_rcw_spi.cfg renamed from board/nxp/p2041rdb/rcw_p2041rdb.cfg +0 -0
similarity index 100%
rename from board/nxp/p2041rdb/rcw_p2041rdb.cfg
rename to board/nxp/p2041rdb/p2041rdb_rcw_spi.cfg
configs/P2041RDB_SDCARD_defconfig +2 -1
index ad04e2a1172..02ad42170c9 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_TEXT_BASE=0xFFF40000
 CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0x600
 CONFIG_SF_DEFAULT_SPEED=10000000
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xCF400
@@ -28,7 +29,7 @@ CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SYS_FSL_PBL_PBI="board/nxp/p2041rdb/pbi.cfg"
-CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/rcw_p2041rdb.cfg"
+CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg"
 CONFIG_BOOTDELAY=10
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
configs/P2041RDB_SPIFLASH_defconfig +1 -1
index 465b3ee7dc7..fc187eb311c 100644
@@ -31,7 +31,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_RAMBOOT_PBL=y
 CONFIG_SPIFLASH=y
 CONFIG_SYS_FSL_PBL_PBI="board/nxp/p2041rdb/pbi.cfg"
-CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/rcw_p2041rdb.cfg"
+CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/p2041rdb_rcw_spi.cfg"
 CONFIG_BOOTDELAY=10
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
Signature · 1 line
2.47.3
#10 lore raw

PATCH 9/10 p2041rdb: update README and fix typos

In reply to Michael Walle

Nowadays, u-boot can build the pbl image itself. Refer to that image in the documentation. Also fix some typos.

---
 board/nxp/p2041rdb/README | 34 ++++++++++++----------------------
 1 file changed, 12 insertions(+), 22 deletions(-)
board/nxp/p2041rdb/README +12 -22
index ae770277372..c2a2f0ed9e5 100644
@@ -43,20 +43,16 @@ Boot from SDCard
 	make P2041RDB_SDCARD_config
 	make all
 
-2. Generate PBL imge
-   Use PE tool to produce a image used to be programed to
-   SDCard which contains RCW and U-Boot image.
-
-3. Program the PBL image to SDCard
-	=> tftp 1000000 pbl_sd.bin
-	=> mmcinfo
+2. Program the PBL image to SDCard
+	=> tftp 1000000 u-boot.pbl
+	=> mmc info
 	=> mmc write 1000000 8 672
 
-4. Program FMAN Firmware ucode
+3. Program FMAN Firmware ucode
 	=> tftp 1000000 ucode.bin
 	=> mmc write 1000000 690 10
 
-5. Change DIP-switch
+4. Change DIP-switch
 	SW1[1-5] = 01100
 	Note: 1 stands for 'on', 0 stands for 'off'
 
@@ -66,22 +62,16 @@ Boot from SPI flash
 	make P2041RDB_SPIFLASH_config
 	make all
 
-2. Generate PBL imge
-   Use PE tool to produce a image used to be programed to
-   SPI flash which contains RCW and U-Boot image.
+2. Program the PBL image to SPI flash
+	=> tftp 1000000 u-boot.pbl
+	=> sf probe 0
+	=> sf update $fileaddr 0 $filesize
 
-3. Program the PBL image to SPI flash
-	=> tftp 1000000 pbl_spi.bin
-	=> spi probe 0
-	=> sf erase 0 100000
-	=> sf write 1000000 0 $filesize
-
-4. Program FMAN Firmware ucode
+3. Program FMAN Firmware ucode
 	=> tftp 1000000 ucode.bin
-	=> sf erase 110000 10000
-	=> sf write 1000000 110000 $filesize
+	=> sf update $fileaddr 110000 $filesize
 
-5. Change DIP-switch
+4. Change DIP-switch
 	SW1[1-5] = 10100
 	Note: 1 stands for 'on', 0 stands for 'off'
 
Signature · 1 line
2.47.3
#11 lore raw

Re: [PATCH 09/10] p2041rdb: update README and fix typos

Quoted 7 lines · Michael Walle

Nowadays, u-boot can build the pbl image itself. Refer to that image in the documentation. Also fix some typos.

---
 board/nxp/p2041rdb/README | 34 ++++++++++++----------------------
 1 file changed, 12 insertions(+), 22 deletions(-)

Thanks for getting this all working again. Would you mind doing a follow-up to convert this to rST?

Signature · 1 line
Tom
#12 lore raw

Re: [PATCH 09/10] p2041rdb: update README and fix typos

Quoted 5 lines · Tom Rini
Quoted 3 lines · Michael Walle

Nowadays, u-boot can build the pbl image itself. Refer to that image in the documentation. Also fix some typos.

Quoted 7 lines
Quoted 4 lines
---
 board/nxp/p2041rdb/README | 34 ++++++++++++----------------------
 1 file changed, 12 insertions(+), 22 deletions(-)

Thanks for getting this all working again. Would you mind doing a follow-up to convert this to rST?

Sure, I'll send it either if the series is picked or if there is a new version, I'll include it there.

-michael

#13 lore raw

PATCH 10/10 p2041rdb: remove NAND defconfig

In reply to Michael Walle

The RDB doesn't support NAND boot at all, remove the config for it. Apparently, it was introduced by commit dd84058d24ff ("kconfig: add board Kconfig and defconfig files") which ran some scripts. Maybe that script was wrong or the source boards.cfg was wrong. In any case, there is no NAND flash on the RDB.

---
 configs/P2041RDB_NAND_defconfig | 117 --------------------------------
 1 file changed, 117 deletions(-)
 delete mode 100644 configs/P2041RDB_NAND_defconfig
configs/P2041RDB_NAND_defconfig deleted +0 -117
deleted file mode 100644
index 1bef841990f..00000000000
@@ -1,117 +0,0 @@
-CONFIG_PPC=y
-CONFIG_TEXT_BASE=0xFFF40000
-CONFIG_SYS_MALLOC_LEN=0x100000
-CONFIG_SF_DEFAULT_SPEED=10000000
-CONFIG_ENV_SIZE=0x20000
-CONFIG_ENV_OFFSET=0xE0000
-CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
-CONFIG_SYS_MONITOR_LEN=786432
-CONFIG_MPC85xx=y
-CONFIG_SYS_INIT_RAM_LOCK=y
-CONFIG_SYS_SRIO=y
-CONFIG_SRIO1=y
-CONFIG_SRIO2=y
-CONFIG_SRIO_PCIE_BOOT_MASTER=y
-CONFIG_TARGET_P2041RDB=y
-CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
-CONFIG_ENABLE_36BIT_PHYS=y
-CONFIG_SYS_BOOK3E_HV=y
-CONFIG_SYS_CACHE_STASHING=y
-CONFIG_USE_UBOOTPATH=y
-CONFIG_PCIE1=y
-CONFIG_PCIE2=y
-CONFIG_PCIE3=y
-CONFIG_SYS_FSL_NUM_CC_PLLS=2
-CONFIG_MP=y
-CONFIG_DYNAMIC_SYS_CLK_FREQ=y
-CONFIG_FIT=y
-CONFIG_FIT_VERBOSE=y
-CONFIG_RAMBOOT_PBL=y
-CONFIG_SYS_FSL_PBL_PBI="board/nxp/p2041rdb/pbi.cfg"
-CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/rcw_p2041rdb.cfg"
-CONFIG_BOOTDELAY=10
-CONFIG_OF_BOARD_SETUP=y
-CONFIG_OF_STDOUT_VIA_ALIAS=y
-CONFIG_USE_BOOTCOMMAND=y
-CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/$bdev rw console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
-CONFIG_SYS_PBSIZE=276
-CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_BOARD_EARLY_INIT_R=y
-CONFIG_ID_EEPROM=y
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_IMLS=y
-CONFIG_CMD_GREPENV=y
-CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2
-CONFIG_CMD_DM=y
-CONFIG_CMD_I2C=y
-CONFIG_LOADS_ECHO=y
-CONFIG_SYS_LOADS_BAUD_CHANGE=y
-CONFIG_CMD_MMC=y
-CONFIG_CMD_USB=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_EXT2=y
-CONFIG_CMD_FAT=y
-CONFIG_OF_CONTROL=y
-CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_IN_NAND=y
-CONFIG_ENV_RELOC_GD_ENV_ADDR=y
-CONFIG_USE_BOOTFILE=y
-CONFIG_BOOTFILE="uImage"
-CONFIG_USE_ETHPRIME=y
-CONFIG_ETHPRIME="FM1@DTSEC1"
-CONFIG_USE_ROOTPATH=y
-CONFIG_FSL_SATA_V2=y
-CONFIG_SYS_SATA_MAX_DEVICE=2
-CONFIG_FSL_CAAM=y
-CONFIG_SYS_BR0_PRELIM_BOOL=y
-CONFIG_SYS_BR0_PRELIM=0xFFA00C21
-CONFIG_SYS_OR0_PRELIM=0xFFFC0796
-CONFIG_SYS_BR1_PRELIM_BOOL=y
-CONFIG_SYS_BR1_PRELIM=0xE8001001
-CONFIG_SYS_OR1_PRELIM=0xF8000F85
-CONFIG_SYS_BR3_PRELIM_BOOL=y
-CONFIG_SYS_BR3_PRELIM=0xFFDF0801
-CONFIG_SYS_OR3_PRELIM=0xFFFFEFF7
-CONFIG_DM_I2C=y
-CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
-CONFIG_SYS_I2C_FSL=y
-CONFIG_SYS_I2C_EEPROM_ADDR=0x50
-CONFIG_FSL_ESDHC=y
-CONFIG_MTD=y
-CONFIG_MTD_NOR_FLASH=y
-CONFIG_FLASH_CFI_DRIVER=y
-CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
-CONFIG_SYS_FLASH_EMPTY_INFO=y
-CONFIG_SYS_FLASH_CFI=y
-CONFIG_SYS_FLASH_QUIET_TEST=y
-CONFIG_SYS_MAX_FLASH_SECT=1024
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND_FSL_ELBC=y
-CONFIG_DM_SPI_FLASH=y
-CONFIG_SPI_FLASH_SPANSION=y
-CONFIG_PHYLIB=y
-CONFIG_PHYLIB_10G=y
-CONFIG_PHY_TERANETICS=y
-CONFIG_PHY_VITESSE=y
-CONFIG_DM_MDIO=y
-CONFIG_PHY_GIGE=y
-CONFIG_E1000=y
-CONFIG_FMAN_ENET=y
-CONFIG_SYS_FMAN_FW_ADDR=0x100000
-CONFIG_MII=y
-CONFIG_PCIE_FSL=y
-CONFIG_SYS_QE_FMAN_FW_IN_NAND=y
-CONFIG_DM_SERIAL=y
-CONFIG_SYS_NS16550=y
-CONFIG_SPI=y
-CONFIG_DM_SPI=y
-CONFIG_FSL_ESPI=y
-CONFIG_USB=y
-CONFIG_USB_EHCI_FSL=y
-CONFIG_USB_MAX_CONTROLLER_COUNT=2
-CONFIG_USB_STORAGE=y
-CONFIG_ADDR_MAP=y
-CONFIG_SYS_NUM_ADDR_MAP=64
-CONFIG_POST=y
Signature · 1 line
2.47.3
#14 lore raw
In reply to Michael Walle
Quoted 86 lines · Michael Walle

While working on an ancient P2041 based board, I've encountered several issues.

cpu_init_r wasn't called anymore, but u-boot was still somehow working. CAAM was reading/writing on address 0 because pamu_init() is never called if secure boot isn't enabled.

Since legacy ethernet was removed, board_eth_init() and fdt_fixup_board_enet() won't be called anymore, but the functions are still defined. I've just removed the ones for the NXP boards, though I think the code there did something useful. But given that it wasn't called for two years now and nobody complained, it can't be that important.

Lastly, because I have a p2041rdb, move that to a upstream DTS. Keep in mind, that the uboot dts doesn't define an UART, so any output was broken since the move to DM provided serial support.

Michael Walle (10):
powerpc: fix call to cpu_init_r
caam: don't write memory at 0 on PPC
spi: fsl_espi: fix read transactions
boards: remove dead fman code
boards/nxp: remove board_eth_init()
boards/nxp: remove empty fdt_fixup_board_enet()
p2041rdb: use the upstream device tree
p2041rdb: support SDcard boot
p2041rdb: update README and fix typos
p2041rdb: remove NAND defconfig

arch/powerpc/cpu/mpc85xx/cpu_init.c           |   4 +-
arch/powerpc/dts/p2041.dtsi                   | 138 ----
arch/powerpc/dts/p2041rdb-u-boot.dtsi         |  19 +
arch/powerpc/dts/p2041rdb.dts                 | 127 ---
arch/powerpc/dts/p2041si-post.dtsi            |  43 --
board/nxp/ls1012afrdm/eth.c                   |  10 -
board/nxp/ls1012ardb/eth.c                    |  12 -
board/nxp/ls1021atsn/ls1021atsn.c             |   5 -
board/nxp/ls1021atwr/ls1021atwr.c             |   5 -
board/nxp/ls1028a/ls1028a.c                   |   5 -
board/nxp/ls1043aqds/Makefile                 |   3 -
board/nxp/ls1043aqds/eth.c                    | 501 ------------
board/nxp/ls1043aqds/ls1043aqds.c             |   4 -
board/nxp/ls1043ardb/Makefile                 |   1 -
board/nxp/ls1043ardb/eth.c                    |  77 --
board/nxp/ls1046afrwy/eth.c                   |  57 --
board/nxp/ls1046aqds/Makefile                 |   3 -
board/nxp/ls1046aqds/eth.c                    | 431 -----------
board/nxp/ls1046aqds/ls1046aqds.c             |   4 -
board/nxp/ls1046ardb/eth.c                    |  71 --
board/nxp/ls2080ardb/eth_ls2080rdb.c          |  19 -
board/nxp/lx2160a/eth_lx2160aqds.c            |  18 -
board/nxp/lx2160a/eth_lx2160ardb.c            |  17 -
board/nxp/lx2160a/eth_lx2162aqds.c            |  18 -
board/nxp/m5253demo/m5253demo.c               |   7 -
board/nxp/mx6sxsabreauto/mx6sxsabreauto.c     |  52 --
board/nxp/mx6sxsabresd/mx6sxsabresd.c         |  78 --
board/nxp/p2041rdb/Makefile                   |   1 -
board/nxp/p2041rdb/README                     |  34 +-
board/nxp/p2041rdb/eth.c                      | 210 -----
board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg        |  11 +
...{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} |   0
board/nxp/t102xrdb/Makefile                   |   1 -
board/nxp/t102xrdb/eth_t102xrdb.c             | 149 ----
board/nxp/t102xrdb/t102xrdb.c                 |   1 -
board/nxp/t102xrdb/t102xrdb.h                 |   1 -
board/nxp/t104xrdb/Makefile                   |   1 -
board/nxp/t104xrdb/eth.c                      |  91 ---
board/nxp/t104xrdb/t104xrdb.h                 |   1 -
board/nxp/t208xqds/Makefile                   |   2 +-
board/nxp/t208xqds/eth_t208xqds.c             | 723 ------------------
board/nxp/t208xrdb/eth_t208xrdb.c             |   5 -
board/nxp/t208xrdb/t208xrdb.c                 |   1 -
board/nxp/t208xrdb/t208xrdb.h                 |   1 -
board/nxp/t4rdb/Makefile                      |   1 -
board/nxp/t4rdb/eth.c                         | 152 ----
board/nxp/t4rdb/t4240rdb.c                    |   1 -
board/nxp/t4rdb/t4rdb.h                       |   1 -
common/board_r.c                              |   2 +-
configs/P2041RDB_NAND_defconfig               | 117 ---
configs/P2041RDB_SDCARD_defconfig             |   3 +-
configs/P2041RDB_SPIFLASH_defconfig           |   6 +-
configs/P2041RDB_defconfig                    |   4 +-
drivers/spi/fsl_espi.c                        |   6 +-
include/configs/P2041RDB.h                    |   2 +
55 files changed, 61 insertions(+), 3196 deletions(-)
Quoted 15 lines

delete mode 100644 arch/powerpc/dts/p2041.dtsi
create mode 100644 arch/powerpc/dts/p2041rdb-u-boot.dtsi
delete mode 100644 arch/powerpc/dts/p2041rdb.dts
delete mode 100644 arch/powerpc/dts/p2041si-post.dtsi
delete mode 100644 board/nxp/ls1043aqds/eth.c
delete mode 100644 board/nxp/ls1043ardb/eth.c
delete mode 100644 board/nxp/ls1046aqds/eth.c
delete mode 100644 board/nxp/p2041rdb/eth.c
create mode 100644 board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg rename board/nxp/p2041rdb/{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} (100%) delete mode 100644 board/nxp/t102xrdb/eth_t102xrdb.c
delete mode 100644 board/nxp/t104xrdb/eth.c
delete mode 100644 board/nxp/t208xqds/eth_t208xqds.c
delete mode 100644 board/nxp/t4rdb/eth.c
delete mode 100644 configs/P2041RDB_NAND_defconfig

+make[3]: *** No rule to make target 'arch/powerpc/dts/p2041rdb.dtb', needed by 'dtbs'. Stop. +make[2]: *** [dts/Makefile:64: arch-dtbs] Error 2
+make[1]: *** [Makefile:1427: dts/dt.dtb] Error 2
+make: *** [Makefile:189: __sub-make] Error 2
+powerpc-linux-ld: board/nxp/t208xqds/t208xqds.o: in function `ft_board_setup':
+board/nxp/t208xqds/t208xqds.c:422:(.text.ft_board_setup+0x68): undefined reference to `fdt_fixup_board_enet' +make[1]: *** [Makefile:2109: u-boot] Error 1

Regards
Peng

Quoted 5 lines
Signature · 2 lines
-- 
2.47.3