[U-Boot] sf: Add Macronix MX25U25645G ID

Message ID 20180516144542.4989-1-marex@denx.de
State Superseded
Headers show
Series
  • [U-Boot] sf: Add Macronix MX25U25645G ID
Related show

Commit Message

Marek Vasut May 16, 2018, 2:45 p.m.
Add ID for the Macronix MX25U25645G flash.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jagan Teki <jagan@openedev.com>
---
 drivers/mtd/spi/spi_flash_ids.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jagan Teki May 17, 2018, 6:28 a.m. | #1
On Wed, May 16, 2018 at 8:15 PM, Marek Vasut <marex@denx.de> wrote:
> Add ID for the Macronix MX25U25645G flash.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Jagan Teki <jagan@openedev.com>
> ---
>  drivers/mtd/spi/spi_flash_ids.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c
> index a46227f172..3b8f254ca2 100644
> --- a/drivers/mtd/spi/spi_flash_ids.c
> +++ b/drivers/mtd/spi/spi_flash_ids.c
> @@ -85,6 +85,7 @@ const struct spi_flash_info spi_flash_ids[] = {
>         {"mx25u6435f",     INFO(0xc22537, 0x0, 64 * 1024,   128, RD_FULL | WR_QPP) },
>         {"mx25l12855e",    INFO(0xc22618, 0x0, 64 * 1024,   256, RD_FULL | WR_QPP) },
>         {"mx25u1635e",     INFO(0xc22535, 0x0, 64 * 1024,  32, SECT_4K) },
> +       {"mx25u25645g",    INFO(0xc22539, 0x0, 64 * 1024,   512, RD_FULL | WR_QPP) },

Both mx25u25635f and mx25u25645g have similar kind of flashes with
same JEDEC, better to use mx25u25635f for Linux compatibility.

Jagan.

Patch

diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c
index a46227f172..3b8f254ca2 100644
--- a/drivers/mtd/spi/spi_flash_ids.c
+++ b/drivers/mtd/spi/spi_flash_ids.c
@@ -85,6 +85,7 @@  const struct spi_flash_info spi_flash_ids[] = {
 	{"mx25u6435f",	   INFO(0xc22537, 0x0, 64 * 1024,   128, RD_FULL | WR_QPP) },
 	{"mx25l12855e",	   INFO(0xc22618, 0x0, 64 * 1024,   256, RD_FULL | WR_QPP) },
 	{"mx25u1635e",     INFO(0xc22535, 0x0, 64 * 1024,  32, SECT_4K) },
+	{"mx25u25645g",    INFO(0xc22539, 0x0, 64 * 1024,   512, RD_FULL | WR_QPP) },
 	{"mx66u51235f",    INFO(0xc2253a, 0x0, 64 * 1024,  1024, RD_FULL | WR_QPP) },
 	{"mx66l1g45g",     INFO(0xc2201b, 0x0, 64 * 1024,  2048, RD_FULL | WR_QPP) },
 #endif