[U-Boot] [PATCH 2/5] usb: dwc2: Use shared wait_for_bit
Marek Vasut
marex at denx.de
Tue Dec 15 01:21:21 CET 2015
On Tuesday, December 15, 2015 at 01:09:24 AM, Mateusz Kulikowski wrote:
> Use existing library function to poll bit(s).
> Update configs using dwc2.
>
> Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski at gmail.com>
> ---
[...]
> diff --git a/include/configs/hikey.h b/include/configs/hikey.h
> index 796861e..4e3bfec 100644
> --- a/include/configs/hikey.h
> +++ b/include/configs/hikey.h
> @@ -66,6 +66,7 @@
>
> #define CONFIG_CMD_USB
> #ifdef CONFIG_CMD_USB
> +#define CONFIG_LIB_WAIT_BIT
Just enable this stuff by default (ie. dont introduce new config option,
just use obj-y in lib/Makefile). The compiler will throw the function away
if it's not used.
> #define CONFIG_USB_DWC2
> #define CONFIG_USB_DWC2_REG_ADDR 0xF72C0000
> /*#define CONFIG_DWC2_DFLT_SPEED_FULL*/
[...]
Best regards,
Marek Vasut
More information about the U-Boot
mailing list