From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2286ECAAD5 for ; Sun, 4 Sep 2022 01:08:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4264B83108; Sun, 4 Sep 2022 03:08:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="AjCe8SAe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C94A683FC6; Sun, 4 Sep 2022 03:08:27 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EB33883108 for ; Sun, 4 Sep 2022 03:08:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 47639B80977; Sun, 4 Sep 2022 01:08:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDFEEC433D6; Sun, 4 Sep 2022 01:08:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662253702; bh=vZ7k0y6EKHPkll9dyLO4fM7sHW006LO/bUGNsW7rMqk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AjCe8SAem22pLtECFjNc+dFyZNf+SJpDYjOEE7w/YOu/QGN0LQ0p8ArWUYhrPryqV QqPLrtulG93mxsSB/cMJYTVj5F0txBDuAIFHpb3oSyZ5G2EDzTq16NcB74BJOC25QJ odUoYvMQ1NGENg8F8xdzgqmY75aOxfa0VU13eX62/68RmXRhpaQzWd4npJbr0tuGvQ Mi3galBo1+pQaAc9g+XL1AbmqdoXMbvHbuFUBKa1BkdRNB/IehnRDWieo060cQBbe3 myF7tj2yD7F4dbhS9bMTUF38VqefWNzud5lSoWgvChBrkG77DG5tsCIkuNuWQTRrjT VzTnGZa6dpQvw== Received: by pali.im (Postfix) id D2711850; Sun, 4 Sep 2022 03:08:19 +0200 (CEST) Date: Sun, 4 Sep 2022 03:08:19 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Tony Dinh Cc: Stefan Roese , U-Boot Mailing List , Michael Walle , Simon Glass Subject: Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support Message-ID: <20220904010819.5npwywx3znynglzf@pali> References: <20220902062554.1197435-1-sr@denx.de> <20220902062554.1197435-4-sr@denx.de> <3e1fdcaf-2d9d-bcfb-3067-d8c723af52cb@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Saturday 03 September 2022 17:38:01 Tony Dinh wrote: > Hi Pali, > > Is there a way to get the CPU frequency from the board upon start up? > > Thanks, > Tony Hello! Each SoC has either fixed CPU frequency or has some bits in SAR register which say on which frequency is CPU running. SAR bits are SoC specific and are documented either in Functional Specifications or in Hardware Specifications (both documents are available for free all 32-bit Marvell SoCs except 375 and 39x).