From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/arm/mach-omap2/board-flash.h | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ANDROID_3.4.5/arch/arm/mach-omap2/board-flash.h (limited to 'ANDROID_3.4.5/arch/arm/mach-omap2/board-flash.h') diff --git a/ANDROID_3.4.5/arch/arm/mach-omap2/board-flash.h b/ANDROID_3.4.5/arch/arm/mach-omap2/board-flash.h new file mode 100644 index 00000000..d25503a9 --- /dev/null +++ b/ANDROID_3.4.5/arch/arm/mach-omap2/board-flash.h @@ -0,0 +1,49 @@ +/* + * 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 +#include +#include + +#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; +}; + +#if defined(CONFIG_MTD_NAND_OMAP2) || \ + defined(CONFIG_MTD_NAND_OMAP2_MODULE) || \ + defined(CONFIG_MTD_ONENAND_OMAP2) || \ + defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) +extern void board_flash_init(struct flash_partitions [], + char chip_sel[][GPMC_CS_NUM], int nand_type); +#else +static inline void board_flash_init(struct flash_partitions part[], + char chip_sel[][GPMC_CS_NUM], int nand_type) +{ +} +#endif + +#if defined(CONFIG_MTD_NAND_OMAP2) || \ + defined(CONFIG_MTD_NAND_OMAP2_MODULE) +extern void board_nand_init(struct mtd_partition *nand_parts, + u8 nr_parts, u8 cs, int nand_type); +#else +static inline void board_nand_init(struct mtd_partition *nand_parts, + u8 nr_parts, u8 cs, int nand_type) +{ +} +#endif -- cgit