u-boot/include
Mike Frysinger 7b826c2f35 serial: implement common uart post test
The current arch/driver specific UART posts basically boil down to setting
the UART to loop back mode, then reading and writing data.  If we ignore
the loop back part, the rest can be built upon the existing common serial
API.  So let's do just that.

First add a call back for serial drivers to implement loop back control.
Then write a post test that walks all of the serial drivers, puts them
into loop back mode, and verifies that reading/writing at all the diff
baud rates is OK.

If a serial driver doesn't support loop back mode (either it can't or
it hasn't done so yet), then skip it.  This should allow for people to
easily migrate to the new post test with existing serial drivers.

I haven't touched the few already existing uart post tests as I don't
the hardware or knowledge of converting them over.  So I've marked the
new test as weak which will allow the existing tests to override the
default until they are converted.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-26 16:39:03 +02:00
..
asm-generic x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
bedbug Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
configs Timer: Allow reset_timer() only for systems with low resolution timers 2011-07-26 14:52:53 +02:00
cramfs
faraday ftpmu010.h: fix some missing declaration in header 2011-05-12 23:44:33 +02:00
galileo
jffs2 fdt_support: add partitions fixup in mtd node 2010-03-21 22:44:59 +01:00
linux Create PHY Lib for U-Boot 2011-04-20 15:09:19 -05:00
lzma Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
mtd cfi_flash: Add optional config register write to cfi-detection 2010-12-17 09:56:05 +01:00
pcmcia
u-boot Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
usb Fix building for 83xx boards with USB support 2010-10-21 20:00:41 +02:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00
74xx_7xx.h
_exports.h lib, vsprintf: introduce strict_strtoul 2011-05-12 21:07:06 +02:00
ACEX1K.h
addr_map.h
ahci.h scsi/ahci: add support for non-PCI controllers 2011-07-26 00:06:58 +02:00
ali512x.h
altera.h
amba_clcd.h video: add amba-clcd prime-cell 2010-01-27 21:23:14 +01:00
ambapp.h
api_public.h
arm925t.h
armcoremodule.h
asm-offsets.h Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value 2010-10-26 21:05:30 +02:00
at45.h
at91rm9200_i2c.h
at91rm9200_net.h
ata.h
atmel_lcdc.h
bcd.h
bcm5221.h
bmp_layout.h
bus_vcxk.h
bzlib.h
circbuf.h
clps7111.h
command.h cmd_usage: constify 2011-07-26 16:34:41 +02:00
common.h env: allow people to force envcrc building 2011-07-26 16:33:49 +02:00
commproc.h CCM: remove code for yet another corpse 2010-10-06 22:22:26 +02:00
compiler.h include/compiler.h: remove uint typedef for __MACH__ 2010-10-06 23:09:42 +02:00
config_cmd_all.h ARM: drop unsupported 'trab' board 2011-06-22 20:00:51 +02:00
config_cmd_default.h
config_cmd_defaults.h crc32: make command optional 2011-04-13 15:56:43 -04:00
config_defaults.h disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
config_phylib_all_drivers.h phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
crc.h
da9030.h
dataflash.h ATMEL: fix dataflash (dirty) this file should be converted to struct SoC access 2011-05-18 07:56:51 +02:00
ddr_spd.h Adding more SPD registers 2011-07-11 13:24:20 -05:00
div64.h
dm9000.h
dm9161.h
dp83848.h
ds1722.h
ds4510.h
dtt.h
e500.h
elf.h
environment.h constify default env 2011-07-26 16:34:22 +02:00
errno.h Add basic errno support. 2010-09-19 19:29:47 +02:00
exports.h lib, vsprintf: introduce strict_strtoul 2011-05-12 21:07:06 +02:00
ext2fs.h ext2: constify file/dir names 2010-12-09 10:24:09 +01:00
fat.h VFAT: fix processing of scattered long file name entries 2010-10-12 22:39:14 +02:00
fdc.h
fdt.h
fdt_support.h fdt: introduce fdt_create_phandle() 2011-07-14 21:43:45 -04:00
fis.h
flash.h mtd, cfi: introduce void flash_protect_default(void) 2011-04-07 10:20:22 +02:00
fpga.h FPGA: add support for downloading Lattice bitstream 2010-10-13 18:09:31 +02:00
fsl_diu_fb.h powerpc: use 'video-mode' environment variable to configure DIU 2011-04-28 21:31:16 +02:00
fsl_esdhc.h fsl_esdhc: Deal with watermark level register related changes 2011-04-10 11:17:55 -05:00
fsl_mdio.h Minor coding style cleanup. 2011-05-19 22:22:44 +02:00
fsl_nfc.h Add MX25 support to nand_spl fsl nfc driver 2010-01-27 14:22:41 -06:00
fsl_pmic.h MX: Added Freescale Power Management Driver 2010-05-05 09:48:41 +02:00
gdsys_fpga.h ppc4xx: Enable MPC92469AC on DLVision 10G 2011-04-21 10:34:51 +02:00
hush.h common/hush: make get_local_var visible for other users 2011-05-10 23:19:07 +02:00
hwconfig.h powerpc/8xxx: Add hwconfig APIs to address early parsing used by DDR init 2011-01-19 22:58:23 -06:00
i2c.h i2c: add i2c deblock sequence before and after every mux config 2011-04-28 10:56:54 +02:00
i8042.h
ide.h IDE: fix compiler warnings 2011-04-30 23:29:55 +02:00
image.h Respect memreserve regions specified in the device tree 2011-04-25 21:11:21 -04:00
iomux.h stdio: constify "name" arg in public api 2010-12-09 10:24:09 +01:00
ioports.h
keyboard.h
kgdb.h Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
ks8721.h
lattice.h Coding Style cleanup 2010-10-27 22:48:30 +02:00
lcd.h atmel_lcd: Allow contrast polarity to be either positive or negative 2010-09-25 15:22:51 +02:00
lcdvideo.h
led-display.h led_display: remove unused DISPLAY_MARK define 2010-10-21 22:25:04 +02:00
lh7a40x.h
lh7a400.h
lh7a404.h
libata.h
libfdt.h libfdt: Implement property iteration functions 2011-07-14 21:10:34 -04:00
libfdt_env.h
linux_logo.h
lmb.h lmb: only force on arches that use it 2010-01-21 22:26:00 +01:00
logbuff.h
lpd7a400_cpld.h
lxt971a.h
lynxkdi.h
malloc.h
mb862xx.h
mc9sdz60.h Add basic support for Freescale's mc9sdz60 2011-02-02 00:54:43 +01:00
mc13892.h MC13892: Add SWx buck switchers definitions 2011-02-02 00:54:42 +01:00
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
mg_disk.h
mii_phy.h
miiphy.h Create PHY Lib for U-Boot 2011-04-20 15:09:19 -05:00
mk48t59.h
mmc.h mmc: Access mode validation for eMMC cards > 2 GiB 2011-07-15 20:29:21 -05:00
mpc5xx.h
mpc5xxx.h A4M072: Added support for the board. 2010-10-12 22:44:33 +02:00
mpc5xxx_sdma.h
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h MPC83xx: add define for global half-strength enable (HSE) 2011-07-06 19:09:27 -05:00
mpc85xx.h 83xx/85xx/86xx: LBC register cleanup 2010-07-16 10:55:09 -05:00
mpc86xx.h mpc86xx: set the DDR BATs after calculating true DDR size 2010-03-30 10:50:22 -05:00
mpc106.h
mpc824x.h
mpc8220.h
mpc8260.h
mpc8260_irq.h
mtd_node.h fdt_support: add partitions fixup in mtd node 2010-03-21 22:44:59 +01:00
mvmfp.h gpio: Add Multi-Function-Pin configuration driver for Marvell SoCs 2010-12-16 23:02:43 +01:00
mxc_gpio.h imx: Make imx25 compatible to mxc_gpio driver and fix in tx25 2011-07-14 15:41:24 +02:00
nand.h nand_util: drop trailing all-0xff pages if requested 2011-07-01 15:56:51 -05:00
net.h TFTP: add tftpsrv command 2011-05-19 21:38:32 +02:00
netdev.h Add support for MX35 processor 2011-02-02 00:54:42 +01:00
nios2-epcs.h
nios2-io.h
nios2-yanu.h nios2: Added support to YANU UART 2010-03-21 22:44:42 +01:00
nios2.h
nomadik.h include/nomadik.h: add physical address for cldc 2010-01-27 21:23:23 +01:00
ns7520_eth.h
ns9750_bbus.h
ns9750_eth.h
ns9750_mem.h
ns9750_ser.h
ns9750_sys.h
ns16550.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
ns87308.h
onenand_uboot.h
part.h disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
pc_keyb.h
pca953x.h
pca9564.h Prepare v2010.03-rc1 2010-03-12 23:06:04 +01:00
pci.h powerpc/85xx: Handle PCIe initialization requires for P1021 class SoCs 2011-03-29 07:41:37 -05:00
pci_ids.h Net: Add Intel E1000 82574L PCIe card support 2011-04-11 22:20:13 +02:00
pcmcia.h
phy.h phylib: Add a bunch of PHY drivers from tsec 2011-04-20 15:09:34 -05:00
post.h Revert "post, memory test: add memory_post_test() to include file" 2011-07-26 13:53:35 +02:00
ppc_asm.tmpl powerpc: fix wrong comment at GOT definitions 2010-06-29 23:03:40 +02:00
ppc_defs.h
ps2mult.h
pwm.h ARM: S5P: pwm driver support 2011-03-27 19:19:54 +02:00
radeon.h
reiserfs.h
rtc.h
s6e63d6.h
s_record.h
SA-1100.h
sata.h
scsi.h scsi/ahci: add support for non-PCI controllers 2011-07-26 00:06:58 +02:00
sdhci.h MMC: add sdhci generic framework 2011-07-15 20:29:18 -05:00
search.h common: add a grepenv command 2011-04-28 01:00:07 +02:00
sed156x.h
sed13806.h
serial.h serial: implement common uart post test 2011-07-26 16:39:03 +02:00
sha1.h
sha256.h
sja1000.h
sm501.h
smiLynxEM.h
spartan2.h
spartan3.h add Xilinx_abort_fn to Xilinx_Spartan3_Slave_Serial_fns 2010-12-09 10:24:10 +01:00
spd.h
spd_sdram.h
spi.h powerpc: eSPI and eSPI controller support 2011-04-29 07:34:09 -05:00
spi_flash.h sf: unify write funcs 2011-07-26 16:29:27 +02:00
status_led.h CCM: remove code for yet another corpse 2010-10-06 22:22:26 +02:00
stdio_dev.h ARM: drop unsupported 'trab' board 2011-06-22 20:00:51 +02:00
stratixII.h
sym53c8xx.h
systemace.h
timestamp.h
tsec.h tsec: Fix MDIO on devices with eTSEC2 2011-04-29 07:32:48 -05:00
tsi108.h
tsi148.h
twl4030.h ARMV7: OMAP: add convenience function to set TWL4030 regulator voltages 2010-09-08 14:50:23 -04:00
twl6030.h ARMV7: OMAP4: twl6030 add battery charging support 2010-12-11 10:56:01 -05:00
tws.h
ubi_uboot.h UBI: Fix problem in UBI/Linux "compatibility layer" 2010-05-19 10:57:24 +02:00
universe.h
usb.h Add USB host ethernet adapter support 2011-02-19 20:32:36 +01:00
usb_cdc_acm.h
usb_defs.h
usb_ether.h Add support for ASIX AX88772 USB 2.0 10/100Mbit Ethernet Adaptor 2011-02-19 20:32:36 +01:00
usbdescriptors.h
usbdevice.h
version.h
video.h
video_ad7176.h
video_ad7177.h
video_ad7179.h
video_easylogo.h
video_fb.h video: cleanup comments in cfb_console.c and video_fb.h 2010-07-17 00:05:14 +02:00
video_font.h
video_logo.h
virtex2.h
vsc7385.h
vxworks.h Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
w83c553f.h
watchdog.h nios: remove nios-32 arch 2010-05-28 10:56:04 -04:00
xilinx.h add block write function to spartan3 slave serial load 2010-03-24 11:08:43 -05:00
xyzModem.h