Skip to content

Commit

Permalink
qspi: zynqmp: Add 4byte addressing support for ZynqMP
Browse files Browse the repository at this point in the history
Enable 4 byte addressing support for zynqMP by informing
the sf framework with 4 byte support.

Signed-off-by: Siva Durga Prasad Paladugu <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
Siva Durga Prasad Paladugu authored and Michal Simek committed Aug 14, 2015
1 parent ff1b3de commit 84f81e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/spi/zynqmp_qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,13 @@ static int zynqmp_qspi_child_pre_probe(struct udevice *bus)
{
struct spi_slave *slave = dev_get_parentdata(bus);
struct zynqmp_qspi_priv *priv = dev_get_priv(bus->parent);
u8 bootmode;
u32 reg;

slave->option = priv->is_dual;
slave->op_mode_rx = SPI_OPM_RX_QOF;
slave->op_mode_tx = SPI_OPM_TX_QPP;
slave->bytemode = SPI_4BYTE_MODE;

return 0;
}
Expand Down

0 comments on commit 84f81e5

Please sign in to comment.