|
@@ -139,6 +139,7 @@ enum adr_space_type {
|
|
|
* @reg_width: size (in bytes) of the IO accesses to the registers
|
|
|
* @reg_offset: offset to apply to the @addr from the start of the registers
|
|
|
* @reg_shift: quantity to shift the register offsets by
|
|
|
+ * @clock: UART base clock speed in Hz
|
|
|
* @baudrate: baud rate
|
|
|
*/
|
|
|
struct serial_device_info {
|
|
@@ -148,10 +149,12 @@ struct serial_device_info {
|
|
|
u8 reg_width;
|
|
|
u8 reg_offset;
|
|
|
u8 reg_shift;
|
|
|
+ unsigned int clock;
|
|
|
unsigned int baudrate;
|
|
|
};
|
|
|
|
|
|
#define SERIAL_DEFAULT_ADDRESS 0xBADACCE5
|
|
|
+#define SERIAL_DEFAULT_CLOCK (16 * 115200)
|
|
|
|
|
|
/**
|
|
|
* struct struct dm_serial_ops - Driver model serial operations
|