mbox series

[0/4] macfb: A/UX fixes for colour LUT

Message ID 20231026085650.917663-1-mark.cave-ayland@ilande.co.uk
Headers show
Series macfb: A/UX fixes for colour LUT | expand

Message

Mark Cave-Ayland Oct. 26, 2023, 8:56 a.m. UTC
This fixes an issue discovered in A/UX whereby attempts to read the colour
LUT from the macfb device returned zero (black) for all colours. The problem
was that the DAFB_RESET register is actually used to set the current colour
palette array index: fixing that and allowing larger access sizes allows the
test case to work.

This series implements these changes, along with renaming the DAFB_RESET
register to DAFB_LUT_INDEX which better describes its purpose.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk


Mark Cave-Ayland (4):
  macfb: don't clear interrupts when writing to DAFB_RESET
  macfb: rename DAFB_RESET to DAFB_LUT_INDEX
  macfb: allow larger write accesses to the DAFB_LUT register
  macfb: allow reads from the DAFB_LUT register

 hw/display/macfb.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)