DPRINTF(Uart, "Reading Masked Int status as 0x%x\n", maskInt());
data = maskInt();
break;
+ case UART_DMACR:
+ warn("PL011: DMA not supported\n");
+ data = 0x0; // DMA never enabled
+ break;
default:
if (readId(pkt, AMBA_ID, pioAddr)) {
// Hack for variable size accesses
dataAvailable();
}
break;
+ case UART_DMACR:
+ // DMA is not supported, so panic if anyome tries to enable it.
+ // Bits 0, 1, 2 enables DMA on RX, TX, ERR respectively, others res0.
+ if (data & 0x7) {
+ panic("Tried to enable DMA on PL011\n");
+ }
+ warn("PL011: DMA not supported\n");
+ break;
default:
panic("Tried to write PL011 at offset %#x that doesn't exist\n", daddr);
break;
static const int UART_RIS = 0x03C;
static const int UART_MIS = 0x040;
static const int UART_ICR = 0x044;
+ static const int UART_DMACR = 0x048;
static const uint16_t UART_RIINTR = 1 << 0;
static const uint16_t UART_CTSINTR = 1 << 1;