Merge remote-tracking branch 'battery/for-next'
[deliverable/linux.git] / arch / arm / mach-omap2 / board-flash.h
CommitLineData
c2798e93
VS
1/*
2 * board-sdp.h
3 *
4 * Information structures for SDP-specific board config data
5 *
6 * Copyright (C) 2009 Nokia Corporation
7 * Copyright (C) 2009 Texas Instruments
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
13#include <linux/mtd/mtd.h>
14#include <linux/mtd/partitions.h>
13d6b73c
SG
15
16#define PDC_NOR 1
17#define PDC_NAND 2
18#define PDC_ONENAND 3
19#define DBG_MPDB 4
c2798e93
VS
20
21struct flash_partitions {
22 struct mtd_partition *parts;
23 int nr_parts;
24};
25
502ad2a6 26#if IS_ENABLED(CONFIG_MTD_NAND_OMAP2) || IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2)
13d6b73c 27extern void board_flash_init(struct flash_partitions [],
d5ce2b65 28 char chip_sel[][GPMC_CS_NUM], int nand_type);
f8cf8e47
TL
29#else
30static inline void board_flash_init(struct flash_partitions part[],
31 char chip_sel[][GPMC_CS_NUM], int nand_type)
32{
33}
34#endif
35
502ad2a6 36#if IS_ENABLED(CONFIG_MTD_NAND_OMAP2)
04aeae77 37extern void board_nand_init(struct mtd_partition *nand_parts,
2e618261
AM
38 u8 nr_parts, u8 cs, int nand_type, struct gpmc_timings *gpmc_t);
39extern struct gpmc_timings nand_default_timings[];
f8cf8e47
TL
40#else
41static inline void board_nand_init(struct mtd_partition *nand_parts,
2e618261 42 u8 nr_parts, u8 cs, int nand_type, struct gpmc_timings *gpmc_t)
f8cf8e47
TL
43{
44}
2e618261 45#define nand_default_timings NULL
f8cf8e47 46#endif
8259573b 47
502ad2a6 48#if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2)
8259573b
JMC
49extern void board_onenand_init(struct mtd_partition *nand_parts,
50 u8 nr_parts, u8 cs);
51#else
52static inline void board_onenand_init(struct mtd_partition *nand_parts,
53 u8 nr_parts, u8 cs)
54{
55}
56#endif
This page took 0.401722 seconds and 5 git commands to generate.