[U-Boot] [PATCH] arm: rmobile: kzm9g: Fix CONFIG_BAUDRATE setting

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Tue Jul 24 03:37:56 CEST 2012


Hi,

Applied to rmobile branch.

Best regards,
  Nobuhiro

2012/7/20 Tetsuyuki Kobayshi <koba at kmckk.co.jp>:
> From: Tetsuyuki Kobayashi <koba at kmckk.co.jp>
>
> The value of CONFIG_BAUDRATE is treated as string and put as initial value of environment variable. If it begin with '(', it is wrongly parsed to 0 in number. So I removed '(' and ')'.
>
> Signed-off-by: Tetsuyuki Kobayashi <koba at kmckk.co.jp>
> ---
> Hi, Iwamatsu-san
>
> This is a kind of regression. The initial value of environment variable of barud rate is wrong. When you flash U-Boot to a new board, serial console doesn't work because board rate is set to 0. If you save environment variables in old version U-Boot, you don't aware this problem.
>
>
>  include/configs/kzm9g.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h
> index bd157d9..14f088f 100644
> --- a/include/configs/kzm9g.h
> +++ b/include/configs/kzm9g.h
> @@ -46,7 +46,7 @@
>  #define CONFIG_CMD_FAT
>  #define CONFIG_CMD_BOOTZ
>
> -#define CONFIG_BAUDRATE                (115200)
> +#define CONFIG_BAUDRATE                115200
>  #define CONFIG_BOOTARGS                "root=/dev/null console=ttySC4,115200"
>  #define CONFIG_INTEGRATOR
>  #define CONFIG_ARCH_CINTEGRATOR
> --
> 1.7.9.5
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6


More information about the U-Boot mailing list