From owner-freebsd-arm@FreeBSD.ORG Mon Sep 30 21:05:01 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5284B33A; Mon, 30 Sep 2013 21:05:01 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-vc0-x234.google.com (mail-vc0-x234.google.com [IPv6:2607:f8b0:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 017752580; Mon, 30 Sep 2013 21:05:00 +0000 (UTC) Received: by mail-vc0-f180.google.com with SMTP id ld13so4124692vcb.39 for ; Mon, 30 Sep 2013 14:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=TN65zYv1GcaTRqFtkZGYSUqcg5xZxMZkw9NOUTD4JsQ=; b=V+SalnzbQ2fPGmH3JFOnxyscSH5cKBp+oERwZZTrCGe40YEELFOE3O0mbRjXU8tlLa cV5+35PZ4yHgxqH5Hf5O3F4b+lLIq5mGkp1qj2+sRM5nY2cBENdukUXyqPBrVTquyNhy dTULk1Kde2QL4kyQFXPShvqbSA/bIOBpukvHoTxxfjeHVDw3JEr02iT8Lp7YF2RMGk2w 3AO3CEia3itZz2UGHtu916hbZZ6UTH5XxQyPBF4z0fYWyfpsjj494ShMRQROqDzy0s6G R80MkAclwrS2OR7+0ZWliEPjJKBEYfRg9sqLbVuNg+Wpdbr6NZkLEeDksV0NsaxC3wOu /DRw== X-Received: by 10.58.134.16 with SMTP id pg16mr8640426veb.21.1380575099582; Mon, 30 Sep 2013 14:04:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.225.34 with HTTP; Mon, 30 Sep 2013 14:04:29 -0700 (PDT) In-Reply-To: References: From: Jia-Shiun Li Date: Tue, 1 Oct 2013 05:04:29 +0800 Message-ID: Subject: Re: BBB CPU clock (was: Re: FreeBSD on Cubieboard 2, UDOO and Galaxy Note 10.1 (Exynos). To: Tim Kientzle Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" , ticso@cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Sep 2013 21:05:01 -0000 On Mon, Sep 30, 2013 at 11:26 AM, Tim Kientzle wrote: > > My understanding: > > * We should query the PMIC to determine whether we're running from 5V supply or USB. > > * Based on that, we should adjust the CPU clocks. We should be able to run 1GHz from 5v supply. > > Connecting cpufreq would be a nice addition. Hi Tim, Yes you are right. I digged a bit the PMIC docs. I didn't realize that DCDC2/3 output to MPC/core are adjustable. The PMIC capped USB input at 500mA by default, so if not changed otherwise, or to be safe with what most USB power supplies are, it is correct to only go up to 1GHz on DC input. I played for a while manually setting PMIC from u-boot prompt, setting MPU volt to 1.325v, raise USB current limit, etc. but still cannot get it run above 800MHz. It always stopped booting at initing uhub. Looks like I need a bigger DC adapter. Thanks, Jia-Shiun.