Fix default baudrate setting
PATCH 1/1 Fix default baudrate setting
commit 604c99039f873952e252a5933309fc8e59b603db
Author: Juergen Beisert <[email protected]> Date: Sat Sep 25 19:18:25 2010 +0200
Fix default baudrate setting
The menu entry to set the default baudrate (CONFIG_BAUDRATE) makes no sense, as long as its content is not used. This patch makes barebox using the setting again.
common/console.c +4 -1
@@ -140,9 +140,12 @@ int console_register(struct console_device *newcdev) dev->type_data = newcdev;register_device (dev); +#define xstr (s) str(s) +#define str (s) #s +if (newcdev->setbrg) {dev_add_param (dev,"baudrate" , console_baudrate_set,NULL ,0 ); -dev_set_param (dev,"baudrate" ,"115200" ); +dev_set_param (dev,"baudrate" ,xstr (CONFIG_BAUDRATE )); }dev_add_param (dev,"active" , console_std_set,NULL ,0 );
Signature · 9 lines
Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-8766-939 228 | Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 17 lines · Juergen Beisert
commit
604c99039f873952e252a5933309fc8e59b603dbAuthor: Juergen Beisert <[email protected]> Date: Sat Sep 25 19:18:25 2010 +0200Fix default baudrate setting
The menu entry to set the default baudrate (
CONFIG_BAUDRATE) makes no sense, as long as its content is not used. This patch makes barebox using the setting again.Signed-off-by Juergen Beisert <[email protected]>common/console.c +0
-0
common/console.c int console_register(struct console_device *newcdev) · line 144
Quoted 5 lines
common/console.c +2
-0@@ -140,9 +140,12 @@ int console_register(struct console_device *newcdev) dev->type_data = newcdev;register_device (dev); +#define xstr (s) str(s) +#define str (s) #s
can we put those macros in a more generic place?
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 21 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 20 lines · Juergen Beisert
commit
604c99039f873952e252a5933309fc8e59b603dbAuthor: Juergen Beisert <[email protected]> Date: Sat Sep 25 19:18:25 2010 +0200Fix default baudrate setting
The menu entry to set the default baudrate (
CONFIG_BAUDRATE) makes no sense, as long as its content is not used. This patch makes barebox using the setting again.Signed-off-by Juergen Beisert <[email protected]>common/console.c +0
-0@@ -140,9 +140,12 @@ int console_register(struct console_device *newcdev) dev->type_data = newcdev;register_device (dev);
Quoted 3 lines
common/console.c int console_register(struct console_device *newcdev) · line 144
Quoted 2 lines
common/console.c +2
-0+#define xstr (s) str(s) +#define str (s) #scan we put those macros in a more generic place?
The kernel calls this stringify, see [1]
g'night,
Marc
[1] http://lxr.linux.no/linux+v2.6.35.5/include/linux/stringify.h
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 22 lines · Marc Kleine-Budde
Quoted 21 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 20 lines · Juergen Beisert
commit
604c99039f873952e252a5933309fc8e59b603dbAuthor: Juergen Beisert <[email protected]> Date: Sat Sep 25 19:18:25 2010 +0200Fix default baudrate setting
The menu entry to set the default baudrate (
CONFIG_BAUDRATE) makes no sense, as long as its content is not used. This patch makes barebox using the setting again.Signed-off-by Juergen Beisert <[email protected]>common/console.c +0
-0@@ -140,9 +140,12 @@ int console_register(struct console_device *newcdev) dev->type_data = newcdev;register_device (dev);
Quoted 5 lines
Quoted 3 lines
common/console.c int console_register(struct console_device *newcdev) · line 144
Quoted 2 lines
common/console.c +2
-0+#define xstr (s) str(s) +#define str (s) #scan we put those macros in a more generic place?
The kernel calls this stringify, see [1]
Ok, then we should add include/linux/stringify.h, remove the duplicate in include/command.h and use stringify in this patch.
Sascha
Quoted 4 lines
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox