]> git.sur5r.net Git - u-boot/blobdiff - include/serial.h
fit: Verify all configuration signatures
[u-boot] / include / serial.h
index 384df94ed0b3ef1496ed0e8a6c04a7685424fdf8..b9ef6d91c9c54714e595392861f2432f7698f1cb 100644 (file)
@@ -67,6 +67,12 @@ extern int usbtty_tstc(void);
 
 struct udevice;
 
+enum serial_par {
+       SERIAL_PAR_NONE,
+       SERIAL_PAR_ODD,
+       SERIAL_PAR_EVEN
+};
+
 /**
  * struct struct dm_serial_ops - Driver model serial operations
  *
@@ -143,6 +149,16 @@ struct dm_serial_ops {
         */
        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);
 };
 
 /**