[PATCH 4/7] tegra: add Tegra3 to relevant lowlevel functions
Lucas Stach
dev at lynxeye.de
Thu Feb 13 17:32:48 EST 2014
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
arch/arm/mach-tegra/include/mach/lowlevel.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/mach-tegra/include/mach/lowlevel.h b/arch/arm/mach-tegra/include/mach/lowlevel.h
index c999ad9..bdba71b 100644
--- a/arch/arm/mach-tegra/include/mach/lowlevel.h
+++ b/arch/arm/mach-tegra/include/mach/lowlevel.h
@@ -61,6 +61,7 @@ u32 tegra_get_odmdata(void)
enum tegra_chiptype {
TEGRA_UNK_REV = -1,
TEGRA20 = 0,
+ TEGRA30 = 1,
};
static inline __attribute__((always_inline))
@@ -74,6 +75,9 @@ enum tegra_chiptype tegra_get_chiptype(void)
case 0x20:
return TEGRA20;
break;
+ case 0x30:
+ return TEGRA30;
+ break;
default:
return TEGRA_UNK_REV;
break;
@@ -87,6 +91,9 @@ int tegra_get_num_cores(void)
case TEGRA20:
return 2;
break;
+ case TEGRA30:
+ return 4;
+ break;
default:
return 0;
break;
--
1.8.5.3
More information about the barebox
mailing list