source: branches/backfire/target/linux/ar71xx/patches-2.6.32/109-mtd-wrt160nl-trx-parser.patch @ 27767

Last change on this file since 27767 was 27767, checked in by jow, 5 years ago

[backfire] backport upstream commit f2df1ae3fe8d44d51bd7218a9da9134b83c7531e
Adds support for the Spansion S25FL016K and S25FL064K SPI flash chips.

File size: 1.3 KB
  • drivers/mtd/devices/m25p80.c

    a b static int __devinit m25p_probe(struct s 
    890890                                        part_probes, &parts, 0); 
    891891                } 
    892892#endif 
     893 
     894#ifdef CONFIG_MTD_WRT160NL_PARTS 
     895                if (nr_parts <= 0) { 
     896                        static const char *part_probes[] 
     897                                        = { "wrt160nl", NULL, }; 
     898 
     899                        nr_parts = parse_mtd_partitions(&flash->mtd, 
     900                                        part_probes, &parts, 0); 
     901                } 
     902#endif 
    893903                if (nr_parts <= 0 && data && data->parts) { 
    894904                        parts = data->parts; 
    895905                        nr_parts = data->nr_parts; 
  • drivers/mtd/Kconfig

    a b config MTD_AR7_PARTS 
    181181        ---help--- 
    182182          TI AR7 partitioning support 
    183183 
     184config MTD_WRT160NL_PARTS 
     185        tristate "Linksys WRT160NL partitioning support" 
     186        depends on MTD_PARTITIONS && AR71XX_MACH_WRT160NL 
     187        ---help--- 
     188           Linksys WRT160NL partitioning support 
     189 
    184190config MTD_MYLOADER_PARTS 
    185191        tristate "MyLoader partition parsing" 
    186192        depends on MTD_PARTITIONS && (ADM5120 || ATHEROS_AR231X || ATHEROS_AR71XX) 
  • drivers/mtd/Makefile

    a b obj-$(CONFIG_MTD_REDBOOT_PARTS) += redbo 
    1212obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o 
    1313obj-$(CONFIG_MTD_AFS_PARTS)     += afs.o 
    1414obj-$(CONFIG_MTD_AR7_PARTS)     += ar7part.o 
     15obj-$(CONFIG_MTD_WRT160NL_PARTS) += wrt160nl_part.o 
    1516obj-$(CONFIG_MTD_OF_PARTS)      += ofpart.o 
    1617obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o 
    1718 
Note: See TracBrowser for help on using the repository browser.