-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
am335x-olimex-som: we cant dynamicly control the regulator from voltd…
…m, so just disable voltdm fixes: beagleboard/linux#54 Signed-off-by: Robert Nelson <[email protected]>
- Loading branch information
1 parent
5158334
commit b980958
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
patches/beaglebone/am335x_olimex_som/0002-am335x-olimex-som-no-regulator-for-voltdm.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
From 3b27486431acb94f508c7a3ce8d60ae9c3c8f1bd Mon Sep 17 00:00:00 2001 | ||
From: Robert Nelson <[email protected]> | ||
Date: Sun, 20 Dec 2015 18:06:19 -0600 | ||
Subject: [PATCH 2/2] am335x-olimex-som: no regulator for voltdm | ||
|
||
Signed-off-by: Robert Nelson <[email protected]> | ||
--- | ||
arch/arm/boot/dts/am335x-olimex-som.dts | 2 +- | ||
arch/arm/mach-omap2/opp33xx_data.c | 4 ++++ | ||
2 files changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/arch/arm/boot/dts/am335x-olimex-som.dts b/arch/arm/boot/dts/am335x-olimex-som.dts | ||
index 63879e4..e7ee978 100644 | ||
--- a/arch/arm/boot/dts/am335x-olimex-som.dts | ||
+++ b/arch/arm/boot/dts/am335x-olimex-som.dts | ||
@@ -12,7 +12,7 @@ | ||
|
||
/ { | ||
model = "Olimex AM335x SOM"; | ||
- compatible = "ti,am33xx"; | ||
+ compatible = "ti,am335x-olimex-som", "ti,am33xx"; | ||
}; | ||
|
||
&ldo3_reg { | ||
diff --git a/arch/arm/mach-omap2/opp33xx_data.c b/arch/arm/mach-omap2/opp33xx_data.c | ||
index c4f5e1e..1f8c772 100644 | ||
--- a/arch/arm/mach-omap2/opp33xx_data.c | ||
+++ b/arch/arm/mach-omap2/opp33xx_data.c | ||
@@ -14,6 +14,7 @@ | ||
*/ | ||
#include <linux/io.h> | ||
#include <linux/module.h> | ||
+#include <linux/of.h> | ||
|
||
#include "control.h" | ||
#include "omap_opp_data.h" | ||
@@ -82,6 +83,9 @@ int __init am33xx_opp_init(void) | ||
if (WARN(!soc_is_am33xx(), "Cannot init OPPs: unsupported SoC.\n")) | ||
return r; | ||
|
||
+ if (of_machine_is_compatible("ti,am335x-olimex-som")) | ||
+ return r; | ||
+ | ||
rev = omap_rev(); | ||
|
||
switch (rev) { | ||
-- | ||
2.6.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters