u-boot: charging patch
Timo Juhani Lindfors
timo.lindfors at iki.fi
Sun Jan 11 11:58:28 CET 2009
philipp at hug.cx writes:
> diff --git a/board/neo1973/gta02/gta02.c b/board/neo1973/gta02/gta02.c
> index a59a513..4255caa 100644
> --- a/board/neo1973/gta02/gta02.c
> +++ b/board/neo1973/gta02/gta02.c
> @@ -322,6 +322,11 @@ static void set_revision(void)
>
> static void poll_charger(void)
> {
> + /* charge with at least 100 mA otherwise dumb chargers won't work*/
> + if (udc_usb_maxcurrent < 100) {
> + udc_usb_maxcurrent = 100;
> + }
> +
Disclamer: I am not an u-boot developer :-)
Shouldn't this be configurable? We already have a command for enabling
500mA charging so why not add a command to enable 100mA charging too?
"neo1973 charger fast - enable fast (500mA) charging\n"
More information about the devel
mailing list