001-rdc3210_flash_map.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. diff -urN linux-2.6.17/drivers/mtd/maps/Kconfig linux-2.6.17.new/drivers/mtd/maps/Kconfig
  2. --- linux-2.6.17/drivers/mtd/maps/Kconfig 2006-06-18 03:49:35.000000000 +0200
  3. +++ linux-2.6.17.new/drivers/mtd/maps/Kconfig 2006-09-24 20:28:11.000000000 +0200
  4. @@ -76,6 +76,50 @@
  5. PNC-2000 is the name of Network Camera product from PHOTRON
  6. Ltd. in Japan. It uses CFI-compliant flash.
  7. +config MTD_RDC3210
  8. + tristate "CFI Flash device mapped on RDC3210"
  9. + depends on X86 && MTD_CFI && MTD_PARTITIONS
  10. + help
  11. + RDC-3210 is the flash device we find on Ralink reference board.
  12. +
  13. +config MTD_RDC3210_STATIC_MAP
  14. + bool "Partitions on RDC3210 mapped statically" if MTD_RDC3210
  15. + select MTD_RDC3210_FACTORY_PRESENT
  16. + help
  17. + The mapping driver will use the static partition map for the
  18. + RDC-3210 flash device.
  19. +
  20. +config MTD_RDC3210_FACTORY_PRESENT
  21. + bool "Reserve a partition on RDC3210 for factory presets"
  22. + depends on MTD_RDC3210
  23. + default y
  24. + help
  25. + The mapping driver will reserve a partition on the RDC-3210 flash
  26. + device for resetting flash contents to factory defaults.
  27. +
  28. +config MTD_RDC3210_ALLOW_JFFS2
  29. + bool "JFFS2 filesystem usable in a partition on RDC3210"
  30. + depends on MTD_RDC3210 && !MTD_RDC3210_STATIC_MAP
  31. + help
  32. + The mapping driver will align a partition on the RDC-3210 flash
  33. + device to an erase-block boundary so that a JFFS2 filesystem may
  34. + reside on it.
  35. +
  36. +config MTD_RDC3210_SIZE
  37. + hex "Amount of flash memory on RDC3210"
  38. + depends on MTD_RDC3210
  39. + default "0x400000"
  40. + help
  41. + Total size in bytes of the RDC-3210 flash device
  42. +
  43. +config MTD_RDC3210_BUSWIDTH
  44. + int "Width of CFI Flash device mapped on RDC3210"
  45. + depends on MTD_RDC3210
  46. + default "2"
  47. + help
  48. + Number of bytes addressed on the RDC-3210 flash device before
  49. + addressing the same chip again
  50. +
  51. config MTD_SC520CDP
  52. tristate "CFI Flash device mapped on AMD SC520 CDP"
  53. depends on X86 && MTD_CFI && MTD_CONCAT
  54. diff -urN linux-2.6.17/drivers/mtd/maps/Makefile linux-2.6.17.new/drivers/mtd/maps/Makefile
  55. --- linux-2.6.17/drivers/mtd/maps/Makefile 2006-06-18 03:49:35.000000000 +0200
  56. +++ linux-2.6.17.new/drivers/mtd/maps/Makefile 2006-09-24 20:26:10.000000000 +0200
  57. @@ -28,6 +28,7 @@
  58. obj-$(CONFIG_MTD_PHYSMAP) += physmap.o
  59. obj-$(CONFIG_MTD_PNC2000) += pnc2000.o
  60. obj-$(CONFIG_MTD_PCMCIA) += pcmciamtd.o
  61. +obj-$(CONFIG_MTD_RDC3210) += rdc3210.o
  62. obj-$(CONFIG_MTD_RPXLITE) += rpxlite.o
  63. obj-$(CONFIG_MTD_TQM8XXL) += tqm8xxl.o
  64. obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o