summaryrefslogtreecommitdiff
path: root/drivers/serial
Commit message (Collapse)AuthorAgeLines
* arm: add uart dcc supportJean-Christophe PLAGNIOL-VILLARD2009-02-22-0/+227
| | | | | | | | | | Serial driver via the EmbeddedICE macrocell's DCC channel using co-processor 14. It does include a timeout to ensure that the system does not totally freeze when there is nothing connected to read. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)Mike Frysinger2009-02-21-11/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Create configuration option for restricted ns16550 functionsRon Madrid2009-02-19-0/+4
| | | | | | | | | | | This patch will create a configuration option for a minimum configuration for the ns16550 serial driver at drivers/serial/ns16550.c and will apply this new configuration option to the SIMPC8313.h config file in order to fix the NAND bootstrap build error. This option will exclude all functions with exception of NS16550_putc and NS16550_init. This will be used primarily to save space and remove unused code from builds in which space is limited. Signed-off-by: Ron Madrid <ron_madrid@sbcglobal.net>
* Added usbtty_configured() check. Fixed attribute(packed) warnings.Atin Malaviya2009-02-15-7/+11
| | | | | | | | | | | V3: Fixed line-wrap problem due to user error in mail! Added usb_configured() checks in usbtty_puts() and usbtty_putc() to get around a hang when usb is not connected and the user has set up multi-io (setenv stdout serial,usbtty etc). Got rid of redundant __attribute__((packed)) directives that were causing warnings from gcc. Signed-off-by: Atin Malaviya <atin.malaviya@gmail.com> Signed-off-by: Remy Bohmer <linux@bohmer.net>
* Coldfire: Applied baudrate formula of serial_init to serial_setbrgRichard Retanubun2009-02-06-2/+3
| | | | | | | Applied the patch for baudrate divider value truncation for serial_init to serial_setbrg as well. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
* ixp: move serial to drivers/serialJean-Christophe PLAGNIOL-VILLARD2009-01-31-0/+126
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* serial: Rename driver vcth to vct to support other board variantsStefan Roese2009-01-24-3/+7
| | | | | | | | | | | Moved driver vcth.c to vct.c to better reflect the VCT board series. This driver is now used by the VCT platforms: vct_premium vct_platinum vct_platinumsvc Signed-off-by: Stefan Roese <sr@denx.de>
* sh: serial: use readx/writex accessorsJean-Christophe PLAGNIOL-VILLARD2009-01-16-23/+23
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: serial: coding style cleanupJean-Christophe PLAGNIOL-VILLARD2009-01-16-17/+18
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: Update SuperH serial driverNobuhiro Iwamatsu2008-12-10-1/+1
| | | | | | | | The address of SCFSR register is wrong at SH7720/SH7721. This patch fix this. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* serial: Add vcth UART driverStefan Roese2008-12-10-0/+122
| | | | | | This patch adds the UART driver for the upcoming VCTH board support. Signed-off-by: Stefan Roese <sr@denx.de>
* usbtty/omap: update to current APIJean-Christophe PLAGNIOL-VILLARD2008-12-09-14/+23
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Remy Böhmer <linux@bohmer.net>
* rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD2008-10-18-28/+28
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* sh: Fix typo in SH serial driverNobuhiro Iwamatsu2008-09-19-1/+1
| | | | | Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Makefile: fix bug introduced by commit 47ffd6c2Wolfgang Denk2008-09-09-1/+1
|
* Makefile: compile and link each module just onceWolfgang Denk2008-09-09-1/+1
| | | | | | | | | | | | Several source files need to be compiled and linked when one or more config options are selected. To allow for easy selection in the Makefiles yet to avoild multiple compilation (which costs build time) and especially multiple linking (which causes errors), we use "COBJS = $(sort COBJS-y)" which eliminates duplicates. By courtesy of Detlev Zundel who suggested this approach. Signed-off-by: Wolfgang Denk <wd@denx.de>
* Moved conditional compile into MakefileAndreas Engel2008-09-09-11/+7
| | | | Signed-off-by: Andreas Engel <andreas.engel@ericsson.com>
* Merged serial_pl010.c and serial_pl011.c.Andreas Engel2008-09-09-178/+69
| | | | | | | They only differ in the init function. This also adds the missing watchdog support for the PL011. Signed-off-by: Andreas Engel <andreas.engel@ericsson.com>
* Merge branch 'master' of git://git.denx.de/u-boot-armWolfgang Denk2008-09-01-0/+173
|\
| * S3C64XX: remove broken HWFLOW support from the serial driverGuennadi Liakhovetski2008-08-31-21/+0
| | | | | | | | | | | | | | As noted by Harald Welte, HWFLOW support in the S3C64XX serial driver is broken and currently unused. Remove it. Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
| * serial: add S3C64XX serial driverGuennadi Liakhovetski2008-08-31-0/+194
| | | | | | | | | | | | Based on the original S3C64XX UART driver by Samsung for U-Boot 1.1.6. Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
* | sh: add support Renesas SH7723Nobuhiro Iwamatsu2008-08-31-12/+34
| | | | | | | | | | | | | | | | Renesas SH7723 has 5 SCIF, SD, Camera, LCDC and other. This patch supports CPU register's header file and SCIF serial driver. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* | sh: Add support Renesas SH7203 processorNobuhiro Iwamatsu2008-08-31-1/+2
|/ | | | | Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* drivers/misc: Move conditional compilation to MakefileJean-Christophe PLAGNIOL-VILLARD2008-08-13-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* serial: move CFG_NS9750_UART to CONFIG_NS9750_UARTJean-Christophe PLAGNIOL-VILLARD2008-08-13-5/+1
| | | | | | move also conditional compilation to Makefile Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* serial: move CFG_SCIF_CONSOLE to CONFIG_SCIF_CONSOLEJean-Christophe PLAGNIOL-VILLARD2008-08-13-5/+1
| | | | | | move also conditional compilation to Makefile Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/serial: Move conditional compilation to Makefile for CONFIG_* macrosJean-Christophe PLAGNIOL-VILLARD2008-08-03-29/+6
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* serial_xuartlite.c: fix compiler warningsRicardo Ribalda Delgado2008-07-20-5/+5
| | | | | Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es> Acked-by: Grant Likely <grant.likely@secretlab.ca>
* Round the serial port clock divisor value returned by calc_divisor()Hugo Villeneuve2008-07-15-9/+3
| | | | | | | | Round the serial port clock divisor value returned by calc_divisor() Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
* Fix printf() format issues with sizeof_t types by using %zuWolfgang Denk2008-07-14-2/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
* microblaze: Clean uartlite driverMichal Simek2008-07-13-16/+21
| | | | | | | | Redesign uartlite driver to in_be32 and out_be32 macros Fix missing header in io.h Signed-off-by: Michal Simek <monstr@monstr.eu> Acked-by: Grant Likely <grant.likely@secretlab.ca>
* Fix integer overflow warning in calc_divisor()Hugo Villeneuve2008-07-13-2/+9
| | | | | | which happened when rounding the serial port clock divisor Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
* ColdFire: Fix UART baudrate formulaTsiChung Liew2008-07-11-2/+2
| | | | | | | | | | The formula "counter = (u32) (gd->bus_clk / gd->baudrate) / 32" can generate the wrong divisor due to integer division truncation. Round the calculated divisor value by adding 1/2 the baudrate before dividing by the baudrate. Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
* Round the serial port clock divisor value returned by calc_divisor()Hugo Villeneuve2008-07-10-1/+6
| | | | | | | | Round the serial port clock divisor value returned by calc_divisor(). Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com> Signed-off-by: John Roberts <john.roberts@pwav.com>
* serial_pl010.c: add watchdog supportStuart Wood2008-06-29-2/+6
| | | | Signed-off-by: Stuart Wood <stuart.wood@labxtechnologies.com>
* sh: SH7763 SCIF supportNobuhiro Iwamatsu2008-06-09-55/+73
| | | | | | | | SH7763 has 3 SCIF channels. SCIF0 and 1 are same register constitution, but only SCIF2 is different. This patch work all SCIF channel. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Big white-space cleanup.Wolfgang Denk2008-05-21-38/+38
| | | | | | | | | | | This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: Wolfgang Denk <wd@denx.de>
* sh: Removed warning when compiling drivers/serial/serial_sh.c.Mark Jonas2008-03-28-5/+0
| | | | | Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: Add support SuperH SH7751/SH7751RNobuhiro Iwamatsu2008-03-28-0/+1
| | | | Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: Fix receive FIFO level register of SH4ANobuhiro Iwamatsu2008-03-28-22/+30
| | | | | | | Receive FIFO level register is different in SH4A. Because register is different, cannot occasionally receive data. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: Add support SH7780Yusuke Goda2008-03-28-6/+8
| | | | | | | | | | | | SH7780 is CPU of Renesas Technology. This CPU has - CPU clock 400MHz - PCI support - DDR-SDRAM controller - etc ... Signed-off-by: Yusuke Goda <goda.yusuke@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* OMAP5912: fix FIFO handling in UART driverWolfgang Denk2008-02-05-4/+12
| | | | | | | | | | | | According to the OMAP5912 Serial Interfaces Reference Guide (see http://focus.ti.com/lit/ug/spru760c/spru760c.pdf, page 150), the FIFO_EN enable bit in the FIFO Control Register (FCR) can only be changed when the baud clock is not running, i. e. when both DLL and DLH are set to 0. Thus make sure that DLL and DLH are 0 when writing the FCR. Signed-off-by: Wolfgang Denk <wd@denx.de>
* sh: Update SuperH SCIF driverNobuhiro Iwamatsu2008-01-17-18/+14
| | | | | | | This patch fixed wrong SH7720 CPU macro and changed macro that calculated value of SCBRR register. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: Add support SH7710/SH7712Nobuhiro Iwamatsu2008-01-15-16/+15
| | | | | | | | SH7710/SH7712 of SH3 CPU are supported. SH771X is called SH-Ether, and has the Ether controller in CPU. The driver of Ether is not included in this patch. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: Add support for SH7720 in serial_sh driver.Yoshihiro Shimoda2008-01-15-2/+25
| | | | | | Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Fix coding style issues; update CHANGELOG.Wolfgang Denk2007-12-27-4/+4
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* sh: Moved driver of the SuperH dependenceNobuhiro Iwamatsu2007-12-07-0/+178
| | | | | | | The composition of the directory in the drivers/ changed. I moved SuperH serial driver and marubun PCMCIA driver. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* drivers/serial : move serial drivers to drivers/serialJean-Christophe PLAGNIOL-VILLARD2007-11-25-2/+2823
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Move PL01* serial drivers to drivers/serial and adjust Makefiles.Peter Pearse2007-10-23-1/+470
|
* Fix some build errors.Wolfgang Denk2007-08-19-1/+3
| | | | Signed-off-by: Wolfgang Denk <wd@denx.de>