diff mbox series

[RFC] kernel: Support aspeed hardware FSI master

Message ID 20190819010933.20518-1-joel@jms.id.au
State Superseded
Headers show
Series [RFC] kernel: Support aspeed hardware FSI master | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (3a46123baa267a1bc6e03c50449a42e8d321bf86)
snowpatch_ozlabs/build-multiarch success Test build-multiarch on branch master

Commit Message

Joel Stanley Aug. 19, 2019, 1:09 a.m. UTC
The paths to sysfs entries depend on the master driver used. This means
pdbg needs to use a different path when running against the hardware FSI
master present in the ast2600.

I do not intend for this patch to be merged as-is. We do need to use
this as a discussion point for a solution, probably in the kernel, that
fixes this.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 libpdbg/dtb.c    | 4 ++--
 libpdbg/kernel.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c
index 6c4beeda4fe6..e2de337a7f92 100644
--- a/libpdbg/dtb.c
+++ b/libpdbg/dtb.c
@@ -43,8 +43,8 @@ 
 #include "p9-cronus.dt.h"
 
 #define AMI_BMC "/proc/ractrends/Helper/FwInfo"
-#define OPENFSI_BMC "/sys/bus/platform/devices/gpio-fsi/fsi0/"
-#define FSI_CFAM_ID "/sys/devices/platform/gpio-fsi/fsi0/slave@00:00/cfam_id"
+#define OPENFSI_BMC "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0"
+#define FSI_CFAM_ID "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/slave@00:00/cfam_id"
 #define XSCOM_BASE_PATH "/sys/kernel/debug/powerpc/scom"
 
 #define CHIP_ID_P8  0xea
diff --git a/libpdbg/kernel.c b/libpdbg/kernel.c
index 4cc0334d7eb3..825608f13ddc 100644
--- a/libpdbg/kernel.c
+++ b/libpdbg/kernel.c
@@ -29,8 +29,8 @@ 
 #include "operations.h"
 #include "hwunit.h"
 
-#define FSI_SCAN_PATH "/sys/bus/platform/devices/gpio-fsi/fsi0/rescan"
-#define FSI_CFAM_PATH "/sys/devices/platform/gpio-fsi/fsi0/slave@00:00/raw"
+#define FSI_SCAN_PATH "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/rescan"
+#define FSI_CFAM_PATH "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi0/slave@00:00/raw"
 
 int fsi_fd;