From: Vignesh R Date: Tue, 5 Feb 2019 05:59:22 +0000 (+0530) Subject: mtd: spi: sf_probe: Add "jedec, spi-nor" compatible string X-Git-Tag: v2019.04-rc1~2^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2ee6705be01c430ad9f71c0bac02d1d59819072c;p=oweals%2Fu-boot.git mtd: spi: sf_probe: Add "jedec, spi-nor" compatible string 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 Tested-by: Simon Goldschmidt Tested-by: Stefan Roese Tested-by: Horatiu Vultur Tested-by: Jagan Teki #zynq-microzed --- diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index 00f8558e70..7a379914d8 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -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" }, { } };