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 6B727C74A5B for ; Thu, 23 Mar 2023 18:40:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D71C785D5D; Thu, 23 Mar 2023 19:39:43 +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="DXlUg4sJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DB47685CF6; Thu, 23 Mar 2023 19:39:29 +0100 (CET) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (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 E9CE685D8D for ; Thu, 23 Mar 2023 19:39:25 +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-pf1-x42b.google.com with SMTP id y2so9400718pfw.9 for ; Thu, 23 Mar 2023 11:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1679596764; 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=Xj4k5CnGWEt52L+/5OBTrslLIN9fq+iuo3L9l+mpUJc=; b=DXlUg4sJPiRPcXkgPTQdQ2hFHVlFqxmkYJuYR/9ka3B2543hgYAkjaHn/Q/uZxYfGD v4KMscdJ81KQ93erYpH45Ua5h2pNHGDXj2qi1uC/shYzoAs6YrPFHNbuqShmeMcz3+PH q9wxbxYYfZsl64aAllAEVJ4F9VkOIoB5Y7XDo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679596764; 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=Xj4k5CnGWEt52L+/5OBTrslLIN9fq+iuo3L9l+mpUJc=; b=PpPIvpPFdCYRaeGi4idzOMr4EDcACYFlqnKg5ISfSG4JbG2FVX6V9nz4eorOcB5yKN Ly1QiXcP91S1S6ax+yMzdRMQgBdjU3FmsnjujxBX8pJHAKoysX61HRGpwmX9ZMaZXeg1 fa02bws8p2g7FK3yrsoJU9BQpjosfKj661nDNjPYTZoU5Tt5Znwz5UrltXS6Mus3GbDD OugYHhnG6LKK92Qpah7Clx9M5pgTxRavsEQcmdKdmw2lPBCzAY4Md571zuzJH9c2/TEc ke/rcQi7ah8tItnBj1ngRvp5PMqGOxxg/O+fxqSZzmNF2g4rz+M9BdXbB5DrypzzV2Gn 7t5A== X-Gm-Message-State: AAQBX9frdGVc/gin7KGcFvuH7F66thvgn0Qj0flPPYK1qaOpWFZhPltu XXo+D9dSzUCgztKr9qOYTyvcUz8CbNMwjiZUPRk= X-Google-Smtp-Source: AKy350b4LZq/lHl/Srs9dQfWyIhsfy3FwUKjk7a31Eh9iXcSD7DBg7w5KM4SS3evrpepjpiverDW3A== X-Received: by 2002:a62:7bce:0:b0:625:e051:e462 with SMTP id w197-20020a627bce000000b00625e051e462mr403339pfc.15.1679596764003; Thu, 23 Mar 2023 11:39:24 -0700 (PDT) Received: from localhost.localdomain ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id c18-20020a62e812000000b006227c3d5e29sm12733029pfi.16.2023.03.23.11.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 11:39:23 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass Subject: [PATCH v2 10/16] x86: coreboot: Document how to enable the debug UART Date: Fri, 24 Mar 2023 07:31:51 +1300 Message-Id: <20230323183157.1520223-5-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog In-Reply-To: <20230323183157.1520223-1-sjg@chromium.org> References: <20230323183157.1520223-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 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.8 at phobos.denx.de X-Virus-Status: Clean This is not obvious so add a little note about how it works. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) doc/board/coreboot/coreboot.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/board/coreboot/coreboot.rst b/doc/board/coreboot/coreboot.rst index 4a5f101cad2e..0fe95af56d2d 100644 --- a/doc/board/coreboot/coreboot.rst +++ b/doc/board/coreboot/coreboot.rst @@ -71,3 +71,32 @@ Memory map (typically redirects to 7ab10030 or similar) 500 Location of coreboot sysinfo table, used during startup ========== ================================================================== + + +Debug UART +---------- + +It is possible to enable the debug UART with coreboot. To do this, use the +info from the cbsysinfo command to locate the UART base. For example:: + + => cbsysinfo + ... + Serial I/O port: 00000000 + base : 00000000 + pointer : 767b51bc + type : 2 + base : fe03e000 + baud : 0d115200 + regwidth : 4 + input_hz : 0d1843200 + PCI addr : 00000010 + ... + +Here you can see that the UART base is fe03e000, regwidth is 4 (1 << 2) and the +input clock is 1843200. So you can add the following CONFIG options:: + + CONFIG_DEBUG_UART=y + CONFIG_DEBUG_UART_BASE=fe03e000 + CONFIG_DEBUG_UART_CLOCK=1843200 + CONFIG_DEBUG_UART_SHIFT=2 + CONFIG_DEBUG_UART_ANNOUNCE=y -- 2.40.0.348.gf938b09366-goog