diff options
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-nand.h')
-rw-r--r-- | arch/arm/mach-omap2/gpmc-nand.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpmc-nand.h b/arch/arm/mach-omap2/gpmc-nand.h new file mode 100644 index 000000000000..d59e1281e851 --- /dev/null +++ b/arch/arm/mach-omap2/gpmc-nand.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-omap2/gpmc-nand.h | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms of the GNU General Public License as published by the | ||
6 | * Free Software Foundation; either version 2 of the License, or (at your | ||
7 | * option) any later version. | ||
8 | */ | ||
9 | |||
10 | #ifndef __OMAP2_GPMC_NAND_H | ||
11 | #define __OMAP2_GPMC_NAND_H | ||
12 | |||
13 | #include "gpmc.h" | ||
14 | #include <linux/platform_data/mtd-nand-omap2.h> | ||
15 | |||
16 | #if IS_ENABLED(CONFIG_MTD_NAND_OMAP2) | ||
17 | extern int gpmc_nand_init(struct omap_nand_platform_data *d, | ||
18 | struct gpmc_timings *gpmc_t); | ||
19 | #else | ||
20 | static inline int gpmc_nand_init(struct omap_nand_platform_data *d, | ||
21 | struct gpmc_timings *gpmc_t) | ||
22 | { | ||
23 | return 0; | ||
24 | } | ||
25 | #endif | ||
26 | |||
27 | #endif | ||