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 700CEECAAD5 for ; Sun, 4 Sep 2022 02:36:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E7BE6839C3; Sun, 4 Sep 2022 04:36:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="Vu1fRM9r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D2FF9839C3; Sun, 4 Sep 2022 04:36:18 +0200 (CEST) Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C92ED83108 for ; Sun, 4 Sep 2022 04:36:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mibodhi@gmail.com Received: by mail-vs1-xe33.google.com with SMTP id k66so5779132vsc.11 for ; Sat, 03 Sep 2022 19:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=pJHNBJRsksdhPQcsFwhLYN86O2oBOy6CUAiccoCtTmM=; b=Vu1fRM9rAZldPqScuZ+FXxJ5L1oVyBeqyeXvV+r3byK/I6/1FwSDvSG3AuWKO9o1jf em8/PKrO0/V2HOKzEUjcBLa+dXV6Yl9tt1n78kcytnv/NCOocB77DUi1Ll+87ZpE/xHc YnSM9IjyypwiPLXueLk1FRWpSH8KNFIUlRerbMfWohWZq879euCM9DnXaV2BmkCklgpA YqPcV2K6h48jLAFHbnG4Gxy/2Y9PvjShPUN5zJs68EQrDXn1C0d/PUnKoWncv6BwMhmf TCyyBZUzVLcD079WuW1uqHQGDwOWsruZEMBdpc+DZs8jwT1F/L21ABqVunwXxJ9neC78 8qaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=pJHNBJRsksdhPQcsFwhLYN86O2oBOy6CUAiccoCtTmM=; b=m+Qo/eTbxvg6eDd8Cv4IG+AIWKR+AdFNIjIx97F2S+J9iHeQsvaDk5oTTpZpufCXZi EIQebT5ry255aJDIV9ZHeCVhIdc7HJiJFDm0rTmA9aKFe01410lMFzfPyoFUZsJGGBx7 wa3ZBfUJPr1WW+H1l78fz/4Pos5qa48BjOtTqpBr3WDjoirw9gqpKauF9FtI013A9Vi4 rOjMMGDPYEVft3FhBDuEd8jxrI3dzs/BX1mviGUOIAhcb8izgjhxDTLAfald1AlSlqh7 hBOqY73Rw8gMZq1rfvAaNTHBUGQa81vaSlc2oAOCwCfTNsxs8EiMVxTi3/1akcR8T0CC uJSA== X-Gm-Message-State: ACgBeo002Q34ZwP1OSK5+Z15IMj00VCEWTl46JkyZ2sTkJbN8tdAD/0J CQPL2+k9p5od5NAB8xT/Y7nYYs1/uql2VrGX/TU= X-Google-Smtp-Source: AA6agR5L/c4gF9k7gYX1isyMGYxUnJ7j/Kearsc7vYqIj6j3GZg0lR1H8+j65AVgoGUWdBQOM6d2cWjhrmO6xCngXAA= X-Received: by 2002:a67:f342:0:b0:38c:8b81:629f with SMTP id p2-20020a67f342000000b0038c8b81629fmr12789460vsm.60.1662258974479; Sat, 03 Sep 2022 19:36:14 -0700 (PDT) MIME-Version: 1.0 References: <20220902062554.1197435-1-sr@denx.de> <20220902062554.1197435-4-sr@denx.de> <3e1fdcaf-2d9d-bcfb-3067-d8c723af52cb@denx.de> <20220904010819.5npwywx3znynglzf@pali> In-Reply-To: <20220904010819.5npwywx3znynglzf@pali> From: Tony Dinh Date: Sat, 3 Sep 2022 19:36:03 -0700 Message-ID: Subject: Re: [PATCH v2 3/8] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Stefan Roese , U-Boot Mailing List , Michael Walle , Simon Glass Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Hi Pali, On Sat, Sep 3, 2022 at 6:08 PM Pali Roh=C3=A1r wrote: > > 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). Thanks for the recap. I do remember you posted a patch for that detection. https://lists.denx.de/pipermail/u-boot/2022-August/492034.html Just want to make sure that the SAR register is the only way we can detect it in u-boot. The Kirkwood 6192 SoC on this Pogo V4 board can run at 200 Mhz and 800 Mhz with frequency scaling in Linux. Thanks, Tony