001-rdc3210_flash_map.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --- a/drivers/mtd/maps/Kconfig
  2. +++ b/drivers/mtd/maps/Kconfig
  3. @@ -114,6 +114,50 @@ config MTD_SUN_UFLASH
  4. Sun Microsystems boardsets. This driver will require CFI support
  5. in the kernel, so if you did not enable CFI previously, do that now.
  6. +config MTD_RDC3210
  7. + tristate "CFI Flash device mapped on RDC3210"
  8. + depends on X86 && MTD_CFI && MTD_PARTITIONS
  9. + help
  10. + RDC-3210 is the flash device we find on Ralink reference board.
  11. +
  12. +config MTD_RDC3210_STATIC_MAP
  13. + bool "Partitions on RDC3210 mapped statically" if MTD_RDC3210
  14. + select MTD_RDC3210_FACTORY_PRESENT
  15. + help
  16. + The mapping driver will use the static partition map for the
  17. + RDC-3210 flash device.
  18. +
  19. +config MTD_RDC3210_FACTORY_PRESENT
  20. + bool "Reserve a partition on RDC3210 for factory presets"
  21. + depends on MTD_RDC3210
  22. + default y
  23. + help
  24. + The mapping driver will reserve a partition on the RDC-3210 flash
  25. + device for resetting flash contents to factory defaults.
  26. +
  27. +config MTD_RDC3210_ALLOW_JFFS2
  28. + bool "JFFS2 filesystem usable in a partition on RDC3210"
  29. + depends on MTD_RDC3210 && !MTD_RDC3210_STATIC_MAP
  30. + help
  31. + The mapping driver will align a partition on the RDC-3210 flash
  32. + device to an erase-block boundary so that a JFFS2 filesystem may
  33. + reside on it.
  34. +
  35. +config MTD_RDC3210_SIZE
  36. + hex "Amount of flash memory on RDC3210"
  37. + depends on MTD_RDC3210
  38. + default "0x400000"
  39. + help
  40. + Total size in bytes of the RDC-3210 flash device
  41. +
  42. +config MTD_RDC3210_BUSWIDTH
  43. + int "Width of CFI Flash device mapped on RDC3210"
  44. + depends on MTD_RDC3210
  45. + default "2"
  46. + help
  47. + Number of bytes addressed on the RDC-3210 flash device before
  48. + addressing the same chip again
  49. +
  50. config MTD_SC520CDP
  51. tristate "CFI Flash device mapped on AMD SC520 CDP"
  52. depends on X86 && MTD_CFI && MTD_CONCAT
  53. --- a/drivers/mtd/maps/Makefile
  54. +++ b/drivers/mtd/maps/Makefile
  55. @@ -26,6 +26,7 @@ obj-$(CONFIG_MTD_PHYSMAP) += physmap.o
  56. obj-$(CONFIG_MTD_PHYSMAP_OF) += physmap_of.o
  57. obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcmsp-flash.o
  58. obj-$(CONFIG_MTD_PCMCIA) += pcmciamtd.o
  59. +obj-$(CONFIG_MTD_RDC3210) += rdc3210.o
  60. obj-$(CONFIG_MTD_RPXLITE) += rpxlite.o
  61. obj-$(CONFIG_MTD_TQM8XXL) += tqm8xxl.o
  62. obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o