xmc.c 740 B

123456789101112131415161718192021222324252627282930
  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. {
  10. .id = SNOR_ID(0x20, 0x70, 0x17),
  11. .name = "XM25QH64A",
  12. .size = SZ_8M,
  13. .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
  14. }, {
  15. .id = SNOR_ID(0x20, 0x70, 0x18),
  16. .name = "XM25QH128A",
  17. .size = SZ_16M,
  18. .no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ,
  19. },
  20. };
  21. /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */
  22. const struct spi_nor_manufacturer spi_nor_xmc = {
  23. .name = "xmc",
  24. .parts = xmc_nor_parts,
  25. .nparts = ARRAY_SIZE(xmc_nor_parts),
  26. };