mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02: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:
committed by
Tom Rini
parent
ad060c052b
commit
d7c09684d7
@@ -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
|
||||
|
Reference in New Issue
Block a user