summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2011-04-19 19:01:33 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-05-11 15:17:10 -0700
commit0659391be993e084f290147bfea99bc3bb5f2328 (patch)
tree570bb21b60e6136152eb21561a236ffb43348d6b /arch
parentd1bf1333593f1d19740b2619377abf760b138cbe (diff)
ARM: tegra: cardhu: Separate LPDDR2 processor board
Made sure default DDR3 EMC DFS table is not applied to cardhu processor board with LPDDR2. Change-Id: I78bb2a4f80a5db00e04cb82c530924219e6baa78 Reviewed-on: http://git-master/r/30311 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Tested-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com> Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/board-cardhu-memory.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-memory.c b/arch/arm/mach-tegra/board-cardhu-memory.c
index 0e95179cb29f..d6548588ca09 100644
--- a/arch/arm/mach-tegra/board-cardhu-memory.c
+++ b/arch/arm/mach-tegra/board-cardhu-memory.c
@@ -19,6 +19,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
+#include "board.h"
#include "board-cardhu.h"
#include "tegra3_emc.h"
@@ -608,7 +609,18 @@ static const struct tegra_emc_table cardhu_emc_tables_h5tc2g[] = {
int cardhu_emc_init(void)
{
- tegra_init_emc(cardhu_emc_tables_h5tc2g,
- ARRAY_SIZE(cardhu_emc_tables_h5tc2g));
+ struct board_info board;
+
+ tegra_get_board_info(&board);
+
+ switch (board.board_id) {
+ case BOARD_PM269: /* LPDDR2 table is not ready, yet */
+ break;
+ default:
+ tegra_init_emc(cardhu_emc_tables_h5tc2g,
+ ARRAY_SIZE(cardhu_emc_tables_h5tc2g));
+ break;
+ }
+
return 0;
}