diff options
author | Sukumar Ghorai <s-ghorai@ti.com> | 2010-07-09 14:27:47 +0000 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-08-02 15:43:29 +0300 |
commit | 13d6b73cf189945b7d20e749f9034329d227be6a (patch) | |
tree | eb100f7b4df6a6dd39e1c632d7c96f1e110baf33 /arch/arm/mach-omap2/include/mach/board-flash.h | |
parent | f450d86790ebf72ac93c7ea5addd6fa278aae64c (diff) | |
download | lwn-13d6b73cf189945b7d20e749f9034329d227be6a.tar.gz lwn-13d6b73cf189945b7d20e749f9034329d227be6a.zip |
omap3 flash: rename board-sdp-flash.c to be use by other boards
rename board-sdp-flash.c(board-flash.c) and board-sdp.h(board-flash.h) to
used by other board e.g. zoom
Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/include/mach/board-flash.h')
-rw-r--r-- | arch/arm/mach-omap2/include/mach/board-flash.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/include/mach/board-flash.h b/arch/arm/mach-omap2/include/mach/board-flash.h new file mode 100644 index 000000000000..b2242ae2bb6f --- /dev/null +++ b/arch/arm/mach-omap2/include/mach/board-flash.h @@ -0,0 +1,28 @@ +/* + * board-sdp.h + * + * Information structures for SDP-specific board config data + * + * Copyright (C) 2009 Nokia Corporation + * Copyright (C) 2009 Texas Instruments + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#include <linux/mtd/mtd.h> +#include <linux/mtd/partitions.h> +#include <plat/gpmc.h> + +#define PDC_NOR 1 +#define PDC_NAND 2 +#define PDC_ONENAND 3 +#define DBG_MPDB 4 + +struct flash_partitions { + struct mtd_partition *parts; + int nr_parts; +}; + +extern void board_flash_init(struct flash_partitions [], + char chip_sel[][GPMC_CS_NUM]); |