diff options
Diffstat (limited to 'drivers/bluetooth/btmrvl_sdio.c')
-rw-r--r-- | drivers/bluetooth/btmrvl_sdio.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 00da6df9f71e..332475e400cf 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c | |||
@@ -18,7 +18,6 @@ | |||
18 | * this warranty disclaimer. | 18 | * this warranty disclaimer. |
19 | **/ | 19 | **/ |
20 | 20 | ||
21 | #include <linux/firmware.h> | ||
22 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
23 | 22 | ||
24 | #include <linux/mmc/sdio_ids.h> | 23 | #include <linux/mmc/sdio_ids.h> |
@@ -102,6 +101,7 @@ static const struct btmrvl_sdio_card_reg btmrvl_reg_88xx = { | |||
102 | static const struct btmrvl_sdio_device btmrvl_sdio_sd8688 = { | 101 | static const struct btmrvl_sdio_device btmrvl_sdio_sd8688 = { |
103 | .helper = "mrvl/sd8688_helper.bin", | 102 | .helper = "mrvl/sd8688_helper.bin", |
104 | .firmware = "mrvl/sd8688.bin", | 103 | .firmware = "mrvl/sd8688.bin", |
104 | .cal_data = NULL, | ||
105 | .reg = &btmrvl_reg_8688, | 105 | .reg = &btmrvl_reg_8688, |
106 | .sd_blksz_fw_dl = 64, | 106 | .sd_blksz_fw_dl = 64, |
107 | }; | 107 | }; |
@@ -109,6 +109,7 @@ static const struct btmrvl_sdio_device btmrvl_sdio_sd8688 = { | |||
109 | static const struct btmrvl_sdio_device btmrvl_sdio_sd8787 = { | 109 | static const struct btmrvl_sdio_device btmrvl_sdio_sd8787 = { |
110 | .helper = NULL, | 110 | .helper = NULL, |
111 | .firmware = "mrvl/sd8787_uapsta.bin", | 111 | .firmware = "mrvl/sd8787_uapsta.bin", |
112 | .cal_data = NULL, | ||
112 | .reg = &btmrvl_reg_87xx, | 113 | .reg = &btmrvl_reg_87xx, |
113 | .sd_blksz_fw_dl = 256, | 114 | .sd_blksz_fw_dl = 256, |
114 | }; | 115 | }; |
@@ -116,6 +117,7 @@ static const struct btmrvl_sdio_device btmrvl_sdio_sd8787 = { | |||
116 | static const struct btmrvl_sdio_device btmrvl_sdio_sd8797 = { | 117 | static const struct btmrvl_sdio_device btmrvl_sdio_sd8797 = { |
117 | .helper = NULL, | 118 | .helper = NULL, |
118 | .firmware = "mrvl/sd8797_uapsta.bin", | 119 | .firmware = "mrvl/sd8797_uapsta.bin", |
120 | .cal_data = "mrvl/sd8797_caldata.conf", | ||
119 | .reg = &btmrvl_reg_87xx, | 121 | .reg = &btmrvl_reg_87xx, |
120 | .sd_blksz_fw_dl = 256, | 122 | .sd_blksz_fw_dl = 256, |
121 | }; | 123 | }; |
@@ -123,6 +125,7 @@ static const struct btmrvl_sdio_device btmrvl_sdio_sd8797 = { | |||
123 | static const struct btmrvl_sdio_device btmrvl_sdio_sd8897 = { | 125 | static const struct btmrvl_sdio_device btmrvl_sdio_sd8897 = { |
124 | .helper = NULL, | 126 | .helper = NULL, |
125 | .firmware = "mrvl/sd8897_uapsta.bin", | 127 | .firmware = "mrvl/sd8897_uapsta.bin", |
128 | .cal_data = NULL, | ||
126 | .reg = &btmrvl_reg_88xx, | 129 | .reg = &btmrvl_reg_88xx, |
127 | .sd_blksz_fw_dl = 256, | 130 | .sd_blksz_fw_dl = 256, |
128 | }; | 131 | }; |
@@ -1006,6 +1009,7 @@ static int btmrvl_sdio_probe(struct sdio_func *func, | |||
1006 | struct btmrvl_sdio_device *data = (void *) id->driver_data; | 1009 | struct btmrvl_sdio_device *data = (void *) id->driver_data; |
1007 | card->helper = data->helper; | 1010 | card->helper = data->helper; |
1008 | card->firmware = data->firmware; | 1011 | card->firmware = data->firmware; |
1012 | card->cal_data = data->cal_data; | ||
1009 | card->reg = data->reg; | 1013 | card->reg = data->reg; |
1010 | card->sd_blksz_fw_dl = data->sd_blksz_fw_dl; | 1014 | card->sd_blksz_fw_dl = data->sd_blksz_fw_dl; |
1011 | } | 1015 | } |
@@ -1034,6 +1038,8 @@ static int btmrvl_sdio_probe(struct sdio_func *func, | |||
1034 | } | 1038 | } |
1035 | 1039 | ||
1036 | card->priv = priv; | 1040 | card->priv = priv; |
1041 | priv->btmrvl_dev.dev = &card->func->dev; | ||
1042 | priv->btmrvl_dev.cal_data = card->cal_data; | ||
1037 | 1043 | ||
1038 | /* Initialize the interface specific function pointers */ | 1044 | /* Initialize the interface specific function pointers */ |
1039 | priv->hw_host_to_card = btmrvl_sdio_host_to_card; | 1045 | priv->hw_host_to_card = btmrvl_sdio_host_to_card; |
@@ -1046,12 +1052,6 @@ static int btmrvl_sdio_probe(struct sdio_func *func, | |||
1046 | goto disable_host_int; | 1052 | goto disable_host_int; |
1047 | } | 1053 | } |
1048 | 1054 | ||
1049 | priv->btmrvl_dev.psmode = 1; | ||
1050 | btmrvl_enable_ps(priv); | ||
1051 | |||
1052 | priv->btmrvl_dev.gpio_gap = 0xffff; | ||
1053 | btmrvl_send_hscfg_cmd(priv); | ||
1054 | |||
1055 | return 0; | 1055 | return 0; |
1056 | 1056 | ||
1057 | disable_host_int: | 1057 | disable_host_int: |
@@ -1222,4 +1222,5 @@ MODULE_FIRMWARE("mrvl/sd8688_helper.bin"); | |||
1222 | MODULE_FIRMWARE("mrvl/sd8688.bin"); | 1222 | MODULE_FIRMWARE("mrvl/sd8688.bin"); |
1223 | MODULE_FIRMWARE("mrvl/sd8787_uapsta.bin"); | 1223 | MODULE_FIRMWARE("mrvl/sd8787_uapsta.bin"); |
1224 | MODULE_FIRMWARE("mrvl/sd8797_uapsta.bin"); | 1224 | MODULE_FIRMWARE("mrvl/sd8797_uapsta.bin"); |
1225 | MODULE_FIRMWARE("mrvl/sd8797_caldata.conf"); | ||
1225 | MODULE_FIRMWARE("mrvl/sd8897_uapsta.bin"); | 1226 | MODULE_FIRMWARE("mrvl/sd8897_uapsta.bin"); |