[PATCH 06/30] tegra: add Tegra124 id to lowlevel functions
Lucas Stach
dev at lynxeye.de
Tue Jun 3 13:34:53 PDT 2014
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
arch/arm/mach-tegra/include/mach/lowlevel.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/mach-tegra/include/mach/lowlevel.h b/arch/arm/mach-tegra/include/mach/lowlevel.h
index 80d65a6..662508a 100644
--- a/arch/arm/mach-tegra/include/mach/lowlevel.h
+++ b/arch/arm/mach-tegra/include/mach/lowlevel.h
@@ -67,6 +67,8 @@ enum tegra_chiptype {
TEGRA_UNK_REV = -1,
TEGRA20 = 0,
TEGRA30 = 1,
+ TEGRA114 = 2,
+ TEGRA124 = 3,
};
static __always_inline
@@ -87,6 +89,8 @@ enum tegra_chiptype tegra_get_chiptype(void)
return TEGRA20;
case 0x30:
return TEGRA30;
+ case 0x40:
+ return TEGRA124;
default:
return TEGRA_UNK_REV;
}
@@ -99,6 +103,7 @@ int tegra_get_num_cores(void)
case TEGRA20:
return 2;
case TEGRA30:
+ case TEGRA124:
return 4;
default:
return 0;
@@ -213,6 +218,7 @@ int tegra_get_pllp_rate(void)
case TEGRA20:
return 216000000;
case TEGRA30:
+ case TEGRA124:
return 408000000;
default:
return 0;
--
1.9.3
More information about the barebox
mailing list