]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/kernel/omap/panda/0004-HACK-PandaES-disable-cpufreq-so-board-will-boot.patch
Merge remote-tracking branch 'stevee/squid-zph-qos' into beyond-next
[people/teissler/ipfire-2.x.git] / src / patches / kernel / omap / panda / 0004-HACK-PandaES-disable-cpufreq-so-board-will-boot.patch
1 From 359104632fa556e3c5c78e4016c2585896225716 Mon Sep 17 00:00:00 2001
2 From: Robert Nelson <robertcnelson@gmail.com>
3 Date: Mon, 1 Apr 2013 12:17:50 -0500
4 Subject: [PATCH 4/4] HACK: PandaES: disable cpufreq so board will boot
5
6 Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
7 ---
8 drivers/cpufreq/omap-cpufreq.c | 7 +++++++
9 1 file changed, 7 insertions(+)
10
11 diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
12 index 0279d18..0a8ac09 100644
13 --- a/drivers/cpufreq/omap-cpufreq.c
14 +++ b/drivers/cpufreq/omap-cpufreq.c
15 @@ -31,6 +31,8 @@
16 #include <asm/smp_plat.h>
17 #include <asm/cpu.h>
18
19 +#include "../../arch/arm/mach-omap2/soc.h"
20 +
21 /* OPP tolerance in percentage */
22 #define OPP_TOLERANCE 4
23
24 @@ -246,6 +248,11 @@ static struct cpufreq_driver omap_driver = {
25
26 static int omap_cpufreq_probe(struct platform_device *pdev)
27 {
28 + if (cpu_is_omap446x()) {
29 + pr_err("%s: unsupported Silicon?\n", __func__);
30 + return -EINVAL;
31 + }
32 +
33 mpu_dev = get_cpu_device(0);
34 if (!mpu_dev) {
35 pr_warning("%s: unable to get the mpu device\n", __func__);
36 --
37 1.7.10.4
38