Commit 127ee1db authored by Xinming Hu's avatar Xinming Hu Committed by Kalle Valo

mwifiex: pcie: correct scratch register name

This patch correct pcie scratch register name, to keep the same with
chipset side definition.
Signed-off-by: default avatarXinming Hu <huxm@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent ef6c7d3c
...@@ -2494,8 +2494,8 @@ mwifiex_pcie_reg_dump(struct mwifiex_adapter *adapter, char *drv_buf) ...@@ -2494,8 +2494,8 @@ mwifiex_pcie_reg_dump(struct mwifiex_adapter *adapter, char *drv_buf)
struct pcie_service_card *card = adapter->card; struct pcie_service_card *card = adapter->card;
const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; const struct mwifiex_pcie_card_reg *reg = card->pcie.reg;
int pcie_scratch_reg[] = {PCIE_SCRATCH_12_REG, int pcie_scratch_reg[] = {PCIE_SCRATCH_12_REG,
PCIE_SCRATCH_13_REG, PCIE_SCRATCH_14_REG,
PCIE_SCRATCH_14_REG}; PCIE_SCRATCH_15_REG};
if (!p) if (!p)
return 0; return 0;
......
...@@ -77,8 +77,9 @@ ...@@ -77,8 +77,9 @@
#define PCIE_SCRATCH_10_REG 0xCE8 #define PCIE_SCRATCH_10_REG 0xCE8
#define PCIE_SCRATCH_11_REG 0xCEC #define PCIE_SCRATCH_11_REG 0xCEC
#define PCIE_SCRATCH_12_REG 0xCF0 #define PCIE_SCRATCH_12_REG 0xCF0
#define PCIE_SCRATCH_13_REG 0xCF8 #define PCIE_SCRATCH_13_REG 0xCF4
#define PCIE_SCRATCH_14_REG 0xCFC #define PCIE_SCRATCH_14_REG 0xCF8
#define PCIE_SCRATCH_15_REG 0xCFC
#define PCIE_RD_DATA_PTR_Q0_Q1 0xC08C #define PCIE_RD_DATA_PTR_Q0_Q1 0xC08C
#define PCIE_WR_DATA_PTR_Q0_Q1 0xC05C #define PCIE_WR_DATA_PTR_Q0_Q1 0xC05C
...@@ -217,8 +218,8 @@ static const struct mwifiex_pcie_card_reg mwifiex_reg_8897 = { ...@@ -217,8 +218,8 @@ static const struct mwifiex_pcie_card_reg mwifiex_reg_8897 = {
.ring_tx_start_ptr = MWIFIEX_BD_FLAG_TX_START_PTR, .ring_tx_start_ptr = MWIFIEX_BD_FLAG_TX_START_PTR,
.pfu_enabled = 1, .pfu_enabled = 1,
.sleep_cookie = 0, .sleep_cookie = 0,
.fw_dump_ctrl = 0xcf4, .fw_dump_ctrl = PCIE_SCRATCH_13_REG,
.fw_dump_start = 0xcf8, .fw_dump_start = PCIE_SCRATCH_14_REG,
.fw_dump_end = 0xcff, .fw_dump_end = 0xcff,
.fw_dump_host_ready = 0xee, .fw_dump_host_ready = 0xee,
.fw_dump_read_done = 0xfe, .fw_dump_read_done = 0xfe,
...@@ -254,8 +255,8 @@ static const struct mwifiex_pcie_card_reg mwifiex_reg_8997 = { ...@@ -254,8 +255,8 @@ static const struct mwifiex_pcie_card_reg mwifiex_reg_8997 = {
.ring_tx_start_ptr = MWIFIEX_BD_FLAG_TX_START_PTR, .ring_tx_start_ptr = MWIFIEX_BD_FLAG_TX_START_PTR,
.pfu_enabled = 1, .pfu_enabled = 1,
.sleep_cookie = 0, .sleep_cookie = 0,
.fw_dump_ctrl = 0xcf4, .fw_dump_ctrl = PCIE_SCRATCH_13_REG,
.fw_dump_start = 0xcf8, .fw_dump_start = PCIE_SCRATCH_14_REG,
.fw_dump_end = 0xcff, .fw_dump_end = 0xcff,
.fw_dump_host_ready = 0xcc, .fw_dump_host_ready = 0xcc,
.fw_dump_read_done = 0xdd, .fw_dump_read_done = 0xdd,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment