]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/wireless/marvell/mwifiex/README
mwifiex: add memrw command information in README
[mirror_ubuntu-artful-kernel.git] / drivers / net / wireless / marvell / mwifiex / README
index 24e649b1eb2453444967439166f2b9dd8b21e9b6..588fcbe3837417e89e3a20f8f63b87a59fdf6845 100644 (file)
@@ -180,6 +180,29 @@ regrdwr
                echo "1 0xa060 0x12" > regrdwr      : Write the MAC register
                echo "1 0xa794 0x80000000" > regrdwr
                                                    : Write 0x80000000 to MAC register
+
+memrw
+       This command is used to read/write the firmware memory.
+
+       Usage:
+               1) For reading firmware memory location.
+                       echo r <address> 0 > /sys/kernel/debug/mwifiex/mlan0/memrw
+                       cat /sys/kernel/debug/mwifiex/mlan0/memrw
+               2) For writing value to firmware memory location.
+                       echo w <address> [value] > /sys/kernel/debug/mwifiex/mlan0/memrw
+
+       where the parameters are,
+               <address>:  memory address
+               [value]:    value to be written
+
+       Examples:
+               echo r 0x4cf70 0 > /sys/kernel/debug/mwifiex/mlan0/memrw
+               cat /sys/kernel/debug/mwifiex/mlan0/memrw
+                                               : Read memory address 0x4cf70
+               iwpriv mlan0 memrdwr -0x7fff6000 -0x40000000
+               echo w 0x8000a000 0xc0000000 > /sys/kernel/debug/mwifiex/mlan0/memrw
+                                               : Write 0xc0000000 to memory address 0x8000a000
+
 rdeeprom
        This command is used to read the EEPROM contents of the card.