move definition of ar91xx_flash_platform_data into a separate header file (closes...
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / include / asm / mach-ar71xx / ar91xx_flash.h
1 /*
2 * AR91xx parallel flash driver platform data definitions
3 *
4 * Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org>
5 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published
9 * by the Free Software Foundation.
10 */
11
12 #ifndef __AR91XX_FLASH_H
13 #define __AR91XX_FLASH_H
14
15 struct mtd_partition;
16
17 struct ar91xx_flash_platform_data {
18 unsigned int width;
19 u8 is_shared:1;
20 #ifdef CONFIG_MTD_PARTITIONS
21 unsigned int nr_parts;
22 struct mtd_partition *parts;
23 #endif
24 };
25
26 #endif /* __AR91XX_FLASH_H */