summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu.h
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-06-21 17:17:48 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:47:38 -0800
commit98cf709684c48aa6055c53431eb3a54fd5c46d54 (patch)
treef5941dd557e8830020448cadd5f480eedba45598 /arch/arm/mach-tegra/board-cardhu.h
parentd5d291d20b4fd81789cf7ddc9870f24550bb7d14 (diff)
arm: tegra: cardhu: board SKU and fab cleanup
Remove the hardcoding of the numerical value for different sku bit and fab definition and using macro for better readability. Original-Change-Id: Idf70c7a063b5416e170b3b7e61e896250c9ad70c Reviewed-on: http://git-master/r/37644 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rd7e2bfcf6780b6b73a8438b904b8a13b0297b59d
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.h')
-rw-r--r--arch/arm/mach-tegra/board-cardhu.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.h b/arch/arm/mach-tegra/board-cardhu.h
index e1c4b0b66b02..a46a6df7c652 100644
--- a/arch/arm/mach-tegra/board-cardhu.h
+++ b/arch/arm/mach-tegra/board-cardhu.h
@@ -39,6 +39,21 @@
#define SKU_SLT_ULPI_SUPPORT 0x2
#define SKU_T30S_SUPPORT 0x4
+#define SKU_MEMORY_TYPE_BIT 0x4
+#define SKU_MEMORY_TYPE_MASK 0x3
+#define SKU_MEMORY_SAMSUNG_EC 0x0
+#define SKU_MEMORY_ELPIDA 0x1
+#define SKU_MEMORY_SAMSUNG_EB 0x2
+#define MEMORY_TYPE(sku) (((sku) >> SKU_MEMORY_TYPE_BIT) & SKU_MEMORY_TYPE_MASK)
+
+/* Board Fab version */
+#define BOARD_FAB_A00 0x0
+#define BOARD_FAB_A01 0x1
+#define BOARD_FAB_A02 0x2
+#define BOARD_FAB_A03 0x3
+#define BOARD_FAB_A04 0x4
+
+
/* External peripheral act as gpio */
/* TPS6591x GPIOs */
#define TPS6591X_GPIO_BASE TEGRA_NR_GPIOS