Add functions for (de)activating consoles and for setting baudrate
Sascha Hauer
s.hauer at pengutronix.de
Mon Jun 8 23:21:03 PDT 2015
We have some console users like load[bxy] which fiddle with device
parameters to control console activation and baudrate settings. This
series introduces functions for doing this and makes use of them where
possible. The serial download stuff is untested as I have been unable
to get that to work with any of the three protocols and kermit or minicom
as terminal programs. If anyone has a hint how this works I'd be grateful.
Sascha
----------------------------------------------------------------
Sascha Hauer (12):
console: Add functions to get/set active state of console
console: Add functions to get/set baudrate
console: Add console_get_by_name
console: When switching baudrate print console name
usb: gadget: serial: Use console_set_active to activate console
loadxy: Use console_get_by_name
loadxy: use console_get_baudrate
loadx: ignore -c option
loadxy: use console_set_baudrate
loadb: use console_get_baudrate
loadb: Use console_set_baudrate
loadb: ignore -c option
commands/loadb.c | 39 ++++----------
commands/loadxy.c | 81 ++++++++++------------------
common/console.c | 123 ++++++++++++++++++++++++++++--------------
common/console_common.c | 13 +++++
drivers/usb/gadget/u_serial.c | 3 +-
include/console.h | 7 +++
6 files changed, 144 insertions(+), 122 deletions(-)
More information about the barebox
mailing list