[3/3] rk3566: radxa-cm3: Enable USB OTG

Message ID 20230223163553.647775-4-abbaraju.manojsai@amarulasolutions.com
State New
Headers show
Series
  • USB OTG support for radxa cm3 IO board
Related show

Commit Message

Manoj Sai Feb. 23, 2023, 4:35 p.m. UTC
Enable USB OTG support and update the fastboot buffer address
for Radxa Compute Module 3 IO Board.

This would help to use fastboot by default.

Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
---
 configs/radxa-cm3-io-rk3566_defconfig | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jagan Teki Feb. 24, 2023, 7:23 a.m. UTC | #1
On Thu, Feb 23, 2023 at 10:06 PM Manoj Sai
<abbaraju.manojsai@amarulasolutions.com> wrote:
>
> Enable USB OTG support and update the fastboot buffer address
> for Radxa Compute Module 3 IO Board.
>
> This would help to use fastboot by default.
>
> Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
> ---
>  configs/radxa-cm3-io-rk3566_defconfig | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/configs/radxa-cm3-io-rk3566_defconfig b/configs/radxa-cm3-io-rk3566_defconfig
> index 2100cf2cb2..4d2acef6cd 100644
> --- a/configs/radxa-cm3-io-rk3566_defconfig
> +++ b/configs/radxa-cm3-io-rk3566_defconfig
> @@ -21,6 +21,7 @@ CONFIG_DEBUG_UART_BASE=0xFE660000
>  CONFIG_DEBUG_UART_CLOCK=24000000
>  CONFIG_SYS_LOAD_ADDR=0xc00800
>  CONFIG_DEBUG_UART=y
> +# CONFIG_ANDROID_BOOT_IMAGE is not set
>  CONFIG_FIT=y
>  CONFIG_FIT_VERBOSE=y
>  CONFIG_SPL_LOAD_FIT=y
> @@ -47,6 +48,7 @@ CONFIG_NET_RANDOM_ETHADDR=y
>  CONFIG_SPL_REGMAP=y
>  CONFIG_SPL_SYSCON=y
>  CONFIG_SPL_CLK=y
> +CONFIG_FASTBOOT_BUF_ADDR=0xc00800

was this address used in bsp or used load addr? add it in
drivers/fastboot/Kconfig

Jagan.

Patch

diff --git a/configs/radxa-cm3-io-rk3566_defconfig b/configs/radxa-cm3-io-rk3566_defconfig
index 2100cf2cb2..4d2acef6cd 100644
--- a/configs/radxa-cm3-io-rk3566_defconfig
+++ b/configs/radxa-cm3-io-rk3566_defconfig
@@ -21,6 +21,7 @@  CONFIG_DEBUG_UART_BASE=0xFE660000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SYS_LOAD_ADDR=0xc00800
 CONFIG_DEBUG_UART=y
+# CONFIG_ANDROID_BOOT_IMAGE is not set
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_SPL_LOAD_FIT=y
@@ -47,6 +48,7 @@  CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_REGMAP=y
 CONFIG_SPL_SYSCON=y
 CONFIG_SPL_CLK=y
+CONFIG_FASTBOOT_BUF_ADDR=0xc00800
 CONFIG_ROCKCHIP_GPIO=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_MISC=y
@@ -74,4 +76,5 @@  CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_GENERIC=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GENERIC=y
+CONFIG_USB_GADGET=y
 CONFIG_ERRNO_STR=y