]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi: sf_probe: Add "jedec, spi-nor" compatible string
authorVignesh R <vigneshr@ti.com>
Tue, 5 Feb 2019 05:59:22 +0000 (11:29 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 7 Feb 2019 10:03:21 +0000 (15:33 +0530)
Linux uses "jedec,spi-nor" as compatible string for JEDEC compatible
SPI Flash device nodes. Therefore make U-Boot also to look for the same
compatible string so that we can use Linux DTS files as is.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> #zynq-microzed
drivers/mtd/spi/sf_probe.c

index 00f8558e7019e9f7b6f2cf0a6d4c2b4a2916c497..7a379914d8f1be9453de7e9a63c22f3352843f87 100644 (file)
@@ -161,6 +161,7 @@ static const struct dm_spi_flash_ops spi_flash_std_ops = {
 
 static const struct udevice_id spi_flash_std_ids[] = {
        { .compatible = "spi-flash" },
+       { .compatible = "jedec,spi-nor" },
        { }
 };