Dear Mike Frysinger, In message <1305392175-31018-1-git-send-email-vap...@gentoo.org> you wrote: > 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 <vap...@gentoo.org> > --- > common/serial.c | 90 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > include/serial.h | 5 +++ > 2 files changed, 95 insertions(+), 0 deletions(-)
Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "The majority of the stupid is invincible and guaranteed for all time. The terror of their tyranny, however, is alleviated by their lack of consistency." - Albert Einstein _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot