From patchwork Mon Mar 24 18:17:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 875768 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f4c:0:b0:38f:210b:807b with SMTP id cm12csp2282402wrb; Mon, 24 Mar 2025 11:18:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVqV9aqfYTlCfWCLttsv7nx5YqmGEH348W4gwxhkn5e/EnTEgvxeODj37ds0L2FtMOwApQTxQ==@linaro.org X-Google-Smtp-Source: AGHT+IEMMkZrfNmBiPyfsFe67MuiJTv+dVAQgKLF/5fzueGT8fu6VOo0wF2wiqvLKhWu5C3S9UO7 X-Received: by 2002:a05:6102:d8f:b0:4c1:a15c:ab5c with SMTP id ada2fe7eead31-4c50d5e4afamr9322006137.20.1742840311146; Mon, 24 Mar 2025 11:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742840311; cv=none; d=google.com; s=arc-20240605; b=gy8AOslJZpfyN67/rI3oWhNRG7wb79fgJgQWzkTrlexMMBnu787makUbtL7kQAKHBn tRxdzDor+OEqniVYuwj/R71bAwe3EBeM0gNYbNZxUYauOpN4zNHBhm1NkJrxmOEQwiGl G0MtGmRMChA1Qw+zeR1/gQbRXcr4Slwtq9vVZW1z++3ddTrXCNReVBs+K0YfD7imzvYx /XhB38R9tiegGQM5CIBOIodgqgS34UwEsh+3f9NGeuApb5LMQXOCrJND/d96x6Sa1ctQ hO9vzjV3vA1yS9yroIkr/FAdB9l8zn7gmKLOXiv7alOJxRJ3Lt4Wnn90wUa5QLa8jPvY 3Bkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=6kfPNCoFRoQKKZz0EtecB89NxlD6vAPz7YE5Pf84+nA=; fh=x6lhhH+e4b/RgXHJkjLv7u8XgHuxM+HoyxT78lwJpQo=; b=OUr4S3en0pQQk+j2QE7C+4c6Nkt0x1FkG01vNKYGB1YB1V6qV/rEagFx9cnpT0MSzW gxBXpKBObWXUWqbXLA/00xV8byOycL7FhwV6qTaIP5a9EL8EH5MuUkaEfhYiahwmw5Ge 4AOJFY7aG0OvePhoT3vgxMT4ncCKhjMQMISKEq+3NNzVfUH5ePwo5cDsdQ7CaWYOBgKs T0Ef3lDhVPOZ0oXT6ng7u9gBiOfq9IEA408p9kR11j7PmaJSLob1s5DGK/6N79ysRxsa po8DuHL30/+WoNgw2Xei0skA9W7O40FZUYGxH4VLLpkpXirenV/ip5KC7ryOCywjs0Wq laWQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GtpV4hrA; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id ada2fe7eead31-4c50c0076a6si1789446137.414.2025.03.24.11.18.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 11:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GtpV4hrA; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 E7FF181DCA; Mon, 24 Mar 2025 19:17:57 +0100 (CET) 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="GtpV4hrA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3082A801CF; Mon, 24 Mar 2025 19:17:56 +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,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 0F86B819B1 for ; Mon, 24 Mar 2025 19:17:54 +0100 (CET) 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-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43948f77f1aso31721415e9.0 for ; Mon, 24 Mar 2025 11:17:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742840273; x=1743445073; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6kfPNCoFRoQKKZz0EtecB89NxlD6vAPz7YE5Pf84+nA=; b=GtpV4hrA/MTPvjq+oTT+vCeuI3faUAilDsB5g9LR2qU9dIh0zSAc0rpD3WKh7UbhsT sf7oPbLLhGiyZSYUEBpwuGBO/nO8UpgKu6dJkuzYU23hnoZhnOgZjOMEzFMe5zf6CkB4 sD/8v0LVcHc2Rri73U4X4MB/iHFwWaDKNyV/wO9lLL/wTw4htaIc3O2CjHO2sfGuLVPM v2B4I3vzBPhPj1lCpv9cdLzDeGl4xGHvdsiNXyli9LFuAfggBVmFB54cQnqhh/fJ3y4A Fj4G3vMJhBmNvz7+jTrpyhHlK0Wtn68exTPAcWltIKfZ07QeGKsR1sw2cJ2eooSmtUqj Tg3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742840273; x=1743445073; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6kfPNCoFRoQKKZz0EtecB89NxlD6vAPz7YE5Pf84+nA=; b=q8F+njWHePEyJ1hCHy7mh1h1ekSLLdpdU64bkX6T0b0ZGc9SqU0BR/o/VC4okvFXO3 G5eTlaRf+2tEahF67PcjuHwGRgg/AoNIj0t+2+xKN0uzRXwqroePXKe/IiadMszDgONM iFAsi79rXx0/uzQK5K/OXDjLCu8eRXhuT0xAUwt5m6psxFXC7ucmi+/FkEvFEvcNN9Oh EmeFGvrQe4qdWHt/HJikTQHNhJWeWUTY2NEydEhRxhuS//rEnr3BUEgyVRX59qyU7Vj2 KWhXc/OG3mpR6MmMS0cIhota2KClvXk5d3pNjo5zTz51BE28jXMXXqriHQzoJdn+U/VN GKWQ== X-Gm-Message-State: AOJu0Yw+BKdLCQ+LgNqfr6lFHP3Evgda411zx4cQmyTXk1BKJu/n+9vQ VLagw4tmb1C5yJ1fvBFB+sxxbakv3oLg0YMl2O0cdRdJX4jIxanIBbOZRiuyTfk= X-Gm-Gg: ASbGncuzX9n6qGWhTyh/xYnvA+TgOKDNsJ/mJVhpTaH4Hb/sLjUReUanjRyK/fii4OC JbqbsXX0jcqYcK1hBxntM9HKgDMWLc+DiVEDKEz3DAZoANEddGaKSz5sTHKzqa8UZO+QcgcsKXg urRFOQleHN+rLW3+a3zl1NKXSyH/WSKLYIHWNyQoM7O6X/XmlYaFx8nHwIW1xBGtPDUpm334iPU fRqYqbOSa6HC82KDCpeRBZLbS3jbkz7v4GBZs8N+yB3BN4TqQomD2+MbTLLiVrrrh8TTpDLlfzX HZN+6Hong9mJsX4J34ZqXI4ZEgM+MsCff89loWkTF6iIM4phW1ZAXUMHZ9Vp/nsfZ0hgzAQLbw9 +Du/hzeiseErwgRcgMJm7eHg= X-Received: by 2002:a05:600c:3109:b0:43b:cf12:2ca5 with SMTP id 5b1f17b1804b1-43d509efa3bmr122626395e9.8.1742840273465; Mon, 24 Mar 2025 11:17:53 -0700 (PDT) Received: from toyger.tail248178.ts.net (i5E863BED.versanet.de. [94.134.59.237]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3997f9e6450sm11690651f8f.70.2025.03.24.11.17.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 11:17:52 -0700 (PDT) From: Caleb Connolly Date: Mon, 24 Mar 2025 19:17:40 +0100 Subject: [PATCH 4/4] qcom_defconfig: enable fastboot MIME-Version: 1.0 Message-Id: <20250324-sdm845-fixes-fastboot-v1-4-d177a10f336d@linaro.org> References: <20250324-sdm845-fixes-fastboot-v1-0-d177a10f336d@linaro.org> In-Reply-To: <20250324-sdm845-fixes-fastboot-v1-0-d177a10f336d@linaro.org> To: Lukasz Majewski , Sean Anderson , Tom Rini , Caleb Connolly , Neil Armstrong , Sumit Garg , Rayagonda Kokatanur , Ramon Fried Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1174; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=kw8/EtqNuL9E7nUCG1FuZQogVqqtBqs4+sEez5Iw2M4=; b=owEBbQKS/ZANAwAKAQWDMSsZX2S2AcsmYgBn4aHIOwVVmKH5fgEmaqMg2soIUA6qnx+Y5e5wZ ynUWoH0+DGJAjMEAAEKAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZ+GhyAAKCRAFgzErGV9k tpoUD/99rE80QT/XMfHXovHgsUvsslAfDzN+7ggV1RW0cGTgpvoN00gA7vI/060zkOpXlfnzRuM IjCAXFJrGgWIJ8x8T0nXzphfijztwa8YfFXgAqr6ElLZLy1IYa+Y+bZnSVoMYa/Po81URTYVgx8 x4TlaNJaUFs+qG9od0Vk9KyXK4uP2udFp/YJfN0MaV6M23A6Jq1WUZVUO2ByBLmwF+6dGYh9sR3 KlXP2LgHqkCAfF9hBH68olYgGrd20n+xZ1PROCRS2Td/qkt3Z9CQTdqjX18mhtfHZgvAbYjCRc1 2qQC7JL6RxPVvA0jYbKFWJjhc/azogkthVP8Jhss02etZwkjHdYLDTektYr25nKztV9myiQUbvO Y2IMA48lJaWRA/Ut96pzEKQrNYRcRZJ0Q1zLerB3Xqtz9ZARVJeE3CpyPSsBaMEdM1yHF6Yyk0y MMhbaoykRGpDCTk1Mq9P02zcq7SHRfUVuqpZYfu2sBwSmR786dNrEtHJsmmb3yhdeu5nAqWweQh 6LV51NbazUgVUG84KQirGPzfVAvAEFZpxgeQYXyB0X1nMODRAk8LjTudJkQgHxbb1qPLSojklX/ PeBP6FIUVDhx3SomwTAfnq7SqpsuemoM4r2pkHjC1J04jjVVGg6jIs2Qf5zqfYNW1BheH9l4yES avLejvsmGszORnQ== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 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 Enable fastboot support over USB, using MMC as the backend. This will be the internal eMMC on devices that have it, or the sdcard slot on devices with UFS (if available). We don't use a fixed address for the fastboot buffer because it's allocated at runtime per-board. Entering fastboot mode should be done by executing "run fastboot" or manually running: fastboot -l $fastboot_addr_r usb 0 Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- configs/qcom_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index ba4d38d100e053e3708ee2623bf3530787b6b94f..f5c005d9c4093e4902b05213ab2f54c8ca70208a 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -61,8 +61,13 @@ CONFIG_CLK_QCOM_SC7280=y CONFIG_CLK_QCOM_X1E80100=y CONFIG_DFU_MMC=y CONFIG_DFU_SCSI=y CONFIG_SYS_DFU_DATA_BUF_SIZE=0x200000 +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x0 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=0 +CONFIG_FASTBOOT_MMC_USER_SUPPORT=y CONFIG_MSM_GPIO=y CONFIG_QCOM_PMIC_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_QUP=y