diff options
| author | Marek Behún <[email protected]> | 2021-05-26 14:08:20 +0200 |
|---|---|---|
| committer | Jagan Teki <[email protected]> | 2021-06-24 11:53:31 +0530 |
| commit | b7f060565e3161f8977a3a93e4b31ed6031af874 (patch) | |
| tree | 0a8638edd3b39da21d35320429f0a13ae37cdbf0 /scripts/basic/Makefile | |
| 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 <[email protected]>
Reviewed-by: Pali Rohár <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Tested-by: Patrice Chotard <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
Cc: Priyanka Jain <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Diffstat (limited to 'scripts/basic/Makefile')
0 files changed, 0 insertions, 0 deletions
