diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-05 12:03:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-05 12:03:46 -0400 |
commit | cdd854bc42b5e6c79bbbc40c6600d995ffe6e747 (patch) | |
tree | 18c4dcc07bbb8aeb2b23bc812cd60cc293f36cd8 /drivers/mtd | |
parent | bbc4fd12a635492ad9d12bb418124fa2d5f0d734 (diff) | |
parent | 42a0ae2282b512d1a8f6f020327f5f7b8f31a5ea (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (79 commits)
powerpc/8xx: Add support for the MPC8xx based boards from TQC
powerpc/85xx: Introduce support for the Freescale P1022DS reference board
powerpc/85xx: Adding DTS for the STx GP3-SSA MPC8555 board
powerpc/85xx: Change deprecated binding for 85xx-based boards
powerpc/tqm85xx: add a quirk for ti1520 PCMCIA bridge
powerpc/tqm85xx: update PCI interrupt-map attribute
powerpc/mpc8308rdb: support for MPC8308RDB board from Freescale
powerpc/fsl_pci: add quirk for mpc8308 pcie bridge
powerpc/85xx: Cleanup QE initialization for MPC85xxMDS boards
powerpc/85xx: Fix booting for P1021MDS boards
powerpc/85xx: Fix SWIOTLB initalization for MPC85xxMDS boards
powerpc/85xx: kexec for SMP 85xx BookE systems
powerpc/5200/i2c: improve i2c bus error recovery
of/xilinxfb: update tft compatible versions
powerpc/fsl-diu-fb: Support setting display mode using EDID
powerpc/5121: doc/dts-bindings: update doc of FSL DIU bindings
powerpc/5121: shared DIU framebuffer support
powerpc/5121: move fsl-diu-fb.h to include/linux
powerpc/5121: fsl-diu-fb: fix issue with re-enabling DIU area descriptor
powerpc/512x: add clock structure for Video-IN (VIU) unit
...
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/maps/Kconfig | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/redwood.c | 43 |
2 files changed, 1 insertions, 44 deletions
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index f22bc9f05ddb..6629d09f3b38 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig | |||
@@ -321,7 +321,7 @@ config MTD_CFI_FLAGADM | |||
321 | 321 | ||
322 | config MTD_REDWOOD | 322 | config MTD_REDWOOD |
323 | tristate "CFI Flash devices mapped on IBM Redwood" | 323 | tristate "CFI Flash devices mapped on IBM Redwood" |
324 | depends on MTD_CFI && ( REDWOOD_4 || REDWOOD_5 || REDWOOD_6 ) | 324 | depends on MTD_CFI |
325 | help | 325 | help |
326 | This enables access routines for the flash chips on the IBM | 326 | This enables access routines for the flash chips on the IBM |
327 | Redwood board. If you have one of these boards and would like to | 327 | Redwood board. If you have one of these boards and would like to |
diff --git a/drivers/mtd/maps/redwood.c b/drivers/mtd/maps/redwood.c index 933c0b63b016..d2c9db00db0c 100644 --- a/drivers/mtd/maps/redwood.c +++ b/drivers/mtd/maps/redwood.c | |||
@@ -22,8 +22,6 @@ | |||
22 | 22 | ||
23 | #include <asm/io.h> | 23 | #include <asm/io.h> |
24 | 24 | ||
25 | #if !defined (CONFIG_REDWOOD_6) | ||
26 | |||
27 | #define WINDOW_ADDR 0xffc00000 | 25 | #define WINDOW_ADDR 0xffc00000 |
28 | #define WINDOW_SIZE 0x00400000 | 26 | #define WINDOW_SIZE 0x00400000 |
29 | 27 | ||
@@ -69,47 +67,6 @@ static struct mtd_partition redwood_flash_partitions[] = { | |||
69 | } | 67 | } |
70 | }; | 68 | }; |
71 | 69 | ||
72 | #else /* CONFIG_REDWOOD_6 */ | ||
73 | /* FIXME: the window is bigger - armin */ | ||
74 | #define WINDOW_ADDR 0xff800000 | ||
75 | #define WINDOW_SIZE 0x00800000 | ||
76 | |||
77 | #define RW_PART0_OF 0 | ||
78 | #define RW_PART0_SZ 0x400000 /* 4 MiB data */ | ||
79 | #define RW_PART1_OF RW_PART0_OF + RW_PART0_SZ | ||
80 | #define RW_PART1_SZ 0x10000 /* 64K VPD */ | ||
81 | #define RW_PART2_OF RW_PART1_OF + RW_PART1_SZ | ||
82 | #define RW_PART2_SZ 0x400000 - (0x10000 + 0x20000) | ||
83 | #define RW_PART3_OF RW_PART2_OF + RW_PART2_SZ | ||
84 | #define RW_PART3_SZ 0x20000 | ||
85 | |||
86 | static struct mtd_partition redwood_flash_partitions[] = { | ||
87 | { | ||
88 | .name = "Redwood filesystem", | ||
89 | .offset = RW_PART0_OF, | ||
90 | .size = RW_PART0_SZ | ||
91 | }, | ||
92 | { | ||
93 | .name = "Redwood OpenBIOS Vital Product Data", | ||
94 | .offset = RW_PART1_OF, | ||
95 | .size = RW_PART1_SZ, | ||
96 | .mask_flags = MTD_WRITEABLE /* force read-only */ | ||
97 | }, | ||
98 | { | ||
99 | .name = "Redwood kernel", | ||
100 | .offset = RW_PART2_OF, | ||
101 | .size = RW_PART2_SZ | ||
102 | }, | ||
103 | { | ||
104 | .name = "Redwood OpenBIOS", | ||
105 | .offset = RW_PART3_OF, | ||
106 | .size = RW_PART3_SZ, | ||
107 | .mask_flags = MTD_WRITEABLE /* force read-only */ | ||
108 | } | ||
109 | }; | ||
110 | |||
111 | #endif /* CONFIG_REDWOOD_6 */ | ||
112 | |||
113 | struct map_info redwood_flash_map = { | 70 | struct map_info redwood_flash_map = { |
114 | .name = "IBM Redwood", | 71 | .name = "IBM Redwood", |
115 | .size = WINDOW_SIZE, | 72 | .size = WINDOW_SIZE, |