aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_sdio.h
diff options
context:
space:
mode:
authorBing Zhao <bzhao@marvell.com>2009-05-21 14:32:34 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-05-22 14:06:02 -0400
commit2c7e57981f24e9f8b732ecf1c01e16111d21b7a5 (patch)
treed62ba6cc2f8d5449a8eabcaec2fb40c4f91033d8 /drivers/net/wireless/libertas/if_sdio.h
parentbb9f8692f5043efef0dcef048cdd1db68299c2cb (diff)
libertas: read SD8688 firmware status from new register
The scratch pad register is used to store firmware status after firmware is downloaded and initialized. After firmware status is verified OK, the same register is used to store RX packet length. Hence the firmware status code is no longer valid afterwards. SD8688 firmware introduces a new register for firmware status which will never be overwritten. Also add scratch_reg variable to if_sdio_card structure and initialize it based on the model of the card during probe. Signed-off-by: Bing Zhao <bzhao@marvell.com> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_sdio.h')
-rw-r--r--drivers/net/wireless/libertas/if_sdio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/if_sdio.h b/drivers/net/wireless/libertas/if_sdio.h
index d3a4fbe0769..60c9b2fcef0 100644
--- a/drivers/net/wireless/libertas/if_sdio.h
+++ b/drivers/net/wireless/libertas/if_sdio.h
@@ -42,6 +42,7 @@
42 42
43#define IF_SDIO_SCRATCH 0x34 43#define IF_SDIO_SCRATCH 0x34
44#define IF_SDIO_SCRATCH_OLD 0x80fe 44#define IF_SDIO_SCRATCH_OLD 0x80fe
45#define IF_SDIO_FW_STATUS 0x40
45#define IF_SDIO_FIRMWARE_OK 0xfedc 46#define IF_SDIO_FIRMWARE_OK 0xfedc
46 47
47#define IF_SDIO_RX_LEN 0x42 48#define IF_SDIO_RX_LEN 0x42