diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 13:23:43 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 13:23:43 -0500 |
| commit | 60d9aa758c00f20ade0cb1951f6a934f628dd2d7 (patch) | |
| tree | e3bdfa4ec0d3f9a29a822810b8b9188c7d613cbd | |
| parent | b2adf0cbec4cf0934c63f48f893e0cebde380d0c (diff) | |
| parent | 2e16cfca6e17ae37ae21feca080a6f2eca9087dc (diff) | |
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (90 commits)
jffs2: Fix long-standing bug with symlink garbage collection.
mtd: OneNAND: Fix test of unsigned in onenand_otp_walk()
mtd: cfi_cmdset_0002, fix lock imbalance
Revert "mtd: move mxcnd_remove to .exit.text"
mtd: m25p80: add support for Macronix MX25L4005A
kmsg_dump: fix build for CONFIG_PRINTK=n
mtd: nandsim: add support for 4KiB pages
mtd: mtdoops: refactor as a kmsg_dumper
mtd: mtdoops: make record size configurable
mtd: mtdoops: limit the maximum mtd partition size
mtd: mtdoops: keep track of used/unused pages in an array
mtd: mtdoops: several minor cleanups
core: Add kernel message dumper to call on oopses and panics
mtd: add ARM pismo support
mtd: pxa3xx_nand: Fix PIO data transfer
mtd: nand: fix multi-chip suspend problem
mtd: add support for switching old SST chips into QRY mode
mtd: fix M29W800D dev_id and uaddr
mtd: don't use PF_MEMALLOC
mtd: Add bad block table overrides to Davinci NAND driver
...
Fixed up conflicts (mostly trivial) in
drivers/mtd/devices/m25p80.c
drivers/mtd/maps/pcmciamtd.c
drivers/mtd/nand/pxa3xx_nand.c
kernel/printk.c
61 files changed, 3606 insertions, 1736 deletions
diff --git a/arch/arm/mach-bcmring/arch.c b/arch/arm/mach-bcmring/arch.c index fbe6fa02c882..53dd2a9eecf9 100644 --- a/arch/arm/mach-bcmring/arch.c +++ b/arch/arm/mach-bcmring/arch.c | |||
| @@ -70,9 +70,19 @@ static struct ctl_table bcmring_sysctl_reboot[] = { | |||
| 70 | {} | 70 | {} |
| 71 | }; | 71 | }; |
| 72 | 72 | ||
| 73 | static struct resource nand_resource[] = { | ||
| 74 | [0] = { | ||
| 75 | .start = MM_ADDR_IO_NAND, | ||
| 76 | .end = MM_ADDR_IO_NAND + 0x1000 - 1, | ||
| 77 | .flags = IORESOURCE_MEM, | ||
| 78 | }, | ||
| 79 | }; | ||
| 80 | |||
| 73 | static struct platform_device nand_device = { | 81 | static struct platform_device nand_device = { |
| 74 | .name = "bcm-nand", | 82 | .name = "bcm-nand", |
| 75 | .id = -1, | 83 | .id = -1, |
| 84 | .resource = nand_resource, | ||
| 85 | .num_resources = ARRAY_SIZE(nand_resource), | ||
| 76 | }; | 86 | }; |
| 77 | 87 | ||
| 78 | static struct platform_device *devices[] __initdata = { | 88 | static struct platform_device *devices[] __initdata = { |
diff --git a/arch/arm/mach-bcmring/include/mach/reg_nand.h b/arch/arm/mach-bcmring/include/mach/reg_nand.h new file mode 100644 index 000000000000..387376ffb56b --- /dev/null +++ b/arch/arm/mach-bcmring/include/mach/reg_nand.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /***************************************************************************** | ||
| 2 | * Copyright 2001 - 2008 Broadcom Corporation. All rights reserved. | ||
| 3 | * | ||
| 4 | * Unless you and Broadcom execute a separate written software license | ||
| 5 | * agreement governing use of this software, this software is licensed to you | ||
| 6 | * under the terms of the GNU General Public License version 2, available at | ||
| 7 | * http://www.broadcom.com/licenses/GPLv2.php (the "GPL"). | ||
| 8 | * | ||
| 9 | * Notwithstanding the above, under no circumstances may you combine this | ||
| 10 | * software in any way with any other Broadcom software provided under a | ||
| 11 | * license other than the GPL, without Broadcom's express prior written | ||
| 12 | * consent. | ||
| 13 | *****************************************************************************/ | ||
| 14 | |||
| 15 | /* | ||
| 16 | * | ||
| 17 | ***************************************************************************** | ||
| 18 | * | ||
| 19 | * REG_NAND.h | ||
| 20 | * | ||
| 21 | * PURPOSE: | ||
| 22 | * | ||
| 23 | * This file contains definitions for the nand registers: | ||
| 24 | * | ||
| 25 | * NOTES: | ||
| 26 | * | ||
| 27 | *****************************************************************************/ | ||
| 28 | |||
| 29 | #if !defined(__ASM_ARCH_REG_NAND_H) | ||
| 30 | #define __ASM_ARCH_REG_NAND_H | ||
| 31 | |||
| 32 | /* ---- Include Files ---------------------------------------------------- */ | ||
| 33 | #include <csp/reg.h> | ||
| 34 | #include <mach/reg_umi.h> | ||
| 35 | |||
| 36 | /* ---- Constants and Types ---------------------------------------------- */ | ||
| 37 | |||
| 38 | #define HW_NAND_BASE MM_IO_BASE_NAND /* NAND Flash */ | ||
| 39 | |||
| 40 | /* DMA accesses by the bootstrap need hard nonvirtual addresses */ | ||
| 41 | #define REG_NAND_CMD __REG16(HW_NAND_BASE + 0) | ||
| 42 | #define REG_NAND_ADDR __REG16(HW_NAND_BASE + 4) | ||
| 43 | |||
| 44 | #define REG_NAND_PHYS_DATA16 (HW_NAND_BASE + 8) | ||
| 45 | #define REG_NAND_PHYS_DATA8 (HW_NAND_BASE + 8) | ||
| 46 | #define REG_NAND_DATA16 __REG16(REG_NAND_PHYS_DATA16) | ||
| 47 | #define REG_NAND_DATA8 __REG8(REG_NAND_PHYS_DATA8) | ||
| 48 | |||
| 49 | /* use appropriate offset to make sure it start at the 1K boundary */ | ||
| 50 | #define REG_NAND_PHYS_DATA_DMA (HW_NAND_BASE + 0x400) | ||
| 51 | #define REG_NAND_DATA_DMA __REG32(REG_NAND_PHYS_DATA_DMA) | ||
| 52 | |||
| 53 | /* Linux DMA requires physical address of the data register */ | ||
| 54 | #define REG_NAND_DATA16_PADDR HW_IO_VIRT_TO_PHYS(REG_NAND_PHYS_DATA16) | ||
| 55 | #define REG_NAND_DATA8_PADDR HW_IO_VIRT_TO_PHYS(REG_NAND_PHYS_DATA8) | ||
| 56 | #define REG_NAND_DATA_PADDR HW_IO_VIRT_TO_PHYS(REG_NAND_PHYS_DATA_DMA) | ||
| 57 | |||
| 58 | #define NAND_BUS_16BIT() (0) | ||
| 59 | #define NAND_BUS_8BIT() (!NAND_BUS_16BIT()) | ||
| 60 | |||
| 61 | /* Register offsets */ | ||
| 62 | #define REG_NAND_CMD_OFFSET (0) | ||
| 63 | #define REG_NAND_ADDR_OFFSET (4) | ||
| < | |||
