diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-03-15 12:11:41 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-03-19 18:23:24 +0000 |
commit | 46d3fb634cb0e44c6cf0ed3a996d6996f3818c2d (patch) | |
tree | 0df97f413517fd02b42863d096af23199b5c4eb2 /include | |
parent | 824e4a12f3de76d3efb3229027a04c1fd69244d5 (diff) | |
download | qemu-46d3fb634cb0e44c6cf0ed3a996d6996f3818c2d.zip qemu-46d3fb634cb0e44c6cf0ed3a996d6996f3818c2d.tar.gz qemu-46d3fb634cb0e44c6cf0ed3a996d6996f3818c2d.tar.bz2 |
char: i.MX: Add support for "TX complete" interrupt
Add support for "TX complete"/TXDC interrupt generate by real HW since
it is needed to support guests other than Linux.
Based on the patch by Bill Paul as found here:
https://bugs.launchpad.net/qemu/+bug/1753314
Cc: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org
Cc: Bill Paul <wpaul@windriver.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Bill Paul <wpaul@windriver.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Message-id: 20180315191141.6789-2-andrew.smirnov@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/char/imx_serial.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/char/imx_serial.h b/include/hw/char/imx_serial.h index baeec31..5b99cee 100644 --- a/include/hw/char/imx_serial.h +++ b/include/hw/char/imx_serial.h @@ -67,6 +67,8 @@ #define UCR2_RXEN (1<<1) /* Receiver enable */ #define UCR2_SRST (1<<0) /* Reset complete */ +#define UCR4_TCEN BIT(3) /* TX complete interrupt enable */ + #define UTS1_TXEMPTY (1<<6) #define UTS1_RXEMPTY (1<<5) #define UTS1_TXFULL (1<<4) @@ -95,6 +97,7 @@ typedef struct IMXSerialState { uint32_t ubmr; uint32_t ubrc; uint32_t ucr3; + uint32_t ucr4; qemu_irq irq; CharBackend chr; |