rust/pl011: Use correct masks for IBRD and FBRD
Port fix from commit cd247eae16
"hw/char/pl011: Use correct masks for IBRD and FBRD"
Related issue: <https://gitlab.com/qemu-project/qemu/-/issues/2610>
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20241024-rust-round-2-v1-9-051e7a25b978@linaro.org
This commit is contained in:
parent
d38723f568
commit
230b710bf4
@ -19,10 +19,10 @@ use crate::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// Integer Baud Rate Divider, `UARTIBRD`
|
/// Integer Baud Rate Divider, `UARTIBRD`
|
||||||
const IBRD_MASK: u32 = 0x3f;
|
const IBRD_MASK: u32 = 0xffff;
|
||||||
|
|
||||||
/// Fractional Baud Rate Divider, `UARTFBRD`
|
/// Fractional Baud Rate Divider, `UARTFBRD`
|
||||||
const FBRD_MASK: u32 = 0xffff;
|
const FBRD_MASK: u32 = 0x3f;
|
||||||
|
|
||||||
const DATA_BREAK: u32 = 1 << 10;
|
const DATA_BREAK: u32 = 1 << 10;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user