qca: ipq806x: Fix SPI-NOR flash option value.

SPI-NOR flash option field was uninitialized which was
giving improper flash information during sf probe.
Initialized to zero during spi initialization.

Change-Id: I26df0a491e96071d598cc281c42e32408f34d29f
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
This commit is contained in:
Aditya Kumar Patra S 2017-02-21 17:39:02 +05:30
parent 781e610f87
commit 35f3264a1e

View file

@ -389,6 +389,8 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
}
ds->slave.bus = bus;
ds->slave.cs = cs;
ds->slave.option = 0;
ds->slave.max_write_size = 0;
ds->slave.op_mode_rx = 0; /* Default Rx Mode: CMD_READ_ARRAY_FAST */
ds->slave.op_mode_tx = 0; /* Default Tx Mode: CMD_PAGE_PROGRAM */
ds->slave.memory_map = NULL; /* Not memory mapped */