|
@@ -1181,7 +1181,7 @@ static int update_pwr_int(struct zd_chip *chip, u8 channel)
|
|
u8 value = chip->pwr_int_values[channel - 1];
|
|
u8 value = chip->pwr_int_values[channel - 1];
|
|
dev_dbg_f(zd_chip_dev(chip), "channel %d pwr_int %#04x\n",
|
|
dev_dbg_f(zd_chip_dev(chip), "channel %d pwr_int %#04x\n",
|
|
channel, value);
|
|
channel, value);
|
|
- return zd_iowrite32_locked(chip, value, CR31);
|
|
|
|
|
|
+ return zd_iowrite16_locked(chip, value, CR31);
|
|
}
|
|
}
|
|
|
|
|
|
static int update_pwr_cal(struct zd_chip *chip, u8 channel)
|
|
static int update_pwr_cal(struct zd_chip *chip, u8 channel)
|
|
@@ -1189,12 +1189,12 @@ static int update_pwr_cal(struct zd_chip *chip, u8 channel)
|
|
u8 value = chip->pwr_cal_values[channel-1];
|
|
u8 value = chip->pwr_cal_values[channel-1];
|
|
dev_dbg_f(zd_chip_dev(chip), "channel %d pwr_cal %#04x\n",
|
|
dev_dbg_f(zd_chip_dev(chip), "channel %d pwr_cal %#04x\n",
|
|
channel, value);
|
|
channel, value);
|
|
- return zd_iowrite32_locked(chip, value, CR68);
|
|
|
|
|
|
+ return zd_iowrite16_locked(chip, value, CR68);
|
|
}
|
|
}
|
|
|
|
|
|
static int update_ofdm_cal(struct zd_chip *chip, u8 channel)
|
|
static int update_ofdm_cal(struct zd_chip *chip, u8 channel)
|
|
{
|
|
{
|
|
- struct zd_ioreq32 ioreqs[3];
|
|
|
|
|
|
+ struct zd_ioreq16 ioreqs[3];
|
|
|
|
|
|
ioreqs[0].addr = CR67;
|
|
ioreqs[0].addr = CR67;
|
|
ioreqs[0].value = chip->ofdm_cal_values[OFDM_36M_INDEX][channel-1];
|
|
ioreqs[0].value = chip->ofdm_cal_values[OFDM_36M_INDEX][channel-1];
|
|
@@ -1206,7 +1206,7 @@ static int update_ofdm_cal(struct zd_chip *chip, u8 channel)
|
|
dev_dbg_f(zd_chip_dev(chip),
|
|
dev_dbg_f(zd_chip_dev(chip),
|
|
"channel %d ofdm_cal 36M %#04x 48M %#04x 54M %#04x\n",
|
|
"channel %d ofdm_cal 36M %#04x 48M %#04x 54M %#04x\n",
|
|
channel, ioreqs[0].value, ioreqs[1].value, ioreqs[2].value);
|
|
channel, ioreqs[0].value, ioreqs[1].value, ioreqs[2].value);
|
|
- return zd_iowrite32a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
|
|
|
|
|
|
+ return zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
|
|
}
|
|
}
|
|
|
|
|
|
static int update_channel_integration_and_calibration(struct zd_chip *chip,
|
|
static int update_channel_integration_and_calibration(struct zd_chip *chip,
|
|
@@ -1218,7 +1218,7 @@ static int update_channel_integration_and_calibration(struct zd_chip *chip,
|
|
if (r)
|
|
if (r)
|
|
return r;
|
|
return r;
|
|
if (chip->is_zd1211b) {
|
|
if (chip->is_zd1211b) {
|
|
- static const struct zd_ioreq32 ioreqs[] = {
|
|
|
|
|
|
+ static const struct zd_ioreq16 ioreqs[] = {
|
|
{ CR69, 0x28 },
|
|
{ CR69, 0x28 },
|
|
{},
|
|
{},
|
|
{ CR69, 0x2a },
|
|
{ CR69, 0x2a },
|
|
@@ -1230,7 +1230,7 @@ static int update_channel_integration_and_calibration(struct zd_chip *chip,
|
|
r = update_pwr_cal(chip, channel);
|
|
r = update_pwr_cal(chip, channel);
|
|
if (r)
|
|
if (r)
|
|
return r;
|
|
return r;
|
|
- r = zd_iowrite32a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
|
|
|
|
|
|
+ r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
|
|
if (r)
|
|
if (r)
|
|
return r;
|
|
return r;
|
|
}
|
|
}
|
|
@@ -1252,7 +1252,7 @@ static int patch_cck_gain(struct zd_chip *chip)
|
|
if (r)
|
|
if (r)
|
|
return r;
|
|
return r;
|
|
dev_dbg_f(zd_chip_dev(chip), "patching value %x\n", value & 0xff);
|
|
dev_dbg_f(zd_chip_dev(chip), "patching value %x\n", value & 0xff);
|
|
- return zd_iowrite32_locked(chip, value & 0xff, CR47);
|
|
|
|
|
|
+ return zd_iowrite16_locked(chip, value & 0xff, CR47);
|
|
}
|
|
}
|
|
|
|
|
|
int zd_chip_set_channel(struct zd_chip *chip, u8 channel)
|
|
int zd_chip_set_channel(struct zd_chip *chip, u8 channel)
|