summaryrefslogtreecommitdiffstats
path: root/drivers/serial
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* omap4: add serial communications over usb bootVicente2012-11-163-0/+91
| | | | | Signed-off-by: Vicente <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2012-11-161-44/+55
|\ | | | | | | | | | | | | Conflicts: arch/arm/boards/guf-neso/lowlevel.c arch/arm/boards/pcm038/lowlevel.c commands/Makefile
| * ARM i.MX: get rid of imx-regs.hSascha Hauer2012-10-171-1/+0
| | | | | | | | | | | | | | | | | | - remove now unused __REG definitions - include individual SoC register files instead of imx-regs.h - move IMX_GPIO_NR to generic.h - finally remove imx-regs.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial i.MX: Use devtype data to determine uart versionSascha Hauer2012-10-051-43/+55
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: clps711x: Add serial driverAlexander Shiyan2012-11-023-0/+163
|/ | | | | | | This patch adds a simple serial driver for CLPS711X architecture. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx-clk'Sascha Hauer2012-10-041-6/+20
|\
| * ARM i.MX: Remove old clock supportSascha Hauer2012-10-041-1/+0
| | | | | | | | | | | | | | The old clock support is now unused. Remove it. The former i.MX clko command is superseeded by generic clock manipulation commands. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial i.MX: Switch to clk supportSascha Hauer2012-10-041-5/+20
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-0414-16/+16
|/ | | | | | | | 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>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-0315-54/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-1715-54/+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>
* | Merge branch 'for-next/amba'Sascha Hauer2012-10-031-12/+62
|\ \
| * | amba-pl011: add st specific initJean-Christophe PLAGNIOL-VILLARD2012-09-111-2/+38
| | | | | | | | | | | | | | | | | | This is need on the new IP for ux500 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | amba-pl011: switch to amba busJean-Christophe PLAGNIOL-VILLARD2012-09-111-10/+24
| |/ | | | | | | | | | | switch as the same time the nomadik and versatile arch that use the driver. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* / serial i.MX: oftree supportSascha Hauer2012-09-171-2/+15
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial Samsung: add the S3C64xx requirementsJuergen Beisert2012-08-012-1/+4
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/samsung'Sascha Hauer2012-08-012-33/+42
|\ | | | | | | | | | | | | Conflicts: arch/arm/Makefile arch/arm/mach-samsung/Makefile arch/arm/mach-samsung/include/mach/s5pcxx-iomap.h
| * Samsung/serial: make the clock source configureableJuergen Beisert2012-07-251-6/+12
| | | | | | | | | | | | | | | | | | Instead of taking the value from somewhere, use the selected architecture to select one. This ensures the selected clock source corresponds to the values setup in the clocks-*.c from the mach directory. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Samsung/serial: unify UCON register settingsJuergen Beisert2012-07-251-3/+7
| | | | | | | | | | | | | | | | | | This should work on S3C24XX and S3C64XX SoCs. Tested at runtime on a Mini2440 and Mini6410. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Samsung/serial: move the decision about an improved UART into KconfigJuergen Beisert2012-07-252-8/+12
| | | | | | | | | | | | | | More or less just cosmetic (removing ifdefs!). Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Samsung/serial: there is no need to ifdef the slot tableJuergen Beisert2012-07-251-2/+0
| | | | | | | | | | | | | | | | | | The '__maybe_unused' attribute prevents the compiler from warning about an unused variable and the 'static' will remove it entirely if it's not used. This patch is only cosmetic. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Samsung/serial: there is no need to ifdef these register definesJuergen Beisert2012-07-251-6/+2
| | | | | | | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Samsung/serial: make the code more readableJuergen Beisert2012-07-251-3/+5
| | | | | | | | | | | | | | This bit magic is just setting and reading the UART's selected clock source. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Samsung/serial: remove more ugly ifdef linesJuergen Beisert2012-07-251-5/+4
| | | | | | | | | | | | | | | | More or less just cosmetic. Easier to read, and lets the compiler remove unused code. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | serial_ns16550: change the driver's nameAntony Pavlov2012-07-201-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | The name "serial_ns16550" is not handy because the devices will have the names like "serial_ns165500", "serial_ns165501", "serial_ns165502" etc. The names like "ns16550_serial0" and "ns16550_serial1" look much better. Also it is reasonable to make serial driver's names unification. E.g. see the names for drivers in drivers/serial directory: "netx_serial", "mpc5xxx_serial", "altera_serial", "s3c_serial", "imx_serial", "pxa_serial", "blackfin_serial", "stm_serial", "pl010_serial", and even "g_serial" in ./drivers/usb/gadget/serial.c Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Support most Samsung SoCs in S3C serial driverAlexey Galakhov2012-05-142-18/+39
| | | | | | | | | | | | | | | | Ok, I assume this should go into separate series. It fits both S5PV210 and S3C6410. This adds support for S3C and S5P architectures (all of my knowledge) to the serial driver. Since the only difference between them is in clock handling, this is moved to an arch-dependent separate function. Most modern architectures should define S3C_UART_HAS_UBRDIVSLOT and S3C_UART_HAS_UINTM. This adds support for most Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Juergen Beisewrt <kernel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* netX: UART may not initialize correctly.Michael Trensch2012-04-301-6/+5
| | | | | | | | | | | The netX internal UART latches register settings and internally uses them only if written in the correct order. Other orders may work, but sometimes the UART gets stuck, as the baudrate has not correctly been set. Signed-off-by: Michael Trensch <MTrensch@gmail.com> Acked-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/mx6-v2' into nextSascha Hauer2012-04-241-1/+1
|\ | | | | | | | | | | | | | | Conflicts: arch/arm/Makefile arch/arm/mach-imx/Kconfig Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial i.MX: i.MX6 supportSascha Hauer2012-04-241-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Use DEVICE_ID_DYNAMIC where applicableSascha Hauer2012-04-161-1/+1
|/ | | | | | | We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids, Use it where applicable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial S3: fix local structure mallocJuergen Beisert2012-03-131-1/+1
| | | | | | | | | Patch 2c5404651091e985c9009aa417d80fdaf50d7a68 introduces a private structure for the S3C based UARTs but still reserves the memory for the smaller structure which fails at runtime. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/serial: trivial regression fixRobert Jarzmik2012-02-291-1/+1
| | | | | | | | Fix commit "serial pxa: fix unregister", which forgot a semicolon, breaking serial_pxa compilation. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial s3c: add a driver private structSascha Hauer2012-02-251-19/+28
| | | | | | | Do not use dev->priv as a register base, but use a driver private struct instead. Also, remove usage of dev->type_data Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>