esp: implement non-DMA transfers in PDMA mode

The MacOS toolbox ROM uses non-DMA TI commands to handle the first/last byte
of an unaligned 16-bit transfer to memory.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210304221103.6369-42-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
Mark Cave-Ayland 2021-03-04 22:11:02 +00:00
parent 238ec4d7d4
commit 1b9e48a5bd
2 changed files with 98 additions and 36 deletions

View file

@ -40,6 +40,7 @@ struct ESPState {
uint32_t do_cmd;
bool data_in_ready;
uint8_t ti_cmd;
int dma_enabled;
uint32_t async_len;