[PATCH linux dev-5.3 3/4] fsi: aspeed: Add more registers to debug

Joel Stanley joel at jms.id.au
Wed Oct 23 17:18:47 AEDT 2019


Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 drivers/fsi/fsi-master-aspeed.c | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/drivers/fsi/fsi-master-aspeed.c b/drivers/fsi/fsi-master-aspeed.c
index 18f6012f19a8..8c5eb2bb1994 100644
--- a/drivers/fsi/fsi-master-aspeed.c
+++ b/drivers/fsi/fsi-master-aspeed.c
@@ -33,6 +33,9 @@
 #define FSI_MRESP0		0xd0		/* W: Port reset */
 #define FSI_MESRB0		0x1d0		/* R: Master error status */
 #define FSI_MRESB0		0x1d0		/* W: Reset bridge */
+#define FSI_MSCSB0	 	0x1d4		/* R: Master sub command stack */
+#define FSI_MATRB0	 	0x1d8		/* R: Master address trace */
+#define FSI_MDTRB0	 	0x1dc		/* R: Master data trace */
 #define FSI_MECTRL		0x2e0		/* W: Error control */
 
 /* MMODE: Mode control */
@@ -70,7 +73,7 @@
 
 #define FSI_LINK_ENABLE_SETUP_TIME	10	/* in mS */
 
-#define FSI_NUM_DEBUGFS_ENTRIES		14
+#define FSI_NUM_DEBUGFS_ENTRIES		17
 
 struct fsi_master_aspeed;
 
@@ -681,6 +684,24 @@ static int fsi_master_aspeed_probe(struct platform_device *pdev)
 				    &etrs[idx++],
 				    &fsi_master_aspeed_debugfs_ops);
 
+		etrs[idx].aspeed = aspeed;
+		etrs[idx].addr = FSI_MSCSB0;
+		debugfs_create_file("mscsb0", 0200, aspeed->debugfs_dir,
+				    &etrs[idx++],
+				    &fsi_master_aspeed_debugfs_ops);
+
+		etrs[idx].aspeed = aspeed;
+		etrs[idx].addr = FSI_MATRB0;
+		debugfs_create_file("matrb0", 0200, aspeed->debugfs_dir,
+				    &etrs[idx++],
+				    &fsi_master_aspeed_debugfs_ops);
+
+		etrs[idx].aspeed = aspeed;
+		etrs[idx].addr = FSI_MDTRB0;
+		debugfs_create_file("mdtrb0", 0200, aspeed->debugfs_dir,
+				    &etrs[idx++],
+				    &fsi_master_aspeed_debugfs_ops);
+
 		etrs[idx].aspeed = aspeed;
 		etrs[idx].addr = FSI_MECTRL;
 		debugfs_create_file("mectrl", 0644, aspeed->debugfs_dir,
-- 
2.23.0



More information about the openbmc mailing list