intel.c 792 B

12345678910111213141516171819202122232425262728293031323334
  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 intel_nor_parts[] = {
  9. {
  10. .id = SNOR_ID(0x89, 0x89, 0x11),
  11. .name = "160s33b",
  12. .size = SZ_2M,
  13. .flags = SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE,
  14. }, {
  15. .id = SNOR_ID(0x89, 0x89, 0x12),
  16. .name = "320s33b",
  17. .size = SZ_4M,
  18. .flags = SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE,
  19. }, {
  20. .id = SNOR_ID(0x89, 0x89, 0x13),
  21. .name = "640s33b",
  22. .size = SZ_8M,
  23. .flags = SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE,
  24. }
  25. };
  26. const struct spi_nor_manufacturer spi_nor_intel = {
  27. .name = "intel",
  28. .parts = intel_nor_parts,
  29. .nparts = ARRAY_SIZE(intel_nor_parts),
  30. };