aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/tegra2_emc.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2011-10-16 16:54:51 -0700
committerOlof Johansson <olof@lixom.net>2012-02-06 18:24:59 -0800
commit17711dbf4788ded84470941ff63a7029f73ca654 (patch)
tree2a728096b0c3c67299bf47fb9a0069c7fbb9e67a /arch/arm/mach-tegra/tegra2_emc.h
parentARM: tegra: fuse: add bct strapping reading (diff)
downloadlinux-dev-17711dbf4788ded84470941ff63a7029f73ca654.tar.xz
linux-dev-17711dbf4788ded84470941ff63a7029f73ca654.zip
ARM: tegra: emc: convert tegra2_emc to a platform driver
This is the first step in making it device-tree aware and get rid of the in-kernel EMC tables (of which there are none in mainline, thankfully). Changes since v3: * moved to devm_request_and_ioremap() in probe() Changes since v2: * D'oh -- missed a couple of variables that were added, never used and then later removed in a later patch. Changes since v1: * Fixed messed up indentation * Removed code that should be gone (was added here and removed later in series) Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra2_emc.h')
-rw-r--r--arch/arm/mach-tegra/tegra2_emc.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/tegra2_emc.h b/arch/arm/mach-tegra/tegra2_emc.h
index 19f08cb31603..f61409b54cb7 100644
--- a/arch/arm/mach-tegra/tegra2_emc.h
+++ b/arch/arm/mach-tegra/tegra2_emc.h
@@ -15,13 +15,10 @@
*
*/
-#define TEGRA_EMC_NUM_REGS 46
-
-struct tegra_emc_table {
- unsigned long rate;
- u32 regs[TEGRA_EMC_NUM_REGS];
-};
+#ifndef __MACH_TEGRA_TEGRA2_EMC_H_
+#define __MACH_TEGRA_TEGRA2_EMC_H
int tegra_emc_set_rate(unsigned long rate);
long tegra_emc_round_rate(unsigned long rate);
-void tegra_init_emc(const struct tegra_emc_table *table, int table_size);
+
+#endif