#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
*/
int (*loop)(struct udevice *dev, int on);
#endif
- /**
- * setparity() - Set up the parity
- *
- * Set up a new parity for this device.
- *
- * @dev: Device pointer
- * @parity: parity to use
- * @return 0 if OK, -ve on error
- */
- int (*setparity)(struct udevice *dev, enum serial_par parity);
/**
* setconfig() - Set up the uart configuration