From patchwork Tue Aug 20 23:00:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 820617 Delivered-To: patch@linaro.org Received: by 2002:adf:e98a:0:b0:367:895a:4699 with SMTP id h10csp449818wrm; Tue, 20 Aug 2024 16:00:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXaTX+1Pm61P9/bTmO2JaR4wg/L3dcxyCxBe6e5Vu4MFz2K3xkkwM/WBchdm1wS2fOQZO4T+A==@linaro.org X-Google-Smtp-Source: AGHT+IHR+fRHtfvC+Yu2BgmJL/ZqnSfTNajonGhgI8ZTtt5g50z7X4enIhz0fhqbBFkM5JKdc/MX X-Received: by 2002:a05:6602:2c95:b0:805:afed:cea1 with SMTP id ca18e2360f4ac-82531913d56mr29111439f.14.1724194853553; Tue, 20 Aug 2024 16:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724194853; cv=none; d=google.com; s=arc-20160816; b=hiBdUFe05V6EHhQxUp2U5d6IdMwRehFc5Q040Wklf+F5Rb5PrNEyA33OJKUlvnlPbW mHzA7qkgriJvBs50gRYuWuYk26LMadwtVIW/zPFmjJXmamCRYu/F6L8UrcMGHZDf4A/m PUEijQVEvhXN/fOK5km07OgHwA+a4G+lbU9Z+JHa3D8Kz67lbz9KnuKHlbroKaMHwg09 ykR7Q5qTWGAhUMTaLnRUP/nrA0AqOSbopxR1jd88s/Lveu/MKTXy8nbmxfuvQ0EfjQpX 6s5OiKtYruCXP/ckLM8U3AOuLYBXV7Qjx7P6jfq1gw9/N/Xk5ZcmHHOH/1CkUcxgwNRd 2G+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=ln8RRdiEizsvhK+l4ain/VpC0y7WrBaHHrX0vQK5m9w=; fh=8pAQzRFnVN8zrZNtsRM0Iqu2MynFBuynI/J9AcDcpo4=; b=Ckt6yn4EmbXgj2E/5rgYtlM05QVEYYiPviZRuhyEW+hhMoFPtBeFK8wr3nCQlByeFW +t4RwTElJQ6+kGwvJr/UkXNRF1kgDBNgkn3eLb8mJpQnMzMEDoZSIkAvzH/ngoq9N3B/ FDwZc5VFn8XeAWvPFgMl7ucd9oc+d/OO4PbVftVa9Guz17jaI1s2sB117e0SzE/rg52g MaLGswCz3MTTj9yP71Bu82ovSBsjdgDxl/Qk94rAuhuecb9emloZnqRCOe0uXWaOO2Bu 6S8HUKyHa4CXaUqmY0VGsyGc/o0aMQVIMBRPUdF1lRBo+UTQNh/YFEm+pQnv8vCVYYET fHNg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="sZv00/+K"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ca18e2360f4ac-824e99266cbsi564518539f.62.2024.08.20.16.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 16:00:53 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="sZv00/+K"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0E4C988ADC; Wed, 21 Aug 2024 01:00:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.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=linaro.org header.i=@linaro.org header.b="sZv00/+K"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 63F9C88ADC; Wed, 21 Aug 2024 01:00:50 +0200 (CEST) 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,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 A88B388802 for ; Wed, 21 Aug 2024 01:00:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5bf01bdaff0so2762713a12.3 for ; Tue, 20 Aug 2024 16:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724194847; x=1724799647; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ln8RRdiEizsvhK+l4ain/VpC0y7WrBaHHrX0vQK5m9w=; b=sZv00/+KAwu3rwehk2nepbN8EYIy4aSkSAgkpyxs0sljj/xCsv+Ik2Ipv+au8sispE zfRCJhOsOIx9wv29LLmJKjNQ7ppxlIlnms4zKeh3EGiIGyJ1IiMxnyimrN2R/cv8Jy+s a3trkKUl30iTd3jQq2ZxX54OxzlG36hWme4ixJr2uWMKVH7E09VqTB1o21W4ij16eYyb 141YzUqg9PN0qcXrHpBc1Lz+Cl3bHIASZYrwm3zvBhxLQoUxsTKU7NWdYm6/B9o7sUBV qgGjStyWLLAFL3Vd9rYb/ysi4VEKfK35jRfpFhQA4W+odyKrTlHFJew372IFBcCNfhd7 lCtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724194847; x=1724799647; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ln8RRdiEizsvhK+l4ain/VpC0y7WrBaHHrX0vQK5m9w=; b=I2RzmOFlwBKj8uE2k5bK7dMEiM6eMvUDuAQRZagUs/OvSesQJCQ8HM5XlyclYiL+Uj 0Re0uXEbRh+fMSQaJGZWHP/czQex61YsebmukzbjFYZXCDhQYi5V+fOVxR7Mlp27iLKo /flgS9J+pbYrZHpn6bgyZ7kU2Pf6r5T8HCiqdKMpRjPIa5Wsc4XOHTEso1jGKFcMQvjz b85ygw1fIRueV2Lme/WSilZNpyP4qlouVVHaE6kHMx03Oh1cVNL3SW01IPddcx+v4sLW vE6Tu+1rxomGJqJab2tK9XuGavF/iRLHXGUYcX8/nRL5WFGO0+rIpNsYiUawQTCtf0PY Vlyg== X-Gm-Message-State: AOJu0YwlOxOkpjXBd4uWKbDxSkKZ/TLvTskzSq0wl9zDgEvp3xJf2RXS VGMRcXpfK9dcUiSOcnHzxD4ZMj+X9IaZu/RcvOd6UgCIXYLhCG0FEzDUtJwfnFg= X-Received: by 2002:a05:6402:540f:b0:5be:ea9c:5fce with SMTP id 4fb4d7f45d1cf-5bf1f0d9309mr147642a12.16.1724194846680; Tue, 20 Aug 2024 16:00:46 -0700 (PDT) Received: from cymric.caleb.rex.connolly.tech ([2a02:8109:aa0d:be00::676e]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bebc0832d2sm7263701a12.97.2024.08.20.16.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 16:00:46 -0700 (PDT) From: Caleb Connolly To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io Subject: [PATCH] board/qualcomm: add debug config fragments for some SoCs Date: Wed, 21 Aug 2024 01:00:27 +0200 Message-ID: <20240820230037.1859088-1-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 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 We already have some documentation describing how to enable debug UART for Qualcomm SoCs. However the UART address varies per-soc... Add some config fragments to enable debug UART for few well supported SoCs. These can be used like: $ make qcom_defconfig debug-sdm845.config Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- board/qualcomm/debug-sdm845.config | 5 +++++ board/qualcomm/debug-sm6115.config | 5 +++++ board/qualcomm/debug-sm8250.config | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 board/qualcomm/debug-sdm845.config create mode 100644 board/qualcomm/debug-sm6115.config create mode 100644 board/qualcomm/debug-sm8250.config diff --git a/board/qualcomm/debug-sdm845.config b/board/qualcomm/debug-sdm845.config new file mode 100644 index 000000000000..31ad6d02a3a7 --- /dev/null +++ b/board/qualcomm/debug-sdm845.config @@ -0,0 +1,5 @@ +CONFIG_DEBUG_UART=y +CONFIG_DEBUG_UART_ANNOUNCE=y +CONFIG_DEBUG_UART_BASE=0xa84000 +CONFIG_DEBUG_UART_MSM_GENI=y +CONFIG_DEBUG_UART_CLOCK=7372800 diff --git a/board/qualcomm/debug-sm6115.config b/board/qualcomm/debug-sm6115.config new file mode 100644 index 000000000000..131c6e230de8 --- /dev/null +++ b/board/qualcomm/debug-sm6115.config @@ -0,0 +1,5 @@ +CONFIG_DEBUG_UART=y +CONFIG_DEBUG_UART_ANNOUNCE=y +CONFIG_DEBUG_UART_BASE=0x4a90000 +CONFIG_DEBUG_UART_MSM_GENI=y +CONFIG_DEBUG_UART_CLOCK=14745600 diff --git a/board/qualcomm/debug-sm8250.config b/board/qualcomm/debug-sm8250.config new file mode 100644 index 000000000000..4d3cc4cc97f4 --- /dev/null +++ b/board/qualcomm/debug-sm8250.config @@ -0,0 +1,5 @@ +CONFIG_DEBUG_UART=y +CONFIG_DEBUG_UART_ANNOUNCE=y +CONFIG_DEBUG_UART_BASE=0xa90000 +CONFIG_DEBUG_UART_MSM_GENI=y +CONFIG_DEBUG_UART_CLOCK=14745600