summaryrefslogtreecommitdiffstats
path: root/drivers/serial
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'for-next/ioresource'Sascha Hauer2014-05-051-16/+107
|\
| * x86: ns16550: Rework driver to allow for x86 I/O spaceMichel Stam2014-04-091-16/+107
| | | | | | | | | | | | | | | | | | | | | | | | The current implementation fakes a memory-mapped I/O device at 0x3f8 and 0x2f8, then uses platform read/write functions to do the actual reading and writing. These platform functions only exist for the x86 platform; better to move the I/O routines into the driver and have the driver request I/O ports using request_ioport_region. Signed-off-by: Michel Stam <michel@reverze.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | serial: ns16550: omap: set register shift from codeSascha Hauer2014-04-281-0/+4
|/ | | | | | | | The upstream dts files do not contain the register shift. As we have Omap specific init code anyway we can just set the register shift from there instead of relying on the devicetree properties. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial: add Atheros AR933x driverAntony Pavlov2014-03-284-0/+281
| | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial: ns16550: add compatible entry for "ingenic,jz4740-uart"Antony Pavlov2014-03-261-0/+20
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial: ns16550: add compatible entry for "ns16450"Antony Pavlov2014-03-261-0/+16
| | | | | | | "ns16450" uses the same code as "ns16550a" but with FIFO disabled. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial: ns16550: make FCR setup value part of struct ns16550_privAntony Pavlov2014-03-261-6/+7
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial: ns16550: fix whitespacesAntony Pavlov2014-03-261-1/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2014-02-032-0/+4
|\
| * console: Set Linux console parameter automaticallySascha Hauer2014-01-222-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux specifies the linux,stdout-path property in the /chosen node in the devicetree. Unfortunately this is ignored in most cases. For cases in which barebox uses this property for its own use we translate this into a Linux boot arg with: - the console name provided by the serial driver - the the instance from the 'serial' alias - the baudrate from the actual baudrate. So with this it's for devicetee enabled boards no longer necessary to manually assign a console= parameter. Should a user not want to use the automatically assigned parameter it should do: global.linux.bootargs.console= in the environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | serial: clps711x: Update driverAlexander Shiyan2014-01-241-36/+82
| | | | | | | | | | | | | | | | | | This patch updates the CLPS711X UART driver. The update adds support for use with devicetree and makes driver comatible with current driver from kernel. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: clps711x: Remove the special name for the syscon driverAlexander Shiyan2014-01-241-2/+2
|/ | | | | | | No reason to make SYSCON driver name unique to that processor. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap-drivers'Sascha Hauer2013-12-062-12/+54
|\
| * serial: ns16550: Add device ids for omapSascha Hauer2013-11-222-12/+54
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | treewide: Add missing includesSascha Hauer2013-11-081-0/+1
|/ | | | | | | | A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/socfpga'Sascha Hauer2013-10-071-0/+2
|\ | | | | | | | | Conflicts: scripts/Makefile
| * serial: ns16550: Add compatible entry for snps,dw-apb-uartSascha Hauer2013-09-231-0/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/rs485'Sascha Hauer2013-10-071-0/+27
|\ \ | | | | | | | | | | | | Conflicts: common/console_common.c
| * | atmel_serial: add rs485 supportJean-Christophe PLAGNIOL-VILLARD2013-09-241-0/+27
| |/ | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | serial: do not set default baudrate at initJean-Christophe PLAGNIOL-VILLARD2013-09-226-13/+0
| | | | | | | | | | | | | | this will be done at activation Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 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-2119-22/+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>
* serial_auart: fix compile errorEric Bénard2013-09-101-1/+1
| | | | | | | | | | | | | this fix : drivers/serial/serial_auart.c:49:22: fatal error: mach/mxs.h: No such file or directory and drivers/serial/serial_auart.c: In function 'auart_serial_init_port': drivers/serial/serial_auart.c:174:2: warning: implicit declaration of function 'stmp_reset_block' [-Wimplicit-function-declaration] only compile tested ATM Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/serial'Sascha Hauer2013-08-051-39/+100
|\
| * serial: ns16550: fill cdev just-in-timeAntony Pavlov2013-07-241-2/+1
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial: ns16550: get clock-frequency from dtAntony Pavlov2013-07-241-0/+6
| | | | | | | | | | | | | | | | | | This patch helps clk-less boards to use device tree for clock frequency probing (taken from linux.git/drivers/tty/serial/of_serial.c). Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial: ns16550: Add devicetree probe supportSascha Hauer2013-07-231-1/+24
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial: ns16550: Add clk support and make platform_data optionalSascha Hauer2013-07-231-3/+23
| | | | | | | | | | | | | | | | The clockrate was the only really needed field from platform data. Add clk support to retrieve the clockrate and make platform data optional. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial: ns16550: remove f_caps from platform_dataSascha Hauer2013-07-231-4/+1
| | | | | | | | | | | | | | So far no user had the need to set the flags, so just remove them from platform data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial: ns16550: introduce private structSascha Hauer2013-07-231-9/+28
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial: ns16550: reorder functions to avoid forward declarationSascha Hauer2013-07-231-31/+28
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: MXS: introduce stmp device supportSascha Hauer2013-07-231-1/+1
|/ | | | | | | | | | | | MXS specific devices have some common infrastructure in the kernel known as STMP devices. We have the same in barebox, but with a mxs_ prefix instead of a stmp_ prefix. As some STMP devices are also found on i.MX6 move the common infrastructure out of MXS specific files and use the stmp_ prefix. This is done in preparation for i.MX6 NAND support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial: stm: Use clk supportSascha Hauer2013-06-201-1/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial: auart: Use clk supportSascha Hauer2013-06-201-1/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/zynq'Sascha Hauer2013-04-043-0/+313
|\ | | | | | | | | Conflicts: arch/arm/Makefile
| * serial: Add driver for Cadence UARTSteffen Trumtrar2013-03-273-0/+313
| | | | | | | | | | | | | | Support for Cadence UART core. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/device-driver-macros'Sascha Hauer2013-04-0417-133/+18
|\ \
| * | Introduce console_platform_driver() macro and use it for serial driversAlexander Shiyan2013-03-1417-133/+18
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/clps711x'Sascha Hauer2013-04-041-12/+19
|\ \ \ | |_|/ |/| |
| * | serial: clps711x: Migrate to using SYSCON driverAlexander Shiyan2013-03-111-12/+19
| |/ | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | driver/serial: stm-serial: fix flushMarc Kleine-Budde2013-03-151-1/+2
| | | | | | | | | | | | | | Wait until fifo is empty, not until fifo is not full. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | driver/serial: auart: fix flushMarc Kleine-Budde2013-03-151-1/+1
|/ | | | | | | Actually wait until fifo is empty. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mxs'Sascha Hauer2013-03-043-1/+244
|\
| * driver/serial: add driver for the mxs application uartMarc Kleine-Budde2013-03-033-0/+243
| | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * driver/serial: Kconfig: explicitly state that existing mxs driver is for the ↵Marc Kleine-Budde2013-03-031-1/+1
| | | | | | | | | | | | | | debug uart Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-03-041-6/+0
|\ \
| * | serial/Makefile: drop out of date commentsJean-Christophe PLAGNIOL-VILLARD2013-02-261-6/+0
| |/ | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / amba: pl011: set RTS during initializationRob Herring2013-02-181-1/+1
|/ | | | | | | | | | | | RTS is an output. Either flow control is used and you care about the state or it is not used and you don't care. So setting it to active does no harm in either case. This is inline with what Linux does. Mandatory for Highbank as example Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce console none supportJean-Christophe PLAGNIOL-VILLARD2013-01-231-0/+1
| | | | | | | | | | | | this will allow to have no console support Use full for bootstrap as we can save 6.5 KiB (barebox.bin) and 3.8 KiB (zbarebox.bin lzo) on at91sam9263 as example vs console simple As on bootstrap we have often very limited size. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup Kconfig filesAlexander Shiyan2012-12-081-2/+2
| | | | | | | | | This patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format, removing extraneous lines and spaces. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial i.MX: Make locally used variables staticSascha Hauer2012-11-271-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>