diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/nand.h')
| -rw-r--r-- | arch/arm/mach-tegra/include/mach/nand.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/nand.h b/arch/arm/mach-tegra/include/mach/nand.h new file mode 100644 index 00000000000..91ad7d1c9ae --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/nand.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-tegra/include/mach/nand.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 2010 Google, Inc. | ||
| 5 | * | ||
| 6 | * Author: | ||
| 7 | * Colin Cross <ccross@google.com> | ||
| 8 | * Dima Zavin <dmitriyz@google.com> | ||
| 9 | * | ||
| 10 | * This software is licensed under the terms of the GNU General Public | ||
| 11 | * License version 2, as published by the Free Software Foundation, and | ||
| 12 | * may be copied, distributed, and modified under those terms. | ||
| 13 | * | ||
| 14 | * This program is distributed in the hope that it will be useful, | ||
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | * GNU General Public License for more details. | ||
| 18 | * | ||
| 19 | */ | ||
| 20 | |||
| 21 | #ifndef __MACH_TEGRA_NAND_H | ||
| 22 | #define __MACH_TEGRA_NAND_H | ||
| 23 | |||
| 24 | struct tegra_nand_chip_parms { | ||
| 25 | uint8_t vendor_id; | ||
| 26 | uint8_t device_id; | ||
| 27 | uint32_t flags; | ||
| 28 | uint8_t read_id_fourth_byte; | ||
| 29 | uint32_t capacity; | ||
| 30 | |||
| 31 | /* all timing info is in nanoseconds */ | ||
| 32 | struct { | ||
| 33 | uint32_t trp; | ||
| 34 | uint32_t trh; | ||
| 35 | uint32_t twp; | ||
| 36 | uint32_t twh; | ||
| 37 | uint32_t tcs; | ||
| 38 | uint32_t twhr; | ||
| 39 | uint32_t tcr_tar_trr; | ||
| 40 | uint32_t twb; | ||
| 41 | uint32_t trp_resp; | ||
| 42 | uint32_t tadl; | ||
| 43 | } timing; | ||
| 44 | }; | ||
| 45 | |||
| 46 | struct tegra_nand_platform { | ||
| 47 | uint8_t max_chips; | ||
| 48 | struct tegra_nand_chip_parms *chip_parms; | ||
| 49 | unsigned int nr_chip_parms; | ||
| 50 | struct mtd_partition *parts; | ||
| 51 | unsigned int nr_parts; | ||
| 52 | int wp_gpio; | ||
| 53 | }; | ||
| 54 | |||
| 55 | #endif | ||
