aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-03-25 20:09:12 -0400
committerBryan Wu <cooloney@kernel.org>2008-03-25 20:09:12 -0400
commit793dc27b51b2ffff95b72408e2ef44e0995c185b (patch)
treefc9904b1043e1d2eb3d2d0da6645cbe6224f2f5d /arch
parent2e8d7965e69a4879f9331d35b13ce234a3df4a04 (diff)
[Blackfin] arch: conditionally enable flash resources since it requests the async memory bank
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/mach-bf533/boards/stamp.c5
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c5
-rw-r--r--arch/blackfin/mach-bf548/boards/ezkit.c5
-rw-r--r--arch/blackfin/mach-bf561/boards/ezkit.c5
4 files changed, 20 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c
index b2ac4816ae62..ecf449b322d9 100644
--- a/arch/blackfin/mach-bf533/boards/stamp.c
+++ b/arch/blackfin/mach-bf533/boards/stamp.c
@@ -109,6 +109,7 @@ static struct platform_device net2272_bfin_device = {
109}; 109};
110#endif 110#endif
111 111
112#if defined(CONFIG_MTD_BF5xx) || defined(CONFIG_MTD_BF5xx_MODULE)
112static struct mtd_partition stamp_partitions[] = { 113static struct mtd_partition stamp_partitions[] = {
113 { 114 {
114 .name = "Bootloader", 115 .name = "Bootloader",
@@ -152,6 +153,7 @@ static struct platform_device stamp_flash_device = {
152 .num_resources = ARRAY_SIZE(stamp_flash_resource), 153 .num_resources = ARRAY_SIZE(stamp_flash_resource),
153 .resource = stamp_flash_resource, 154 .resource = stamp_flash_resource,
154}; 155};
156#endif
155 157
156#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) 158#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
157/* all SPI peripherals info goes here */ 159/* all SPI peripherals info goes here */
@@ -515,7 +517,10 @@ static struct platform_device *stamp_devices[] __initdata = {
515#endif 517#endif
516 518
517 &bfin_gpios_device, 519 &bfin_gpios_device,
520
521#if defined(CONFIG_MTD_BF5xx) || defined(CONFIG_MTD_BF5xx_MODULE)
518 &stamp_flash_device, 522 &stamp_flash_device,
523#endif
519}; 524};
520 525
521static int __init stamp_init(void) 526static int __init stamp_init(void)
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index ea83148993da..09828a0e999c 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -353,6 +353,7 @@ static struct platform_device net2272_bfin_device = {
353}; 353};
354#endif 354#endif
355 355
356#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
356static struct mtd_partition stamp_partitions[] = { 357static struct mtd_partition stamp_partitions[] = {
357 { 358 {
358 .name = "Bootloader", 359 .name = "Bootloader",
@@ -395,6 +396,7 @@ static struct platform_device stamp_flash_device = {
395 .num_resources = 1, 396 .num_resources = 1,
396 .resource = &stamp_flash_resource, 397 .resource = &stamp_flash_resource,
397}; 398};
399#endif
398 400
399#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) 401#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
400/* all SPI peripherals info goes here */ 402/* all SPI peripherals info goes here */
@@ -818,7 +820,10 @@ static struct platform_device *stamp_devices[] __initdata = {
818#endif 820#endif
819 821
820 &bfin_gpios_device, 822 &bfin_gpios_device,
823
824#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
821 &stamp_flash_device, 825 &stamp_flash_device,
826#endif
822}; 827};
823 828
824static int __init stamp_init(void) 829static int __init stamp_init(void)
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c
index 40846aa034c4..dc3c0156f37f 100644
--- a/arch/blackfin/mach-bf548/boards/ezkit.c
+++ b/arch/blackfin/mach-bf548/boards/ezkit.c
@@ -330,6 +330,7 @@ static struct platform_device bf54x_sdh_device = {
330}; 330};
331#endif 331#endif
332 332
333#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
333static struct mtd_partition ezkit_partitions[] = { 334static struct mtd_partition ezkit_partitions[] = {
334 { 335 {
335 .name = "Bootloader", 336 .name = "Bootloader",
@@ -367,6 +368,7 @@ static struct platform_device ezkit_flash_device = {
367 .num_resources = 1, 368 .num_resources = 1,
368 .resource = &ezkit_flash_resource, 369 .resource = &ezkit_flash_resource,
369}; 370};
371#endif
370 372
371#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) 373#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
372/* all SPI peripherals info goes here */ 374/* all SPI peripherals info goes here */
@@ -661,7 +663,10 @@ static struct platform_device *ezkit_devices[] __initdata = {
661#endif 663#endif
662 664
663 &bfin_gpios_device, 665 &bfin_gpios_device,
666
667#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
664 &ezkit_flash_device, 668 &ezkit_flash_device,
669#endif
665}; 670};
666 671
667static int __init ezkit_init(void) 672static int __init ezkit_init(void)
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c
index d357f648d963..79a55b42e964 100644
--- a/arch/blackfin/mach-bf561/boards/ezkit.c
+++ b/arch/blackfin/mach-bf561/boards/ezkit.c
@@ -220,6 +220,7 @@ static struct platform_device bfin_uart_device = {
220}; 220};
221#endif 221#endif
222 222
223#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
223static struct mtd_partition ezkit_partitions[] = { 224static struct mtd_partition ezkit_partitions[] = {
224 { 225 {
225 .name = "Bootloader", 226 .name = "Bootloader",
@@ -257,6 +258,7 @@ static struct platform_device ezkit_flash_device = {
257 .num_resources = 1, 258 .num_resources = 1,
258 .resource = &ezkit_flash_resource, 259 .resource = &ezkit_flash_resource,
259}; 260};
261#endif
260 262
261#ifdef CONFIG_SPI_BFIN 263#ifdef CONFIG_SPI_BFIN
262#if defined(CONFIG_SND_BLACKFIN_AD1836) \ 264#if defined(CONFIG_SND_BLACKFIN_AD1836) \
@@ -460,7 +462,10 @@ static struct platform_device *ezkit_devices[] __initdata = {
460#endif 462#endif
461 463
462 &bfin_gpios_device, 464 &bfin_gpios_device,
465
466#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
463 &ezkit_flash_device, 467 &ezkit_flash_device,
468#endif
464}; 469};
465 470
466static int __init ezkit_init(void) 471static int __init ezkit_init(void)