diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2014-05-02 19:44:29 -0700 |
---|---|---|
committer | Troy Kisky <troy.kisky@boundarydevices.com> | 2014-05-05 18:28:25 -0700 |
commit | fe41f1e14c1769c2012b21ac6375ddb1ab15ea52 (patch) | |
tree | 692ad1944a496b4ec21b6a8e5c961ee9fa3b977b | |
parent | c8e4e642a569b28d31c88328f001c1fcde481323 (diff) |
imx6q/dl/solo/sololite: set system_rev so the VPU can find its firmware
This allow gplay to work.
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 1cf7a53b73d1..b2d26fb2b5b0 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c @@ -430,6 +430,8 @@ static struct platform_device imx6q_cpufreq_pdev = { .name = "imx6-cpufreq", }; +extern unsigned int system_rev; + static void __init imx6q_init_late(void) { struct regmap *gpr; @@ -444,6 +446,15 @@ static void __init imx6q_init_late(void) IMX6Q_GPR1_GINT_MASK, IMX6Q_GPR1_GINT_ASSERT); + if (!system_rev) { + if (cpu_is_imx6q()) + system_rev = 0x63000; + else if (cpu_is_imx6dl()) + system_rev = 0x61000; + else if (cpu_is_imx6sl()) + system_rev = 0x60000; + system_rev |= imx_get_soc_revision(); + } /* * WAIT mode is broken on TO 1.0 and 1.1, so there is no point * to run cpuidle on them. |