summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/common.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2009-06-01 15:36:36 -0400
committerNicolas Pitre <nico@cam.org>2009-06-08 13:04:58 -0400
commitfb7b2d3f0dda3fbd711c191fd3b9496653e81ac7 (patch)
treef13cc711bc6e81d6cd39b4f521303d3e9e455901 /arch/arm/mach-kirkwood/common.h
parenta88656553d18c324554855fccc730c9644048111 (diff)
downloadtalos-obmc-linux-fb7b2d3f0dda3fbd711c191fd3b9496653e81ac7.tar.gz
talos-obmc-linux-fb7b2d3f0dda3fbd711c191fd3b9496653e81ac7.zip
[ARM] Kirkwood: rationalize NAND setup a bit
Common resource and platform device structures are moved to common.c and only the partition table and chip delay remains a per board parameter. Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-kirkwood/common.h')
-rw-r--r--arch/arm/mach-kirkwood/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/common.h b/arch/arm/mach-kirkwood/common.h
index 6ee88406f381..9de525664bb3 100644
--- a/arch/arm/mach-kirkwood/common.h
+++ b/arch/arm/mach-kirkwood/common.h
@@ -15,6 +15,7 @@ struct dsa_platform_data;
struct mv643xx_eth_platform_data;
struct mv_sata_platform_data;
struct mvsdio_platform_data;
+struct mtd_partition;
/*
* Basic Kirkwood init functions used early by machine-setup.
@@ -40,9 +41,11 @@ void kirkwood_spi_init(void);
void kirkwood_i2c_init(void);
void kirkwood_uart0_init(void);
void kirkwood_uart1_init(void);
+void kirkwood_nand_init(struct mtd_partition *parts, int nr_parts, int delay);
extern int kirkwood_tclk;
extern struct sys_timer kirkwood_timer;
+#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
#endif
OpenPOWER on IntegriCloud