Commit 0712fb39 authored by Sergey Lapin's avatar Sergey Lapin Committed by Tony Lindgren

omap3: id code detection 3525 vs 3515

The runtime detection of OMAP3515 and OMAP3525
was reversed.
Signed-off-by: default avatarSergey Lapin <slapin@ossfans.org>
Signed-off-by: default avatarSanjeev Premi <premi@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 860fc976
...@@ -302,10 +302,10 @@ void __init omap3_cpuinfo(void) ...@@ -302,10 +302,10 @@ void __init omap3_cpuinfo(void)
} else if (omap3_has_iva() && omap3_has_sgx()) { } else if (omap3_has_iva() && omap3_has_sgx()) {
/* OMAP3430, OMAP3525, OMAP3515, OMAP3503 devices */ /* OMAP3430, OMAP3525, OMAP3515, OMAP3503 devices */
strcpy(cpu_name, "OMAP3430/3530"); strcpy(cpu_name, "OMAP3430/3530");
} else if (omap3_has_sgx()) { } else if (omap3_has_iva()) {
omap_revision = OMAP3525_REV(rev); omap_revision = OMAP3525_REV(rev);
strcpy(cpu_name, "OMAP3525"); strcpy(cpu_name, "OMAP3525");
} else if (omap3_has_iva()) { } else if (omap3_has_sgx()) {
omap_revision = OMAP3515_REV(rev); omap_revision = OMAP3515_REV(rev);
strcpy(cpu_name, "OMAP3515"); strcpy(cpu_name, "OMAP3515");
} else { } else {
......
...@@ -395,11 +395,11 @@ IS_OMAP_TYPE(3517, 0x3517) ...@@ -395,11 +395,11 @@ IS_OMAP_TYPE(3517, 0x3517)
(!omap3_has_iva()) && \ (!omap3_has_iva()) && \
(!omap3_has_sgx())) (!omap3_has_sgx()))
# define cpu_is_omap3515() (cpu_is_omap3430() && \ # define cpu_is_omap3515() (cpu_is_omap3430() && \
(omap3_has_iva()) && \ (!omap3_has_iva()) && \
(!omap3_has_sgx())) (omap3_has_sgx()))
# define cpu_is_omap3525() (cpu_is_omap3430() && \ # define cpu_is_omap3525() (cpu_is_omap3430() && \
(omap3_has_sgx()) && \ (!omap3_has_sgx()) && \
(!omap3_has_iva())) (omap3_has_iva()))
# define cpu_is_omap3530() (cpu_is_omap3430()) # define cpu_is_omap3530() (cpu_is_omap3430())
# define cpu_is_omap3505() is_omap3505() # define cpu_is_omap3505() is_omap3505()
# define cpu_is_omap3517() is_omap3517() # define cpu_is_omap3517() is_omap3517()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment