320-ac49x-mtd-partitions.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- a/drivers/mtd/Kconfig
  2. +++ b/drivers/mtd/Kconfig
  3. @@ -164,6 +164,11 @@ config MTD_OF_PARTS
  4. the partition map from the children of the flash node,
  5. as described in Documentation/devicetree/booting-without-of.txt.
  6. +config MTD_AC49X_PARTS
  7. + tristate "AudioCodes AC49X partitioning support"
  8. + ---help---
  9. + AudioCodes AC49X partitioning support
  10. +
  11. config MTD_AR7_PARTS
  12. tristate "TI AR7 partitioning support"
  13. ---help---
  14. --- a/drivers/mtd/Makefile
  15. +++ b/drivers/mtd/Makefile
  16. @@ -11,6 +11,7 @@ obj-$(CONFIG_MTD_SPLIT) += mtdsplit/
  17. obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
  18. obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
  19. obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
  20. +obj-$(CONFIG_MTD_AC49X_PARTS) += ac49xpart.o
  21. obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
  22. obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o titanpart.o
  23. obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
  24. --- a/arch/mips/ar7/platform.c
  25. +++ b/arch/mips/ar7/platform.c
  26. @@ -202,7 +202,7 @@ static struct resource physmap_flash_res
  27. .end = 0x11ffffff,
  28. };
  29. -static const char *ar7_probe_types[] = { "ar7part", NULL };
  30. +static const char *ar7_probe_types[] = { "ac49xpart", "ar7part", NULL };
  31. static struct physmap_flash_data physmap_flash_data = {
  32. .width = 2,