From patchwork Wed Aug 3 15:29:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 1031832 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p73FToKP026830 for ; Wed, 3 Aug 2011 15:32:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753105Ab1HCP3x (ORCPT ); Wed, 3 Aug 2011 11:29:53 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:44933 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751934Ab1HCP3u convert rfc822-to-8bit (ORCPT ); Wed, 3 Aug 2011 11:29:50 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p73FToa5002916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 3 Aug 2011 10:29:50 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep33.itg.ti.com (8.13.7/8.13.8) with ESMTP id p73FTov1025078 for ; Wed, 3 Aug 2011 10:29:50 -0500 (CDT) Received: from dnce72.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p73FTmSI017147 for ; Wed, 3 Aug 2011 10:29:49 -0500 (CDT) thread-index: AcxR8i6VdStuq4dtQim5XbbJKdnSnQ== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4657 Received: from localhost.localdomain (172.24.88.14) by dnce72.ent.ti.com (137.167.131.87) with Microsoft SMTP Server (TLS) id 8.3.106.1; Wed, 3 Aug 2011 17:29:48 +0200 From: Tero Kristo To: Subject: [RFC 2/2] TEMP: OMAP3: beagle: added dummy vdd ramp up and clock setup times Date: Wed, 3 Aug 2011 18:29:15 +0300 Message-ID: <1312385355-17029-3-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1312385355-17029-1-git-send-email-t-kristo@ti.com> References: <1312385355-17029-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 03 Aug 2011 15:32:41 +0000 (UTC) This patch provided just as an example, actual times should be measured for the board. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c | 36 +++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 34f8411..fea94cc 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -47,11 +47,13 @@ #include #include #include +#include #include "mux.h" #include "hsmmc.h" #include "pm.h" #include "common-board-devices.h" +#include "voltage.h" /* * OMAP3 Beagle revision @@ -83,6 +85,29 @@ static struct gpio omap3_beagle_rev_gpios[] __initdata = { { 173, GPIOF_IN, "rev_id_2" }, }; +struct omap_volt_board_data beagle_mpu_volt_data = { + .vdd_setup_ret = { + .ramp_up = 50, + }, + .vdd_setup_off = { + .ramp_up = 100, + }, +}; + +struct omap_volt_board_data beagle_core_volt_data = { + .vdd_setup_ret = { + .ramp_up = 50, + }, + .vdd_setup_off = { + .ramp_up = 100, + }, +}; + +struct omap_osc_data beagle_osc_data = { + .clk_setup_ret = 50, + .clk_setup_off = 5000, +}; + static void __init omap3_beagle_init_rev(void) { int ret; @@ -506,6 +531,8 @@ static void __init beagle_opp_init(void) static void __init omap3_beagle_init(void) { + struct voltagedomain *voltdm; + omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); omap3_beagle_init_rev(); omap3_beagle_i2c_init(); @@ -532,6 +559,15 @@ static void __init omap3_beagle_init(void) beagle_display_init(); beagle_opp_init(); + + voltdm = voltdm_lookup("mpu_iva"); + pr_info("beagle: adding volt data\n"); + omap_voltage_register_board_params(voltdm, &beagle_mpu_volt_data); + + voltdm = voltdm_lookup("core"); + omap_voltage_register_board_params(voltdm, &beagle_core_volt_data); + + omap_osc_register(&beagle_osc_data); } MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board")