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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8DD62C433F5 for ; Tue, 15 Feb 2022 11:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=QFbFSNMGojCzkaMv3Eg6+sS0vbV/DGHMt+t1qp9/lEI=; b=V15HHu/PNWUcZk 3HsotAfqS1lIcvjh3RfiiprigqbQJXH7BIQbyNexaPmNBFXpDcOid0IUV80nhfzFTavFiRcl/01K/ dZFEBcl0gsmprF33wpDoAtU3mvQCRRxuEjjE42dVXfVmCAGwfDU8pf0mkon2czru4FB70AhDhSupd b9jWUfpx64iRyZXXB8x3FyV3Iqvo8mxkc4vQRHYkyIHOw6McNa25LvMOh14TUi7W36kCBZhQpqtQr sOCwddXcOPjb9Xgg/drFkAo3qpsSQ9MQk/e0WKTHqj7NSOgMyjYuwnZ623faAeZs/hujEYRRa0RMs WwbwtIGiWWOKnYWFiagA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJwPz-002bjt-Fe; Tue, 15 Feb 2022 11:54:51 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJwPv-002bj8-2d for linux-arm-kernel@lists.infradead.org; Tue, 15 Feb 2022 11:54:48 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C144A1480; Tue, 15 Feb 2022 03:54:43 -0800 (PST) Received: from e125920.arm.com (unknown [10.57.87.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 658B63F718; Tue, 15 Feb 2022 03:54:42 -0800 (PST) From: Peter Hoyes To: linux-arm-kernel@lists.infradead.org Cc: mark.rutland@arm.com, andre.przywara@arm.com, diego.sueiro@arm.com, jaxson.han@arm.com, Peter Hoyes Subject: [boot-wrapper PATCH] Makefile: Change COUNTER_FREQ to 100 MHz Date: Tue, 15 Feb 2022 11:54:18 +0000 Message-Id: <20220215115418.678223-1-peter.hoyes@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220215_035447_207773_9241BDB3 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peter Hoyes Older Arm Fast Models (AEM < RevC) had a base frequency of 24 MHz. but the RevC base models use 100 MHz. There is not a robust method of determining the configured base frequency at runtime, so update COUNTER_FREQ to be 100 MHz. Signed-off-by: Peter Hoyes --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 08e304a..6ebece2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,7 +13,7 @@ SCRIPT_DIR := $(top_srcdir)/scripts PHYS_OFFSET := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findmem.pl $(KERNEL_DTB)) UART_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011') SYSREGS_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null) -COUNTER_FREQ := 24000000 +COUNTER_FREQ := 100000000 CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB)) NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel