aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf533
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/blackfin/mach-bf533
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/blackfin/mach-bf533')
-rw-r--r--arch/blackfin/mach-bf533/boards/stamp.c5
1 files changed, 5 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)