Commit 6b42d308 authored by Kalle Valo's avatar Kalle Valo

ath6kl: set ram reserved size only for ar6003

Ram reserved size is not needed with ar6004.
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 03bdeb0d
...@@ -539,18 +539,20 @@ int ath6kl_configure_target(struct ath6kl *ar) ...@@ -539,18 +539,20 @@ int ath6kl_configure_target(struct ath6kl *ar)
* but possible in theory. * but possible in theory.
*/ */
param = ar->hw.board_ext_data_addr; if (ar->target_type == TARGET_TYPE_AR6003) {
ram_reserved_size = ar->hw.reserved_ram_size; param = ar->hw.board_ext_data_addr;
ram_reserved_size = ar->hw.reserved_ram_size;
if (ath6kl_bmi_write_hi32(ar, hi_board_ext_data, param) != 0) { if (ath6kl_bmi_write_hi32(ar, hi_board_ext_data, param) != 0) {
ath6kl_err("bmi_write_memory for hi_board_ext_data failed\n"); ath6kl_err("bmi_write_memory for hi_board_ext_data failed\n");
return -EIO; return -EIO;
} }
if (ath6kl_bmi_write_hi32(ar, hi_end_ram_reserve_sz, if (ath6kl_bmi_write_hi32(ar, hi_end_ram_reserve_sz,
ram_reserved_size) != 0) { ram_reserved_size) != 0) {
ath6kl_err("bmi_write_memory for hi_end_ram_reserve_sz failed\n"); ath6kl_err("bmi_write_memory for hi_end_ram_reserve_sz failed\n");
return -EIO; return -EIO;
}
} }
/* set the block size for the target */ /* set the block size for the target */
......
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