},
{
.name = "qspi-rootfs",
-#ifdef CONFIG_XILINX_PS_QSPI_USE_DUAL_FLASH
- .size = 0x1800000,
-#else
.size = 0x800000,
-#endif
.offset = 0x800000,
},
};
.name = "serial_flash",
.parts = qspi_flash_partitions,
.nr_parts = ARRAY_SIZE(qspi_flash_partitions),
-#ifdef CONFIG_XILINX_PS_QSPI_USE_DUAL_FLASH
- .type = "n25q128x2" /* dual flash devices */
-#else
.type = "n25q128" /* single flash device */
-#endif
};
static struct spi_board_info __initdata xilinx_qspipss_0_boardinfo = {
},
{
.name = "qspi-rootfs",
-#ifdef CONFIG_XILINX_PS_QSPI_USE_DUAL_FLASH
- .size = 0x1800000,
-#else
.size = 0x800000,
-#endif
.offset = 0x800000,
},
};
.name = "serial_flash",
.parts = qspi_flash_partitions,
.nr_parts = ARRAY_SIZE(qspi_flash_partitions),
-#ifdef CONFIG_XILINX_PS_QSPI_USE_DUAL_FLASH
- .type = "n25q128x2" /* dual flash devices */
-#else
.type = "n25q128" /* single flash device */
-#endif
};
#endif
},
{
.name = "qspi-rootfs",
-#ifdef CONFIG_XILINX_PS_QSPI_USE_DUAL_FLASH
- .size = 0x1800000,
-#else
.size = 0x800000,
-#endif
.offset = 0x800000,
},
};
.name = "serial_flash",
.parts = qspi_flash_partitions,
.nr_parts = ARRAY_SIZE(qspi_flash_partitions),
-#ifdef CONFIG_XILINX_PS_QSPI_USE_DUAL_FLASH
- .type = "s25fl129p1x2" /* dual flash devices */
-#else
.type = "s25fl129p1" /* single flash device */
-#endif
};
#endif
help
This selects the PS Quad SPI controller master driver from the Xilinx.
-config XILINX_PS_QSPI_USE_DUAL_FLASH
- bool "Use dual flash memories with seperate QSPI buses"
- depends on SPI_XILINX_PS_QSPI
- default y
- help
- This option enables two SPI flash memories operating in parallel mode.
- This increases the maximum addressable QSPI flash memory from 16 MB
- (24-bit addressing) to 32 MB (25-bit addressing), and the throughput
- by a factor of 2.
-
config SPI_XILINX_PS_SPI
tristate "Xilinx PS SPI controller"
depends on SPI_MASTER && EXPERIMENTAL
dev_warn(&dev->dev, "couldn't determine configuration info "
"about dual memories. defaulting to single memory\n");
}
-#elif defined CONFIG_XILINX_PS_QSPI_USE_DUAL_FLASH
- xqspi->is_dual = 1;
#endif
/* QSPI controller initializations */