summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorManoj Chourasia <mchourasia@nvidia.com>2011-11-03 19:34:07 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-15 12:11:08 +0530
commit3b98c26a9c7a02b79aabd038bca1655dea8741d3 (patch)
treeea91867d0ea3d57e0a2d263542b09282d48b5990 /include/linux/platform_data
parentfc8a4a14fda67747fa0ec308866531114758e23c (diff)
tegra: nor: Add NOR mapping driver.
This patch adds NOR mapping driver for tegra2 and tegra3. Signed-off-by: Manoj Chourasia<mchourasia@nvidia.com> Change-Id: Ie773d024a49977e356d4a9d605910ca30f22a3f3 Reviewed-on: http://git-master/r/43566 Reviewed-on: http://git-master/r/62149 Tested-by: Manoj Chourasia <mchourasia@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/tegra_nor.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/linux/platform_data/tegra_nor.h b/include/linux/platform_data/tegra_nor.h
new file mode 100644
index 000000000000..cd8faff2f1cd
--- /dev/null
+++ b/include/linux/platform_data/tegra_nor.h
@@ -0,0 +1,37 @@
+/*
+ * include/linux/platform_data/tegra_nor.h
+ *
+ * Copyright (C) 2010 - 2011 NVIDIA Corporation.
+ *
+ * Author:
+ * Raghavendra V K <rvk@nvidia.com>
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef __MACH_TEGRA_NOR_PDATA_H
+#define __MACH_TEGRA_NOR_PDATA_H
+
+#include <asm/mach/flash.h>
+
+struct tegra_nor_chip_parms {
+ struct {
+ uint32_t timing0;
+ uint32_t timing1;
+ } timing_default, timing_read;
+};
+
+struct tegra_nor_platform_data {
+ struct tegra_nor_chip_parms chip_parms;
+ struct flash_platform_data flash;
+};
+
+#endif /* __MACH_TEGRA_NOR_PDATA_H */