110-flash.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Index: linux-2.6.24.7/drivers/mtd/Kconfig
  2. ===================================================================
  3. --- linux-2.6.24.7.orig/drivers/mtd/Kconfig
  4. +++ linux-2.6.24.7/drivers/mtd/Kconfig
  5. @@ -160,6 +160,12 @@ config MTD_AFS_PARTS
  6. for your particular device. It won't happen automatically. The
  7. 'armflash' map driver (CONFIG_MTD_ARMFLASH) does this, for example.
  8. +config MTD_AR7_PARTS
  9. + tristate "TI AR7 partitioning support"
  10. + depends on MTD_PARTITIONS
  11. + ---help---
  12. + TI AR7 partitioning support
  13. +
  14. comment "User Modules And Translation Layers"
  15. config MTD_CHAR
  16. Index: linux-2.6.24.7/drivers/mtd/Makefile
  17. ===================================================================
  18. --- linux-2.6.24.7.orig/drivers/mtd/Makefile
  19. +++ linux-2.6.24.7/drivers/mtd/Makefile
  20. @@ -11,6 +11,7 @@ obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o
  21. obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
  22. obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
  23. obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
  24. +obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
  25. # 'Users' - code which presents functionality to userspace.
  26. obj-$(CONFIG_MTD_CHAR) += mtdchar.o
  27. Index: linux-2.6.24.7/drivers/mtd/maps/physmap.c
  28. ===================================================================
  29. --- linux-2.6.24.7.orig/drivers/mtd/maps/physmap.c
  30. +++ linux-2.6.24.7/drivers/mtd/maps/physmap.c
  31. @@ -74,7 +74,8 @@ static int physmap_flash_remove(struct p
  32. static const char *rom_probe_types[] = { "cfi_probe", "jedec_probe", "map_rom", NULL };
  33. #ifdef CONFIG_MTD_PARTITIONS
  34. -static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL };
  35. +static const char *part_probe_types[] = {"cmdlinepart", "RedBoot",
  36. + "ar7part", NULL };
  37. #endif
  38. static int physmap_flash_probe(struct platform_device *dev)