[meta-ti] Franklin S. Cooper Jr : linux-am335x-psp: Add 1 GHZ Support for BBB
Arago Project git
git at arago-project.org
Tue Jul 2 09:02:51 PDT 2013
Module: meta-ti
Branch: dylan
Commit: 673f6c08c144ced3fec848b773d4a61d5313b093
URL: http://arago-project.org/git/meta-ti.git?a=commit;h=673f6c08c144ced3fec848b773d4a61d5313b093
Author: Franklin S. Cooper Jr <fcooper at ti.com>
Date: Thu Jun 27 10:57:35 2013 -0500
linux-am335x-psp: Add 1 GHZ Support for BBB
Signed-off-by: Franklin S. Cooper Jr <fcooper at ti.com>
Signed-off-by: Denys Dmytriyenko <denys at ti.com>
---
...nable-Turbo-and-Nitro-modes-for-Beaglebon.patch | 41 ++++++++++++++++++++
recipes-kernel/linux/linux-am335x-psp_3.2.bb | 6 ++-
2 files changed, 45 insertions(+), 2 deletions(-)
diff --git a/recipes-kernel/linux/linux-am335x-psp-3.2/0001-am335x-Re-enable-Turbo-and-Nitro-modes-for-Beaglebon.patch b/recipes-kernel/linux/linux-am335x-psp-3.2/0001-am335x-Re-enable-Turbo-and-Nitro-modes-for-Beaglebon.patch
new file mode 100644
index 0000000..17a87af
--- /dev/null
+++ b/recipes-kernel/linux/linux-am335x-psp-3.2/0001-am335x-Re-enable-Turbo-and-Nitro-modes-for-Beaglebon.patch
@@ -0,0 +1,41 @@
+From ec0ec41418ec1193e4352f1983ab29173f10f855 Mon Sep 17 00:00:00 2001
+From: Steve Kipisz <s-kipisz2 at ti.com>
+Date: Wed, 5 Jun 2013 10:10:44 -0500
+Subject: [PATCH] am335x:Re-enable Turbo and Nitro modes for Beaglebone Black
+ The Beaglebone Black boards use a speed binned PG2.0 AM335x
+ that operate up to 1GHz so re-enable those modes for
+ Beaglebone Black.
+
+Signed-off-by: Steve Kipisz <s-kipisz2 at ti.com>
+---
+ arch/arm/mach-omap2/board-am335xevm.c | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
+index bac415c..47e5a9d 100644
+--- a/arch/arm/mach-omap2/board-am335xevm.c
++++ b/arch/arm/mach-omap2/board-am335xevm.c
+@@ -2529,6 +2529,20 @@ static void am335x_evm_setup(struct memory_accessor *mem_acc, void *context)
+
+ am335x_opp_update();
+
++ /*
++ * For now, Beaglebone Black uses PG 2.0 that are speed binned and operate
++ * up to 1GHz. So re-enable Turbo and Nitro modes,
++ */
++ if (!strncmp("A335BNLT", config.name, 8)) {
++ struct device *mpu_dev;
++
++ mpu_dev = omap_device_get_by_hwmod_name("mpu");
++ opp_enable(mpu_dev,
++ AM33XX_ES2_0_OPPTURBO_FREQ);
++ opp_enable(mpu_dev,
++ AM33XX_ES2_0_OPPNITRO_FREQ);
++ }
++
+ /* SmartReflex also requires board information. */
+ am33xx_sr_init();
+
+--
+1.7.9.5
+
diff --git a/recipes-kernel/linux/linux-am335x-psp_3.2.bb b/recipes-kernel/linux/linux-am335x-psp_3.2.bb
index 257c6de..eaf788f 100644
--- a/recipes-kernel/linux/linux-am335x-psp_3.2.bb
+++ b/recipes-kernel/linux/linux-am335x-psp_3.2.bb
@@ -15,7 +15,7 @@ DEPENDS += "am33x-cm3"
KERNEL_IMAGETYPE = "uImage"
# The main PR is now using MACHINE_KERNEL_PR, for ti33x see conf/machine/include/ti33x.inc
-MACHINE_KERNEL_PR_append = "g+gitr${SRCPV}"
+MACHINE_KERNEL_PR_append = "h+gitr${SRCPV}"
BRANCH = "v3.2-staging"
@@ -88,7 +88,9 @@ PATCHES += "file://0001-am335x-enable-pullup-on-the-WLAN-enable-pin-fo.patch"
PATCHES += "file://0001-ARM-OMAP2-AM335x-Update-SPI-flash-layout.patch"
# Add support for Beaglebone Black
-PATCHES += "file://0001-am335x-Add-minimal-support-for-Beaglebone-Black.patch"
+PATCHES += "file://0001-am335x-Add-minimal-support-for-Beaglebone-Black.patch \
+ file://0001-am335x-Re-enable-Turbo-and-Nitro-modes-for-Beaglebon.patch \
+"
# Copy the am33x-cm3 firmware if it is available
do_configure_append() {
More information about the meta-ti
mailing list