* @pr_num: Maximum number of protected range registers
* @writeable: Is the chip writeable
* @locked: Is SPI setting locked
- * @swseq: Use SW sequencer in register reads/writes
+ * @swseq_reg: Use SW sequencer in register reads/writes
* @erase_64k: 64k erase supported
* @opcodes: Opcodes which are supported. This are programmed by BIOS
* before it locks down the controller.
size_t pr_num;
bool writeable;
bool locked;
- bool swseq;
+ bool swseq_reg;
bool erase_64k;
u8 opcodes[8];
u8 preopcodes[2];
}
dev_dbg(ispi->dev, "Using %cW sequencer for register access\n",
- ispi->swseq ? 'S' : 'H');
+ ispi->swseq_reg ? 'S' : 'H');
}
/* Reads max INTEL_SPI_FIFO_SZ bytes from the device fifo */
ispi->pregs = ispi->base + BYT_PR;
ispi->nregions = BYT_FREG_NUM;
ispi->pr_num = BYT_PR_NUM;
- ispi->swseq = true;
+ ispi->swseq_reg = true;
if (writeable) {
/* Disable write protection */
ispi->pregs = ispi->base + LPT_PR;
ispi->nregions = LPT_FREG_NUM;
ispi->pr_num = LPT_PR_NUM;
- ispi->swseq = true;
+ ispi->swseq_reg = true;
break;
case INTEL_SPI_BXT:
* sequencer. All other operations are supposed to be carried out
* using software sequencer.
*/
- if (ispi->swseq) {
+ if (ispi->swseq_reg) {
/* Disable #SMI generation from SW sequencer */
val = readl(ispi->sregs + SSFSTS_CTL);
val &= ~SSFSTS_CTL_FSMIE;
/* Address of the first chip */
writel(0, ispi->base + FADDR);
- if (ispi->swseq)
+ if (ispi->swseq_reg)
ret = intel_spi_sw_cycle(ispi, opcode, len,
OPTYPE_READ_NO_ADDR);
else
if (ret)
return ret;
- if (ispi->swseq)
+ if (ispi->swseq_reg)
return intel_spi_sw_cycle(ispi, opcode, len,
OPTYPE_WRITE_NO_ADDR);
return intel_spi_hw_cycle(ispi, opcode, len);