Skip to content

Commit

Permalink
Merge branch 'release-2012.02-mg01.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Galemin committed Mar 8, 2012
2 parents 3045fe4 + b841309 commit 2d9fe7c
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#--------------------------------------------------------------

# Set and export the version string
export BR2_VERSION:=2012.02-mg01.1
export BR2_VERSION:=2012.02-mg01.2

# Check for minimal make version (note: this check will break at make 10.x)
MIN_MAKE_VERSION=3.81
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
From 8717b70a5a23395239235ec419f1802ef6293466 Mon Sep 17 00:00:00 2001
From: Max Galemin <[email protected]>
Date: Thu, 8 Mar 2012 23:18:06 +1100
Subject: [PATCH] Put the IVA2 DPLL in stop mode before un-reset IVA2 module

1. For 1 GHz operation before un-resetting the IVA2 module in omap3_iva_idle()
the IVA2 DPLL needs to be put in low power stop mode as bootloader can enable
the IVA2 DPLL in lock mode which can potentially lead to instability. Previous
IVA2 DPLL mode can be restored after IVA2 reset.
---
arch/arm/mach-omap2/pm34xx.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index efa6649..bcb1985 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -50,6 +50,7 @@
#include "pm.h"
#include "sdrc.h"
#include "control.h"
+#include "clock.h"

#ifdef CONFIG_SUSPEND
static suspend_state_t suspend_state = PM_SUSPEND_ON;
@@ -612,6 +613,8 @@ static const struct platform_suspend_ops omap_pm_ops = {
**/
static void __init omap3_iva_idle(void)
{
+ u32 iva2_dpll;
+
/* ensure IVA2 clock is disabled */
omap2_cm_write_mod_reg(0, OMAP3430_IVA2_MOD, CM_FCLKEN);

@@ -620,6 +623,13 @@ static void __init omap3_iva_idle(void)
OMAP3430_CLKACTIVITY_IVA2_MASK))
return;

+ iva2_dpll = omap2_cm_read_mod_reg(OMAP3430_IVA2_MOD,
+ OMAP3430_CM_CLKEN_PLL);
+
+ /* Put the IVA2 DPLL in low power stop mode */
+ omap2_cm_write_mod_reg((iva2_dpll & ~OMAP3430_EN_IVA2_DPLL_MASK) |
+ DPLL_LOW_POWER_STOP, OMAP3430_IVA2_MOD, OMAP3430_CM_CLKEN_PLL);
+
/* Reset IVA2 */
omap2_prm_write_mod_reg(OMAP3430_RST1_IVA2_MASK |
OMAP3430_RST2_IVA2_MASK |
@@ -645,6 +655,10 @@ static void __init omap3_iva_idle(void)
OMAP3430_RST2_IVA2_MASK |
OMAP3430_RST3_IVA2_MASK,
OMAP3430_IVA2_MOD, OMAP2_RM_RSTCTRL);
+
+ /* Restore the IVA2 DPLL value */
+ omap2_cm_write_mod_reg(iva2_dpll, OMAP3430_IVA2_MOD,
+ OMAP3430_CM_CLKEN_PLL);
}

static void __init omap3_d2d_idle(void)
--
1.7.5.4

2 changes: 1 addition & 1 deletion board/beagleboard/xm/linux-3.2.8.config
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CONFIG_IRQ_WORK=y
CONFIG_EXPERIMENTAL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE="arm-none-linux-gnueabi-"
CONFIG_LOCALVERSION="-mg01.1"
CONFIG_LOCALVERSION="-mg01.2"
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
Expand Down
2 changes: 1 addition & 1 deletion configs/beagle_xm_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BR2_PACKAGE_PORTMAP=y
BR2_PACKAGE_BASH=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="omap3_beagle"
BR2_TARGET_UBOOT_EXTRAVERSION="-mg01.1"
BR2_TARGET_UBOOT_EXTRAVERSION="-mg01.2"
BR2_TARGET_UBOOT_FORMAT_IMG=y
BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_UENV_PARAMETERS=y
Expand Down
2 changes: 1 addition & 1 deletion configs/beagle_xm_full_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ BR2_PACKAGE_NANO=y
BR2_PACKAGE_VIM=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="omap3_beagle"
BR2_TARGET_UBOOT_EXTRAVERSION="-mg01.1"
BR2_TARGET_UBOOT_EXTRAVERSION="-mg01.2"
BR2_TARGET_UBOOT_FORMAT_IMG=y
BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_UENV_PARAMETERS=y
Expand Down
2 changes: 1 addition & 1 deletion fs/skeleton/etc/mg-release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mg01.1
mg01.2

0 comments on commit 2d9fe7c

Please sign in to comment.