diff mbox

[U-Boot,v2,11/16] drivers: mtd: spi: sf_probe: add compatible for Macronix spi flash

Message ID 1446624984-11033-12-git-send-email-mugunthanvnm@ti.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Mugunthan V N Nov. 4, 2015, 8:16 a.m. UTC
Add compatible for Macronix 64MiB spi flash mx66l51235l.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 drivers/mtd/spi/sf_probe.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass Nov. 6, 2015, 12:07 p.m. UTC | #1
Hi Mugunthan,

On 4 November 2015 at 01:16, Mugunthan V N <mugunthanvnm@ti.com> wrote:
> Add compatible for Macronix 64MiB spi flash mx66l51235l.
>
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> ---
>  drivers/mtd/spi/sf_probe.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
> index 9cfa9b6..b16a392 100644
> --- a/drivers/mtd/spi/sf_probe.c
> +++ b/drivers/mtd/spi/sf_probe.c
> @@ -503,6 +503,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 = "s25fl256s1" },
> +       { .compatible = "mx66l51235l" },

Can you add "spi-flash" to your device tree file instead?

>         { }
>  };
>
> --
> 2.6.2.280.g74301d6
>

Regards,
Simon
diff mbox

Patch

diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index 9cfa9b6..b16a392 100644
--- a/drivers/mtd/spi/sf_probe.c
+++ b/drivers/mtd/spi/sf_probe.c
@@ -503,6 +503,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 = "s25fl256s1" },
+	{ .compatible = "mx66l51235l" },
 	{ }
 };