summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/devices.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2013-08-31 21:00:42 +0300
committerTom Cherry <tcherry@nvidia.com>2014-01-21 15:13:57 -0800
commit9df14cf0c06feb0adfa171686d3c60a67b231992 (patch)
tree3387fa6c42b79a13a7c8e7df732650dd2dbc55b6 /arch/arm/mach-tegra/devices.c
parent68eace4d08be378393cd330b0e060e9345b6870e (diff)
ARM: tegra: Fixup table for Tegra13
Change-Id: Iaa22a248dc4132cc21ed8f75db4034faa45d4a40 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/268834 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r--arch/arm/mach-tegra/devices.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index d9ef31739e3e..6effd2b9f67e 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -2251,13 +2251,20 @@ struct swgid_fixup tegra_swgid_fixup_t124[] = {
u64 tegra_smmu_fixup_swgids(struct device *dev, struct iommu_linear_map **map)
{
const char *s;
- struct swgid_fixup *table = tegra_swgid_fixup;
+ struct swgid_fixup *table;
if (!dev)
return 0;
- if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA12)
+ switch (tegra_get_chipid()) {
+ case TEGRA_CHIPID_TEGRA12:
+ case TEGRA_CHIPID_TEGRA13:
table = tegra_swgid_fixup_t124;
+ break;
+ default:
+ table = tegra_swgid_fixup;
+ break;
+ }
while ((s = table->name) != NULL) {
if (!strncmp(s, dev_name(dev), strlen(s))) {