diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-09 13:33:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-09 13:33:19 -0400 |
commit | ef9a61bef917e38f8e096f6df303329aed6cf467 (patch) | |
tree | 31cfe2444d0270e77ff8ef792df11591fed6075c /arch | |
parent | b5f0998cae3d7ea56d3d8377e46328fe972b9546 (diff) | |
parent | 6c3b88970175e18a67eb8e55c4eba10614d0d5dc (diff) |
Merge tag 'for-linus-20130909' of git://git.infradead.org/linux-mtd
Pull mtd updates from David Woodhouse:
- factor out common code from MTD tests
- nand-gpio cleanup and portability to non-ARM
- m25p80 support for 4-byte addressing chips, other new chips
- pxa3xx cleanup and support for new platforms
- remove obsolete alauda, octagon-5066 drivers
- erase/write support for bcm47xxsflash
- improve detection of ECC requirements for NAND, controller setup
- NFC acceleration support for atmel-nand, read/write via SRAM
- etc
* tag 'for-linus-20130909' of git://git.infradead.org/linux-mtd: (184 commits)
mtd: chips: Add support for PMC SPI Flash chips in m25p80.c
mtd: ofpart: use for_each_child_of_node() macro
mtd: mtdswap: replace strict_strtoul() with kstrtoul()
mtd cs553x_nand: use kzalloc() instead of memset
mtd: atmel_nand: fix error return code in atmel_nand_probe()
mtd: bcm47xxsflash: writing support
mtd: bcm47xxsflash: implement erasing support
mtd: bcm47xxsflash: convert to module_platform_driver instead of init/exit
mtd: bcm47xxsflash: convert kzalloc to avoid invalid access
mtd: remove alauda driver
mtd: nand: mxc_nand: mark 'const' properly
mtd: maps: cfi_flagadm: add missing __iomem annotation
mtd: spear_smi: add missing __iomem annotation
mtd: r852: Staticize local symbols
mtd: nandsim: Staticize local symbols
mtd: impa7: add missing __iomem annotation
mtd: sm_ftl: Staticize local symbols
mtd: m25p80: add support for mr25h10
mtd: m25p80: make CONFIG_M25PXX_USE_FAST_READ safe to enable
mtd: m25p80: Pass flags through CAT25_INFO macro
...
Diffstat (limited to 'arch')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 3 | ||||
-rw-r--r-- | arch/mips/bcm63xx/nvram.c | 11 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 7f8759a8a92a..a68f3cf7c3c1 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
@@ -1983,6 +1983,9 @@ at32_add_device_nand(unsigned int id, struct atmel_nand_data *data) | |||
1983 | ARRAY_SIZE(smc_cs3_resource))) | 1983 | ARRAY_SIZE(smc_cs3_resource))) |
1984 | goto fail; | 1984 | goto fail; |
1985 | 1985 | ||
1986 | /* For at32ap7000, we use the reset workaround for nand driver */ | ||
1987 | data->need_reset_workaround = true; | ||
1988 | |||
1986 | if (platform_device_add_data(pdev, data, | 1989 | if (platform_device_add_data(pdev, data, |
1987 | sizeof(struct atmel_nand_data))) | 1990 | sizeof(struct atmel_nand_data))) |
1988 | goto fail; | 1991 | goto fail; |
diff --git a/arch/mips/bcm63xx/nvram.c b/arch/mips/bcm63xx/nvram.c index e652e578a679..4b50d40f7451 100644 --- a/arch/mips/bcm63xx/nvram.c +++ b/arch/mips/bcm63xx/nvram.c | |||
@@ -35,6 +35,8 @@ struct bcm963xx_nvram { | |||
35 | u32 checksum_high; | 35 | u32 checksum_high; |
36 | }; | 36 | }; |
37 | 37 | ||
38 | #define BCM63XX_DEFAULT_PSI_SIZE 64 | ||
39 | |||
38 | static struct bcm963xx_nvram nvram; | 40 | static struct bcm963xx_nvram nvram; |
39 | static int mac_addr_used; | 41 | static int mac_addr_used; |
40 | 42 | ||
@@ -114,3 +116,12 @@ int bcm63xx_nvram_get_mac_address(u8 *mac) | |||
114 | return 0; | 116 | return 0; |
115 | } | 117 | } |
116 | EXPORT_SYMBOL(bcm63xx_nvram_get_mac_address); | 118 | EXPORT_SYMBOL(bcm63xx_nvram_get_mac_address); |
119 | |||
120 | int bcm63xx_nvram_get_psi_size(void) | ||
121 | { | ||
122 | if (nvram.psi_size > 0) | ||
123 | return nvram.psi_size; | ||
124 | |||
125 | return BCM63XX_DEFAULT_PSI_SIZE; | ||
126 | } | ||
127 | EXPORT_SYMBOL(bcm63xx_nvram_get_psi_size); | ||
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h index 4e0b6bc1165e..348df49dcc9f 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_nvram.h | |||
@@ -30,4 +30,6 @@ u8 *bcm63xx_nvram_get_name(void); | |||
30 | */ | 30 | */ |
31 | int bcm63xx_nvram_get_mac_address(u8 *mac); | 31 | int bcm63xx_nvram_get_mac_address(u8 *mac); |
32 | 32 | ||
33 | int bcm63xx_nvram_get_psi_size(void); | ||
34 | |||
33 | #endif /* BCM63XX_NVRAM_H */ | 35 | #endif /* BCM63XX_NVRAM_H */ |