Message ID | 20230205194627.203961-6-sjg@chromium.org |
---|---|
State | Changes Requested, archived |
Delegated to: | Heinrich Schuchardt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Wq7jN/XJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P90KH50tSz23fc for <incoming@patchwork.ozlabs.org>; Mon, 6 Feb 2023 06:47:15 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D9528857C8; Sun, 5 Feb 2023 20:46:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Wq7jN/XJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 515D18579B; Sun, 5 Feb 2023 20:46:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 17593857C1 for <u-boot@lists.denx.de>; Sun, 5 Feb 2023 20:46:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd35.google.com with SMTP id y2so3799922iot.4 for <u-boot@lists.denx.de>; Sun, 05 Feb 2023 11:46:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gF0LwGCqRPJQnmwFG0+e5QlpFTfGBX6xwT6ysySN2GI=; b=Wq7jN/XJDAYf6QnVpMQvp+Ur18K8ayQIzhwhDVAWhBgBBBdfqZB8lo29SjWJUyDRY/ tgZadfMWua9FDbH/mWaYiV39ecWmB5cFLXW5n+FtFEnY3+FpWzmoqLXAlvyBaydJQrsv Z8NTkd0V7gNN7vh3FsY+SaLckfsZXvyGR/wZo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gF0LwGCqRPJQnmwFG0+e5QlpFTfGBX6xwT6ysySN2GI=; b=rFnwr4pMBmN2Pwv0N14SgCfqENq/CIXMXPAe3DaeQIs2IZzQg/aoQ9D4PSqqqOWAyu +Y7d3LvwUmTzXbWrBQ9wcBCMq382kgCy3UZdeWIbzqltCTZ9PIk05WbtREwIKBlUFyrk VommpX1J1dmei1XR4CihGRaic0w2Zi6PatBGmE2WhRlursU9CV9Jo4vi2lDyOmYZWoC9 d+TyWvZAi66ONDma+GIB+CLLVVzluTxZNbu9G024xO2tZ3bLo2p1R7fjd7WZr25Om6ug Ot6yuOhTdWB2bo6uMhmGzgvn8wf318fnMsqKVJId+0VCGX3a7GNsXTr1M5vagTmkICge 5eiw== X-Gm-Message-State: AO0yUKWRl3t5m+eK+eUKnvxiXVScfgrPV7yJs24PYmVBBRSJNugs1MMB cqBIsAqGVuvnWL1jt5xGsjbURhGtY6HASySm X-Google-Smtp-Source: AK7set+0CA1ZOaxm+IFUY/mCm8SqGBfsJrWEhK+i0mOUIGRWJEwTB07ZA6TaFgVi4+pu2qBOQZPghA== X-Received: by 2002:a5e:dc03:0:b0:71e:45d5:9b30 with SMTP id b3-20020a5edc03000000b0071e45d59b30mr11524050iok.13.1675626404280; Sun, 05 Feb 2023 11:46:44 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id p13-20020a6b8d0d000000b007219624f89fsm2594282iod.11.2023.02.05.11.46.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Feb 2023 11:46:43 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Anatolij Gustschin <agust@denx.de>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> Subject: [PATCH 05/11] efi: Use a fixed value for the timer clock Date: Sun, 5 Feb 2023 12:46:21 -0700 Message-Id: <20230205194627.203961-6-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog In-Reply-To: <20230205194627.203961-1-sjg@chromium.org> References: <20230205194627.203961-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
video: efi: Improve the EFI-app video console
|
expand
|
diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index 50ab4e86dca..44c6cc363e0 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -404,6 +404,10 @@ static void tsc_timer_ensure_setup(bool early) if (!gd->arch.clock_rate) { unsigned long fast_calibrate; + if (IS_ENABLED(CONFIG_EFI_APP)) { + fast_calibrate = 2750; + goto done; + } fast_calibrate = native_calibrate_tsc(); if (fast_calibrate) goto done;
It is not yet clear how to read the timer via EFI. The current value seems much too high on a Framework laptop I tried. Adjust it to a lower hard-coded value for now. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/timer/tsc_timer.c | 4 ++++ 1 file changed, 4 insertions(+)