Skip to content
Snippets Groups Projects
Commit db9225ba authored by Phil Edworthy's avatar Phil Edworthy Committed by Jagan Teki
Browse files

sf: Do not force the DT memory map size to exactly match the device


As long as the memory mapped size specifeid in the DT is the same or
bigger than the device size, it will work. So do not force the sizes
to be identical.

Signed-off-by: default avatarPhil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent 304decdd
No related branches found
No related tags found
No related merge requests found
......@@ -985,7 +985,7 @@ int spi_flash_decode_fdt(const void *blob, struct spi_flash *flash)
return 0;
}
if (flash->size != size) {
if (flash->size > size) {
debug("%s: Memory map must cover entire device\n", __func__);
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment