]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/kernel/omap/panda/0004-HACK-PandaES-disable-cpufreq-so-board-will-boot.patch
snort: Update urls for rules download (2.9.7.0) in 'ids.cgi'
[ipfire-2.x.git] / src / patches / kernel / omap / panda / 0004-HACK-PandaES-disable-cpufreq-so-board-will-boot.patch
CommitLineData
d006af40
AF
1From 359104632fa556e3c5c78e4016c2585896225716 Mon Sep 17 00:00:00 2001
2From: Robert Nelson <robertcnelson@gmail.com>
3Date: Mon, 1 Apr 2013 12:17:50 -0500
4Subject: [PATCH 4/4] HACK: PandaES: disable cpufreq so board will boot
5
6Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
7---
8 drivers/cpufreq/omap-cpufreq.c | 7 +++++++
9 1 file changed, 7 insertions(+)
10
11diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
12index 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--
371.7.10.4
38