[U-Boot] TI:OMAP: [PATCH 7/7] Add 720Mhz support for Beagle Rev C4

From c0bdd7fbdf343ada1ecc65541ec3de1a5fdbfe79 Mon Sep 17 00:00:00 2001
From: Syed Mohammed Khasim khasim@ti.com Date: Mon, 18 Jan 2010 18:51:04 +0530 Subject: [PATCH] Add 720Mhz support for Beagle Rev C4
Use the Generic TWL and Clock APIs to get beagle Rev C4 running at 720Mhz
Signed-off-by: Syed Mohammed Khasim khasim@ti.com --- board/ti/beagle/beagle.c | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c index 2bf0430..315d673 100644 --- a/board/ti/beagle/beagle.c +++ b/board/ti/beagle/beagle.c @@ -132,8 +132,26 @@ int misc_init_r(void) struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE; struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE;
+ beagle_identify(); + twl4030_power_init(); twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON); + + if (beagle_revision == REVISION_C4) { + + /* Select TWL4030 VSEL to support 720Mhz */ + twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VAUX2_DEDICATED, + VAUX2_VSEL_18, + TWL4030_PM_RECEIVER_VAUX2_DEV_GRP, + DEV_GRP_P1); + + twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VDD1_VSEL, + VDD1_VSEL_14, + TWL4030_PM_RECEIVER_VDD1_DEV_GRP, + DEV_GRP_P1); + prcm_config_720mhz(); + } + display_init();
/* Configure GPIOs to output */ @@ -147,7 +165,6 @@ int misc_init_r(void) writel(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 | GPIO15 | GPIO14 | GPIO13 | GPIO12, &gpio5_base->setdataout);
- beagle_identify();
dieid_num_r(); omap3_dss_enable();

Khasim Syed Mohammed wrote:
From c0bdd7fbdf343ada1ecc65541ec3de1a5fdbfe79 Mon Sep 17 00:00:00 2001 From: Syed Mohammed Khasim khasim@ti.com Date: Mon, 18 Jan 2010 18:51:04 +0530 Subject: [PATCH] Add 720Mhz support for Beagle Rev C4
Use the Generic TWL and Clock APIs to get beagle Rev C4 running at 720Mhz
Why is it necessary to run mpu at 720 ? If this is to support display, this patch should be before display
Make it clear in your commit which omap clk is changing and why.
Tom

On 24.01.2010 01:26, Tom wrote:
Khasim Syed Mohammed wrote:
From c0bdd7fbdf343ada1ecc65541ec3de1a5fdbfe79 Mon Sep 17 00:00:00 2001 From: Syed Mohammed Khasimkhasim@ti.com Date: Mon, 18 Jan 2010 18:51:04 +0530 Subject: [PATCH] Add 720Mhz support for Beagle Rev C4
Use the Generic TWL and Clock APIs to get beagle Rev C4 running at 720Mhz
Why is it necessary to run mpu at 720 ? If this is to support display, this patch should be before display
New BeagleBoard Rev C4 uses a new OMAP3 revision which is able to run with higher frequency. Switching to 720MHz (from 500MHz) base clock is to use this general performance improvement. It's independent of display support.
Best regards
Dirk
Make it clear in your commit which omap clk is changing and why.
Tom _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (3)
-
Dirk Behme
-
Khasim Syed Mohammed
-
Tom