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

From: Tetsuyuki Kobayashi koba@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@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

Hi,
Applied to rmobile branch.
Best regards, Nobuhiro
2012/7/20 Tetsuyuki Kobayshi koba@kmckk.co.jp:
From: Tetsuyuki Kobayashi koba@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@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@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (2)
-
Nobuhiro Iwamatsu
-
Tetsuyuki Kobayshi