Commit cbeedafdc84053047f036910343038475e09e998
Committed by
Philipp Tomsich
1 parent
c07f38208a
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
configs: rockchip: add USB configs for evb-rv1108 board
This patch adds USB configs to support the USB OTG port(consist of DWC2 controller) and the USB Host port(consist of EHCI and OHCI controllers) on evb-rv1108 board, and also support fastboot over USB and USB mass storage. Signed-off-by: William Wu <william.wu@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Showing 2 changed files with 24 additions and 0 deletions Side-by-side Diff
configs/evb-rv1108_defconfig
... | ... | @@ -5,8 +5,16 @@ |
5 | 5 | CONFIG_DEFAULT_DEVICE_TREE="rv1108-evb" |
6 | 6 | CONFIG_DEBUG_UART=y |
7 | 7 | # CONFIG_DISPLAY_CPUINFO is not set |
8 | +CONFIG_FASTBOOT=y | |
9 | +CONFIG_USB_FUNCTION_FASTBOOT=y | |
10 | +CONFIG_CMD_FASTBOOT=y | |
11 | +CONFIG_FASTBOOT_BUF_ADDR=0x62000000 | |
12 | +CONFIG_FASTBOOT_BUF_SIZE=0x08000000 | |
13 | +CONFIG_FASTBOOT_FLASH=y | |
14 | +CONFIG_FASTBOOT_FLASH_MMC_DEV=1 | |
8 | 15 | # CONFIG_CMD_IMLS is not set |
9 | 16 | CONFIG_CMD_SF=y |
17 | +CONFIG_CMD_USB=y | |
10 | 18 | # CONFIG_CMD_SETEXPR is not set |
11 | 19 | CONFIG_CMD_CACHE=y |
12 | 20 | CONFIG_CMD_TIME=y |
... | ... | @@ -26,6 +34,7 @@ |
26 | 34 | CONFIG_GMAC_ROCKCHIP=y |
27 | 35 | CONFIG_PINCTRL=y |
28 | 36 | CONFIG_PINCTRL_ROCKCHIP_RV1108=y |
37 | +CONFIG_DM_REGULATOR_FIXED=y | |
29 | 38 | CONFIG_BAUDRATE=1500000 |
30 | 39 | # CONFIG_SPL_SERIAL_PRESENT is not set |
31 | 40 | CONFIG_DEBUG_UART_BASE=0x10210000 |
... | ... | @@ -33,5 +42,17 @@ |
33 | 42 | CONFIG_DEBUG_UART_SHIFT=2 |
34 | 43 | CONFIG_SYSRESET=y |
35 | 44 | CONFIG_USB=y |
45 | +CONFIG_USB_EHCI_HCD=y | |
46 | +CONFIG_USB_EHCI_GENERIC=y | |
47 | +CONFIG_USB_OHCI_HCD=y | |
48 | +CONFIG_USB_OHCI_GENERIC=y | |
49 | +CONFIG_USB_DWC2=y | |
50 | +CONFIG_USB_STORAGE=y | |
51 | +CONFIG_USB_GADGET=y | |
52 | +CONFIG_USB_GADGET_DWC2_OTG=y | |
53 | +CONFIG_USB_GADGET_DOWNLOAD=y | |
54 | +CONFIG_G_DNL_MANUFACTURER="Rockchip" | |
55 | +CONFIG_G_DNL_VENDOR_NUM=0x2207 | |
56 | +CONFIG_G_DNL_PRODUCT_NUM=0x110a | |
36 | 57 | CONFIG_ERRNO_STR=y |
include/configs/rv1108_common.h
... | ... | @@ -28,5 +28,8 @@ |
28 | 28 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0x100000) |
29 | 29 | #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x2000000) |
30 | 30 | |
31 | +/* rockchip ohci host driver */ | |
32 | +#define CONFIG_USB_OHCI_NEW | |
33 | +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1 | |
31 | 34 | #endif |