summaryrefslogtreecommitdiffstats
path: root/drivers/serial/linux_console.c
Commit message (Collapse)AuthorAgeFilesLines
* sandbox: fix registering multiple consolesAleksander Morgado2017-06-011-0/+3
| | | | | | | | | | | | | | | | | | Consoles need to be registered with the "console" device name so that they are probed by the correct driver. The barebox_register_console() was already forcing this as it was overwriting the name that was being passed as argument, but it was failing to provide a unique id for each new console, so the underlying register_device() would just return an error when wanting to re-register a device with device name "console" and id 0. We remove the unused name parameter from barebox_register_console() as it is really nowhere used, and also specify DEVICE_ID_DYNAMIC as id, so that a new unique device id is given to each newly registered console device. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: drop f_caps and check the function pointer getc/putc insteadJean-Christophe PLAGNIOL-VILLARD2013-09-211-4/+6
| | | | | | | | | | None of the driver make the difference between STDOUT and STDERR. So we just need to check if putc or getc are filled in the console_device save 32 bytes on versatilepb Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce console_platform_driver() macro and use it for serial driversAlexander Shiyan2013-03-141-8/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+1
| | | | | | | | platform_driver/device_register now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-3/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial drivers: remove unused type_dataSascha Hauer2012-02-251-1/+0
| | | | | | | Several serial drivers set the type_data field without ever using it, so just remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/machJean-Christophe PLAGNIOL-VILLARD2009-10-221-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Get rid of DEVICE_TYPE_CONSOLE usageSascha Hauer2009-07-211-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [sandbox] added ^\q to exit ubootMarc Kleine-Budde2007-11-291-0/+5
| | | | | | | This patch adds the possibility to exit u-boot in sandbox mode by pressing ^\q. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* svn_rev_706Sascha Hauer2007-07-051-0/+22
| | | | add file headers
* svn_rev_697Sascha Hauer2007-07-051-1/+2
| | | | use xzalloc
* svn_rev_502Sascha Hauer2007-07-051-23/+18
| | | | complete multiple console support
* svn_rev_501Sascha Hauer2007-07-051-0/+70
move linux_console driver to drivers/serial