diff options
author | Colin Cross <ccross@android.com> | 2010-12-03 15:29:52 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-12-08 18:12:09 -0800 |
commit | 931788acdb40c6199dbcfed3264ca5f2d60d9b62 (patch) | |
tree | 09d92504d3d836ac61faf80895203e2712aff6b3 /arch/arm/mach-tegra/tegra2_emc.h | |
parent | a8f05581f7aa230d07517e2d7e9ec33c5d3cb552 (diff) |
ARM: tegra: Add external memory controller driver
Change-Id: Idcef38723b504719a09537612f2f94ad163844f5
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra2_emc.h')
-rw-r--r-- | arch/arm/mach-tegra/tegra2_emc.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra2_emc.h b/arch/arm/mach-tegra/tegra2_emc.h new file mode 100644 index 000000000000..3515e57fd0d9 --- /dev/null +++ b/arch/arm/mach-tegra/tegra2_emc.h @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2010 Google, Inc. + * + * Author: + * Colin Cross <ccross@google.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. + * + */ + +#define TEGRA_EMC_NUM_REGS 46 + +struct tegra_emc_table { + unsigned long rate; + u32 regs[TEGRA_EMC_NUM_REGS]; +}; + +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); |