mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] adjust init logic for ts-wxl to reflect single core dev
@ 2023-03-17 15:43 Jeremy J. Peper
  2023-03-17 15:43 ` [PATCH 2/4] set the correct driver for the i2c RTC Jeremy J. Peper
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jeremy J. Peper @ 2023-03-17 15:43 UTC (permalink / raw)
  To: linux-kernel, arnd
  Cc: Jeremy J . Peper, Andrew Lunn, Sebastian Hesselbarth,
	Gregory Clement, Russell King, linux-arm-kernel

Original code was largely copy-pasted from the reference board code, adjust pcie initialiazation to reflect the TS-WXL using the single-core variant of this SoC.
Correct pcie_port_size to be a power of 2 as required.

Signed-off-by: Jeremy J. Peper <jeremy@jeremypeper.com>
---
 arch/arm/mach-mv78xx0/buffalo-wxl-setup.c | 12 ++----------
 arch/arm/mach-mv78xx0/pcie.c              |  2 +-
 2 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/arch/arm/mach-mv78xx0/buffalo-wxl-setup.c b/arch/arm/mach-mv78xx0/buffalo-wxl-setup.c
index 9aa765d4c..383dc6eab 100644
--- a/arch/arm/mach-mv78xx0/buffalo-wxl-setup.c
+++ b/arch/arm/mach-mv78xx0/buffalo-wxl-setup.c
@@ -125,16 +125,8 @@ static void __init wxl_init(void)
 
 static int __init wxl_pci_init(void)
 {
-	if (machine_is_terastation_wxl()) {
-		/*
-		 * Assign the x16 PCIe slot on the board to CPU core
-		 * #0, and let CPU core #1 have the four x1 slots.
-		 */
-		if (mv78xx0_core_index() == 0)
-			mv78xx0_pcie_init(0, 1);
-		else
-			mv78xx0_pcie_init(1, 0);
-	}
+	if (machine_is_terastation_wxl() && mv78xx0_core_index() == 0)
+                mv78xx0_pcie_init(1, 1);
 
 	return 0;
 }
diff --git a/arch/arm/mach-mv78xx0/pcie.c b/arch/arm/mach-mv78xx0/pcie.c
index 6190f538a..fa68b6394 100644
--- a/arch/arm/mach-mv78xx0/pcie.c
+++ b/arch/arm/mach-mv78xx0/pcie.c
@@ -42,7 +42,7 @@ void __init mv78xx0_pcie_id(u32 *dev, u32 *rev)
 
 u32 pcie_port_size[8] = {
 	0,
-	0x30000000,
+	0x20000000,
 	0x10000000,
 	0x10000000,
 	0x08000000,
-- 
2.30.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-17 15:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-17 15:43 [PATCH 1/4] adjust init logic for ts-wxl to reflect single core dev Jeremy J. Peper
2023-03-17 15:43 ` [PATCH 2/4] set the correct driver for the i2c RTC Jeremy J. Peper
2023-03-17 15:43 ` [PATCH 3/4] add code to enable XOR and CRYPTO engines on mv78xx0 Jeremy J. Peper
2023-03-17 15:43 ` [PATCH 4/4] fix entries for gpios, buttons and usb ports Jeremy J. Peper
2023-03-17 15:52 ` [PATCH 1/4] adjust init logic for ts-wxl to reflect single core dev Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®