ath10k: add register access debugfs interface
authorYanbo Li <yanbol@qti.qualcomm.com>
Tue, 25 Nov 2014 10:24:33 +0000 (12:24 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 26 Nov 2014 06:39:55 +0000 (08:39 +0200)
commit077a380447160d94031c51e863ca4c53d2c74730
tree625fe0b0deb23be2086b9c4f5f2ecf84b4939b5f
parent5d011f5c1f93a9ef6955874c3607e36b32713015
ath10k: add register access debugfs interface

Debugfs files reg_addr and reg_val are used for reading and writing to the
firmware (target) registers. reg_addr contains the address to be accessed,
which also needs to be set first, and reg_value is when used for reading and
writing the actual value in ASCII.

To read a value from the firmware register 0x100000:

# echo 0x100000 > reg_addr
# cat reg_value
0x00100000:0x000002d3

To write value 0x2400 to address 0x100000:

# echo 0x100000 > reg_addr
# echo  0x2400 > reg_value
#

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/hif.h
drivers/net/wireless/ath/ath10k/pci.c