1
0

430-mtd-add-myloader-partition-parser.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- a/drivers/mtd/Kconfig
  2. +++ b/drivers/mtd/Kconfig
  3. @@ -174,6 +174,22 @@ config MTD_BCM47XX_PARTS
  4. This provides partitions parser for devices based on BCM47xx
  5. boards.
  6. +config MTD_MYLOADER_PARTS
  7. + tristate "MyLoader partition parsing"
  8. + depends on ADM5120 || ATH25 || ATH79
  9. + ---help---
  10. + MyLoader is a bootloader which allows the user to define partitions
  11. + in flash devices, by putting a table in the second erase block
  12. + on the device, similar to a partition table. This table gives the
  13. + offsets and lengths of the user defined partitions.
  14. +
  15. + If you need code which can detect and parse these tables, and
  16. + register MTD 'partitions' corresponding to each image detected,
  17. + enable this option.
  18. +
  19. + You will still need the parsing functions to be called by the driver
  20. + for your particular device. It won't happen automatically.
  21. +
  22. comment "User Modules And Translation Layers"
  23. #
  24. --- a/drivers/mtd/Makefile
  25. +++ b/drivers/mtd/Makefile
  26. @@ -15,6 +15,7 @@ obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
  27. obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
  28. obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
  29. obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o
  30. +obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
  31. # 'Users' - code which presents functionality to userspace.
  32. obj-$(CONFIG_MTD_BLKDEVS) += mtd_blkdevs.o