|
@@ -80,7 +80,7 @@ static void imx_update(IMXSerialState *s)
|
|
|
* TCEN and TXDC are both bit 3
|
|
|
* RDR and DREN are both bit 0
|
|
|
*/
|
|
|
- mask |= s->ucr4 & (UCR4_TCEN | UCR4_DREN);
|
|
|
+ mask |= s->ucr4 & (UCR4_WKEN | UCR4_TCEN | UCR4_DREN);
|
|
|
|
|
|
usr2 = s->usr2 & mask;
|
|
|
|
|
@@ -321,6 +321,9 @@ static void imx_put_data(void *opaque, uint32_t value)
|
|
|
|
|
|
static void imx_receive(void *opaque, const uint8_t *buf, int size)
|
|
|
{
|
|
|
+ IMXSerialState *s = (IMXSerialState *)opaque;
|
|
|
+
|
|
|
+ s->usr2 |= USR2_WAKE;
|
|
|
imx_put_data(opaque, *buf);
|
|
|
}
|
|
|
|