summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-memory.c
diff options
context:
space:
mode:
authorTom Cherry <tcherry@nvidia.com>2012-02-29 17:39:50 -0800
committerSimone Willett <swillett@nvidia.com>2012-03-30 20:26:24 -0700
commitaf21306556d361eb9aabfeb95ca96013ec780143 (patch)
tree4fe2ec1ced78493cacb64d2586ce17abdd294c5f /arch/arm/mach-tegra/board-enterprise-memory.c
parent4436e2542c11146d701cfc2aab2ac78cae9f8543 (diff)
ARM: tegra: enterprise: Add A03/A04 support
Bug 939799 Reviewed-on: http://git-master/r/90824 (cherry-picked from commit 8c556f816196c17e059db2c11b966ca89848efa3) Change-Id: I67b26958862b8b60217c2750fe0b2eef3013d9b3 Signed-off-by: Tom Cherry <tcherry@nvidia.com> Reviewed-on: http://git-master/r/92409 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-memory.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-memory.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-memory.c b/arch/arm/mach-tegra/board-enterprise-memory.c
index ba088f054cfc..3fb7fa9a6650 100644
--- a/arch/arm/mach-tegra/board-enterprise-memory.c
+++ b/arch/arm/mach-tegra/board-enterprise-memory.c
@@ -21,6 +21,7 @@
#include "board-enterprise.h"
#include "tegra3_emc.h"
+#include "board.h"
static const struct tegra_emc_table enterprise_emc_tables_h5tc2g[] = {
@@ -748,7 +749,13 @@ static const struct tegra_emc_table enterprise_emc_tables_h5tc2g[] = {
int enterprise_emc_init(void)
{
- tegra_init_emc(enterprise_emc_tables_h5tc2g,
- ARRAY_SIZE(enterprise_emc_tables_h5tc2g));
+ struct board_info board_info;
+
+ tegra_get_board_info(&board_info);
+
+ if (board_info.fab == BOARD_FAB_A02)
+ tegra_init_emc(enterprise_emc_tables_h5tc2g,
+ ARRAY_SIZE(enterprise_emc_tables_h5tc2g));
+
return 0;
}