xmc.c 695 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2005, Intec Automation Inc.
  4. * Copyright (C) 2014, Freescale Semiconductor, Inc.
  5. */
  6. #include <linux/mtd/spi-nor.h>
  7. #include "core.h"
  8. static const struct flash_info xmc_nor_parts[] = {
  9. /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
  10. { "XM25QH64A", INFO(0x207017, 0, 64 * 1024, 128)
  11. NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
  12. SPI_NOR_QUAD_READ) },
  13. { "XM25QH128A", INFO(0x207018, 0, 64 * 1024, 256)
  14. NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
  15. SPI_NOR_QUAD_READ) },
  16. };
  17. const struct spi_nor_manufacturer spi_nor_xmc = {
  18. .name = "xmc",
  19. .parts = xmc_nor_parts,
  20. .nparts = ARRAY_SIZE(xmc_nor_parts),
  21. };