Skip to content

Commit

Permalink
[Blackfin] arch: conditionally enable flash resources since it reques…
Browse files Browse the repository at this point in the history
…ts the async memory bank

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Mar 26, 2008
1 parent 2e8d796 commit 793dc27
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/blackfin/mach-bf533/boards/stamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ static struct platform_device net2272_bfin_device = {
};
#endif

#if defined(CONFIG_MTD_BF5xx) || defined(CONFIG_MTD_BF5xx_MODULE)
static struct mtd_partition stamp_partitions[] = {
{
.name = "Bootloader",
Expand Down Expand Up @@ -152,6 +153,7 @@ static struct platform_device stamp_flash_device = {
.num_resources = ARRAY_SIZE(stamp_flash_resource),
.resource = stamp_flash_resource,
};
#endif

#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
/* all SPI peripherals info goes here */
Expand Down Expand Up @@ -515,7 +517,10 @@ static struct platform_device *stamp_devices[] __initdata = {
#endif

&bfin_gpios_device,

#if defined(CONFIG_MTD_BF5xx) || defined(CONFIG_MTD_BF5xx_MODULE)
&stamp_flash_device,
#endif
};

static int __init stamp_init(void)
Expand Down
5 changes: 5 additions & 0 deletions arch/blackfin/mach-bf537/boards/stamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ static struct platform_device net2272_bfin_device = {
};
#endif

#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
static struct mtd_partition stamp_partitions[] = {
{
.name = "Bootloader",
Expand Down Expand Up @@ -395,6 +396,7 @@ static struct platform_device stamp_flash_device = {
.num_resources = 1,
.resource = &stamp_flash_resource,
};
#endif

#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
/* all SPI peripherals info goes here */
Expand Down Expand Up @@ -818,7 +820,10 @@ static struct platform_device *stamp_devices[] __initdata = {
#endif

&bfin_gpios_device,

#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
&stamp_flash_device,
#endif
};

static int __init stamp_init(void)
Expand Down
5 changes: 5 additions & 0 deletions arch/blackfin/mach-bf548/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ static struct platform_device bf54x_sdh_device = {
};
#endif

#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
static struct mtd_partition ezkit_partitions[] = {
{
.name = "Bootloader",
Expand Down Expand Up @@ -367,6 +368,7 @@ static struct platform_device ezkit_flash_device = {
.num_resources = 1,
.resource = &ezkit_flash_resource,
};
#endif

#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
/* all SPI peripherals info goes here */
Expand Down Expand Up @@ -661,7 +663,10 @@ static struct platform_device *ezkit_devices[] __initdata = {
#endif

&bfin_gpios_device,

#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
&ezkit_flash_device,
#endif
};

static int __init ezkit_init(void)
Expand Down
5 changes: 5 additions & 0 deletions arch/blackfin/mach-bf561/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ static struct platform_device bfin_uart_device = {
};
#endif

#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
static struct mtd_partition ezkit_partitions[] = {
{
.name = "Bootloader",
Expand Down Expand Up @@ -257,6 +258,7 @@ static struct platform_device ezkit_flash_device = {
.num_resources = 1,
.resource = &ezkit_flash_resource,
};
#endif

#ifdef CONFIG_SPI_BFIN
#if defined(CONFIG_SND_BLACKFIN_AD1836) \
Expand Down Expand Up @@ -460,7 +462,10 @@ static struct platform_device *ezkit_devices[] __initdata = {
#endif

&bfin_gpios_device,

#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
&ezkit_flash_device,
#endif
};

static int __init ezkit_init(void)
Expand Down

0 comments on commit 793dc27

Please sign in to comment.