diff mbox series

[4/4] qcom_defconfig: enable fastboot

Message ID 20250324-sdm845-fixes-fastboot-v1-4-d177a10f336d@linaro.org
State New
Headers show
Series Qualcomm: fix sdm845 clocks and enable fastboot | expand

Commit Message

Caleb Connolly March 24, 2025, 6:17 p.m. UTC
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 <caleb.connolly@linaro.org>
---
 configs/qcom_defconfig | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Neil Armstrong March 25, 2025, 7:28 a.m. UTC | #1
On 24/03/2025 19:17, Caleb Connolly wrote:
> 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 <caleb.connolly@linaro.org>
> ---
>   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
> 

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
diff mbox series

Patch

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