wil6210: map RGF_USER_USAGE_1 on the debugfs
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Mon, 14 Jul 2014 06:49:42 +0000 (09:49 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Jul 2014 17:45:24 +0000 (13:45 -0400)
Firmware sets this register with the offset of the firmware trace area
within the peripheral memory region. Critical for the firmware trace
to work

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/debugfs.c
drivers/net/wireless/ath/wil6210/wil6210.h

index d5b095d404e1cfa5a2ce962539684893716f7d8f..8f66186adb8c59d67103ad75ddb759063736bbaa 100644 (file)
@@ -1022,6 +1022,9 @@ int wil6210_debugfs_init(struct wil6210_priv *wil)
        wil6210_debugfs_create_pseudo_ISR(wil, dbg);
        wil6210_debugfs_create_ITR_CNT(wil, dbg);
 
+       wil_debugfs_create_iomem_x32("RGF_USER_USAGE_1", S_IRUGO, dbg,
+                                    wil->csr +
+                                    HOSTADDR(RGF_USER_USAGE_1));
        debugfs_create_u32("mem_addr", S_IRUGO | S_IWUSR, dbg, &mem_addr);
        debugfs_create_file("mem_val", S_IRUGO, dbg, wil, &fops_memread);
 
index 02205b09fb50443936ecf710fba0d5c6bace0fbc..a78aaaba59bde4a49638848f51e27986cdb74a64 100644 (file)
@@ -85,6 +85,7 @@ struct RGF_ICR {
 } __packed;
 
 /* registers - FW addresses */
+#define RGF_USER_USAGE_1               (0x880004)
 #define RGF_USER_HW_MACHINE_STATE      (0x8801dc)
        #define HW_MACHINE_BOOT_DONE    (0x3fffffd)
 #define RGF_USER_USER_CPU_0            (0x8801e0)