Skip to contentSkip to conversation

ARM: OMAP3: Fix SoC detection of OMAP36/37 Family

PATCH New aford173 at gmail.com 2 participants 2 messages Jan 20, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP3: Fix SoC detection of OMAP36/37 Family

From: Adam Ford <[email protected]>

The OMAP36/37 families are similar, but there are a few features sections that can help identify some of them. Let's add checks for 3630/3730, OMAP3621, DM3725, OMAP3615/DM3715, OMAP3611, and AM3703 all based on features similar to what was done for the OMAP34xx/35xx series

The checkpatch flags some warnings for braces, but I kept the coding style to match the adjacent code for consistency.

I don't have an OMAP36xx to test, but this was tested on both a DM3730 and AM3703.

arch/arm/mach-omap2/id.c +9 -1
index cc6d9fa..e2274a1 100644
@@ -223,7 +223,15 @@ static void __init omap3_cpuinfo(void)
 	 * and CPU class bits.
 	 */
 	if (soc_is_omap3630()) {
-		cpu_name = "OMAP3630";
+		if (omap3_has_iva() && omap3_has_sgx()) {
+			cpu_name = (omap3_has_isp()) ? "OMAP3630/DM3730" : "OMAP3621";
+		} else if (omap3_has_iva()) {
+			cpu_name = "DM3725";
+		} else if (omap3_has_sgx()) {
+			cpu_name = "OMAP3615/AM3715";
+		} else {
+			cpu_name = (omap3_has_isp()) ? "AM3703" : "OMAP3611";
+		}
 	} else if (soc_is_am35xx()) {
 		cpu_name = (omap3_has_sgx()) ? "AM3517" : "AM3505";
 	} else if (soc_is_ti816x()) {
Signature · 1 line
2.7.4
maintainer
#1 lore raw

PATCH 1/1 ARM: OMAP3: Fix SoC detection of OMAP36/37 Family

Quoted 7 lines · * aford173 at gmail.com <[email protected]> [170120 08:45]:

From: Adam Ford <[email protected]>

The OMAP36/37 families are similar, but there are a few features sections that can help identify some of them. Let's add checks for 3630/3730, OMAP3621, DM3725, OMAP3615/DM3715, OMAP3611, and AM3703 all based on features similar to what was done for the OMAP34xx/35xx series

Quoted 5 lines

The checkpatch flags some warnings for braces, but I kept the coding style to match the adjacent code for consistency.

I don't have an OMAP36xx to test, but this was tested on both a DM3730 and AM3703.

AFAIK 3630 is exactly the same as dm3730. Applying into omap-for-v4.11/fixes-not-urgent thanks.

Regards,

Tony

Quoted 26 lines
arch/arm/mach-omap2/id.c +9 -1
index cc6d9fa..e2274a1 100644
@@ -223,7 +223,15 @@ static void __init omap3_cpuinfo(void)
 	 * and CPU class bits.
 	 */
 	if (soc_is_omap3630()) {
-		cpu_name = "OMAP3630";
+		if (omap3_has_iva() && omap3_has_sgx()) {
+			cpu_name = (omap3_has_isp()) ? "OMAP3630/DM3730" : "OMAP3621";
+		} else if (omap3_has_iva()) {
+			cpu_name = "DM3725";
+		} else if (omap3_has_sgx()) {
+			cpu_name = "OMAP3615/AM3715";
+		} else {
+			cpu_name = (omap3_has_isp()) ? "AM3703" : "OMAP3611";
+		}
 	} else if (soc_is_am35xx()) {
 		cpu_name = (omap3_has_sgx()) ? "AM3517" : "AM3505";
 	} else if (soc_is_ti816x()) {
Signature · 1 line
2.7.4