mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
sandbox: Add serial test
Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ad060c052b
commit
d7c09684d7
5 changed files with 75 additions and 0 deletions
|
@ -102,6 +102,11 @@ enum serial_stop {
|
|||
#define SERIAL_GET_STOP(config) \
|
||||
((config & SERIAL_STOP_MASK) >> SERIAL_STOP_SHIFT)
|
||||
|
||||
#define SERIAL_CONFIG(par, bits, stop) \
|
||||
(par << SERIAL_PAR_SHIFT | \
|
||||
bits << SERIAL_BITS_SHIFT | \
|
||||
stop << SERIAL_STOP_SHIFT)
|
||||
|
||||
#define SERIAL_DEFAULT_CONFIG SERIAL_PAR_NONE << SERIAL_PAR_SHIFT | \
|
||||
SERIAL_8_BITS << SERIAL_BITS_SHIFT | \
|
||||
SERIAL_ONE_STOP << SERIAL_STOP_SHIFT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue