Date:2010-07-14 22:59:30 (13 years 4 months ago)
Author:Lars C.
Commit:89f1993ab7a24d732c5baea3e61a3baa2a6a6b1c
Message:MIPS: jz4740: platform.c: Add memory region for NAND banks

Files: arch/mips/jz4740/platform.c (1 diff)

Change Details

arch/mips/jz4740/platform.c
159159};
160160
161161static struct resource jz4740_nand_resources[] = {
162    [0] = {
162    {
163        .name = "mmio",
163164        .start = CPHYSADDR(JZ4740_EMC_BASE_ADDR),
164        .end = CPHYSADDR(JZ4740_EMC_BASE_ADDR) + 0x10000 - 1,
165        .end = CPHYSADDR(JZ4740_EMC_BASE_ADDR) + 0x1000 - 1,
165166        .flags = IORESOURCE_MEM,
166167    },
168    {
169        .name = "bank1",
170        .start = 0x18000000,
171        .end = 0x180C0000 - 1,
172        .flags = IORESOURCE_MEM,
173    },
174    {
175        .name = "bank2",
176        .start = 0x14000000,
177        .end = 0x140C0000 - 1,
178        .flags = IORESOURCE_MEM,
179    },
180    {
181        .name = "bank3",
182        .start = 0x0C000000,
183        .end = 0x0C0C0000 - 1,
184        .flags = IORESOURCE_MEM,
185    },
186    {
187        .name = "bank4",
188        .start = 0x08000000,
189        .end = 0x080C0000 - 1,
190        .flags = IORESOURCE_MEM,
191    },
167192};
168193
169194struct platform_device jz4740_nand_device = {

Archive Download the corresponding diff file



interactive