diff options
author | Marek Behún <marek.behun@nic.cz> | 2021-05-26 14:08:20 +0200 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2021-06-24 11:53:31 +0530 |
commit | b7f060565e3161f8977a3a93e4b31ed6031af874 (patch) | |
tree | 0a8638edd3b39da21d35320429f0a13ae37cdbf0 /drivers/ddr/marvell/a38x/ddr3_training_ip_flow.h | |
parent | dc339bf784f08707583a5b6465381354f48d4fa8 (diff) |
mtd: spi-nor: allow registering multiple MTDs when DM is enabled
Currently when the SPI_FLASH_MTD config option is enabled, only one SPI
can be registered as MTD at any time - it is the last one probed (since
with old non-DM model only one SPI NOR could be probed at any time).
When DM is enabled, allow for registering multiple SPI NORs as MTDs by
utilizing the nor->mtd structure, which is filled in by spi_nor_scan
anyway, instead of filling a separate struct mtd_info.
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Cc: Priyanka Jain <priyanka.jain@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_training_ip_flow.h')
0 files changed, 0 insertions, 0 deletions