110-flash.patch 909 B

1234567891011121314151617181920212223242526272829
  1. --- a/drivers/mtd/Makefile
  2. +++ b/drivers/mtd/Makefile
  3. @@ -10,7 +10,7 @@ obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
  4. obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
  5. obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
  6. obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
  7. -obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
  8. +obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o titanpart.o
  9. obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
  10. obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
  11. --- a/arch/mips/ar7/platform.c
  12. +++ b/arch/mips/ar7/platform.c
  13. @@ -199,11 +199,14 @@ static struct resource physmap_flash_res
  14. .name = "mem",
  15. .flags = IORESOURCE_MEM,
  16. .start = 0x10000000,
  17. - .end = 0x107fffff,
  18. + .end = 0x11ffffff,
  19. };
  20. +static const char *ar7_probe_types[] = { "ar7part", NULL };
  21. +
  22. static struct physmap_flash_data physmap_flash_data = {
  23. .width = 2,
  24. + .part_probe_types = ar7_probe_types,
  25. };
  26. static struct platform_device physmap_flash = {