110-flash.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --- a/drivers/mtd/Kconfig
  2. +++ b/drivers/mtd/Kconfig
  3. @@ -168,6 +168,12 @@
  4. the partition map from the children of the flash node,
  5. as described in Documentation/powerpc/booting-without-of.txt.
  6. +config MTD_AR7_PARTS
  7. + tristate "TI AR7 partitioning support"
  8. + depends on MTD_PARTITIONS
  9. + ---help---
  10. + TI AR7 partitioning support
  11. +
  12. comment "User Modules And Translation Layers"
  13. config MTD_CHAR
  14. --- a/drivers/mtd/Makefile
  15. +++ b/drivers/mtd/Makefile
  16. @@ -12,6 +12,7 @@
  17. obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
  18. obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
  19. obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
  20. +obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
  21. # 'Users' - code which presents functionality to userspace.
  22. obj-$(CONFIG_MTD_CHAR) += mtdchar.o
  23. --- a/drivers/mtd/maps/physmap.c
  24. +++ b/drivers/mtd/maps/physmap.c
  25. @@ -87,7 +87,8 @@
  26. static const char *rom_probe_types[] = { "cfi_probe", "jedec_probe", "map_rom", NULL };
  27. #ifdef CONFIG_MTD_PARTITIONS
  28. -static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL };
  29. +static const char *part_probe_types[] = {"cmdlinepart", "RedBoot",
  30. + "ar7part", NULL };
  31. #endif
  32. static int physmap_flash_probe(struct platform_device *dev)