uboot/common
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
..
Makefile scaled down version of generic libraries for SPL 2011-07-26 14:44:25 +02:00
bedbug.c
cmd_ambapp.c
cmd_bdinfo.c armv7: rename cache related CONFIG flags 2011-07-04 10:55:25 +02:00
cmd_bedbug.c
cmd_bmp.c cmd_bmp.c: message about compressed formats is debug info only. 2011-02-09 21:32:20 +01:00
cmd_boot.c make `go` optional 2011-04-13 15:56:39 -04:00
cmd_bootldr.c Blackfin: bootldr: use common defines 2011-04-08 00:44:27 -04:00
cmd_bootm.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_cache.c command/cmd_cache.c: Add optional flush arguments 2011-07-26 14:30:08 +02:00
cmd_console.c
cmd_cplbinfo.c
cmd_cramfs.c cramfs: make cramfs usable without a NOR flash 2011-05-10 22:47:32 +02:00
cmd_dataflash_mmc_mux.c
cmd_date.c cmd_date: constify 2010-11-28 21:58:24 +01:00
cmd_dcr.c
cmd_df.c
cmd_diag.c
cmd_display.c led_display: split led display support into generic and hw-dependent parts 2010-10-12 22:44:33 +02:00
cmd_dtt.c
cmd_echo.c
cmd_eeprom.c
cmd_elf.c cmd_elf: add an option for loading ELFs according to PHDRs 2010-10-06 22:42:14 +02:00
cmd_exit.c
cmd_ext2.c
cmd_fat.c
cmd_fdc.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_fdos.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_fdt.c common/cmd_fdt.c: fix wrong data displayed in fdt print 2011-06-01 22:44:50 +02:00
cmd_flash.c Fix build warnings in cmd_flash.c 2011-02-19 20:32:38 +01:00
cmd_fpga.c cmd_fpga: cleanup help and check parameters 2010-10-19 23:52:45 +02:00
cmd_gpio.c gpio: check request result 2011-04-13 15:57:00 -04:00
cmd_help.c
cmd_i2c.c i2c: add i2c deblock sequence before and after every mux config 2011-04-28 10:56:54 +02:00
cmd_ide.c disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
cmd_immap.c
cmd_irq.c
cmd_itest.c itest: fix result of string compares 2011-02-15 21:45:55 +01:00
cmd_jffs2.c cmd_jffs2: Fix get_part_sector_size_nor() overflow bug 2011-01-19 00:04:43 +01:00
cmd_ldrinfo.c Blackfin: ldrinfo: new command 2011-04-08 00:44:27 -04:00
cmd_led.c Minor coding style cleanup. 2011-05-19 22:22:44 +02:00
cmd_license.c
cmd_load.c
cmd_log.c
cmd_mac.c
cmd_md5sum.c Fix: watchdog timed out, if using md5 command 2011-07-26 14:36:07 +02:00
cmd_mdio.c common/cmd_mdio.c: fix compile warning 2011-04-30 23:09:48 +02:00
cmd_mem.c Fix: if using crc32 command watchdog timed out 2011-07-26 00:40:50 +02:00
cmd_mfsl.c
cmd_mgdisk.c
cmd_mii.c miiphy: convert to linux/mii.h 2011-01-09 18:06:50 +01:00
cmd_misc.c
cmd_mmc.c mmc: rescan fails on empty slot 2011-07-15 20:29:22 -05:00
cmd_mmc_spi.c mmc_spi: add mmc_init call 2011-04-29 03:20:01 -05:00
cmd_mp.c
cmd_mtdparts.c Followup fixes on the mtdparts spread patchset 2010-10-11 15:11:01 -05:00
cmd_nand.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_net.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_nvedit.c cmd_nvedit.c: make error message more helpful 2011-05-12 19:47:14 +02:00
cmd_onenand.c onenand: add yaffs write command 2010-12-17 14:32:12 -06:00
cmd_otp.c
cmd_pci.c pci: Clean up PCI info when CONFIG_PCI_SCAN_SHOW 2010-11-14 23:46:46 +01:00
cmd_pcmcia.c
cmd_portio.c
cmd_reginfo.c
cmd_reiser.c
cmd_sata.c disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
cmd_scsi.c disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
cmd_setexpr.c
cmd_sf.c cmd_sf: use cmd_usage() in more places 2011-04-12 02:30:25 -04:00
cmd_sha1sum.c Fix: watchdog timed out, if using sha1 command 2011-07-26 14:33:10 +02:00
cmd_source.c
cmd_spi.c sspi: add options to specify bus and mode 2010-10-06 20:50:38 -04:00
cmd_spibootldr.c
cmd_strings.c
cmd_terminal.c
cmd_test.c
cmd_tsi148.c TSI148: Fix argument parsing 2010-10-12 23:31:10 +02:00
cmd_ubi.c UBI: Fix error code handling in ubi commands 2011-03-21 10:02:16 +01:00
cmd_ubifs.c UBI/UBIFS: Automatically unmount UBIFS volume upon UBI partition change 2010-12-03 18:24:04 +01:00
cmd_universe.c
cmd_unzip.c md5sum/sha1sum/unzip: split out of mondo mem file 2011-04-13 15:56:47 -04:00
cmd_usb.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_version.c Print compiler and linker version with the version command 2011-02-02 21:56:39 +01:00
cmd_ximg.c common/cmd_ximg.c: add ifdef protection for gzip uncompression 2011-07-26 14:11:21 +02:00
cmd_yaffs2.c
command.c cmd_usage: constify 2011-07-26 16:34:41 +02:00
console.c stdio: constify "name" arg in public api 2010-11-28 21:58:48 +01:00
ddr_spd.c mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements 2011-04-04 09:24:43 -05:00
dlmalloc.c malloc: Fix issue with calloc memory possibly being non-zero 2010-11-17 22:06:40 +01:00
dlmalloc.src
env_common.c constify default env 2011-07-26 16:34:22 +02:00
env_dataflash.c hashtable: drop all non-reentrant versions 2010-12-17 21:07:14 +01:00
env_eeprom.c hashtable: drop all non-reentrant versions 2010-12-17 21:07:14 +01:00
env_embedded.c env: allow people to force envcrc building 2011-07-26 16:33:49 +02:00
env_flash.c constify default env 2011-07-26 16:34:22 +02:00
env_mgdisk.c
env_mmc.c env_mmc: Allow board code to override the environment address 2011-04-04 22:26:16 -05:00
env_nand.c env_nand: zero-initialize variable nand_erase_options 2011-05-24 16:08:44 -05:00
env_nowhere.c
env_nvram.c hashtable: drop all non-reentrant versions 2010-12-17 21:07:14 +01:00
env_onenand.c hashtable: drop all non-reentrant versions 2010-12-17 21:07:14 +01:00
env_sf.c fix redundant environment for serial flash 2011-04-28 00:46:01 +02:00
exports.c x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
fdt_support.c fdt: introduce fdt_create_phandle() 2011-07-14 21:43:45 -04:00
flash.c
hush.c common/hush: make get_local_var visible for other users 2011-05-10 23:19:07 +02:00
hwconfig.c Minor Coding Style Cleanup. 2011-02-02 22:36:10 +01:00
image.c Fix typo from 'mb_alloc' -> 'lmb_alloc' 2011-07-19 10:38:33 +02:00
iomux.c
kallsyms.c
kgdb.c
kgdb_stubs.c
lcd.c lcd: align fb writing address for horizontal display offset 2011-01-27 00:20:59 +01:00
lynxkdi.c
main.c cosmetic, main: correct indentation/spacing issues 2011-07-25 23:28:05 +02:00
memsize.c Remove volatile qualifier in get_ram_size() calls 2011-07-17 17:11:53 +02:00
miiphyutil.c miiphy: use strncpy() not sprintf() 2011-07-26 14:00:24 +02:00
modem.c
s_record.c
serial.c serial: implement common uart post test 2011-07-26 16:39:03 +02:00
stdio.c stdio: constify "name" arg in public api 2010-11-28 21:58:48 +01:00
system_map.c
update.c
usb.c Add USB host ethernet adapter support 2011-02-19 20:32:36 +01:00
usb_kbd.c
usb_storage.c disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
xyzModem.c