1.1 --- a/pkg/devices/lcd/src/jz4780/lcd-jz4780-spi-device.cc Sat Apr 27 23:46:28 2024 +0200
1.2 +++ b/pkg/devices/lcd/src/jz4780/lcd-jz4780-spi-device.cc Sun Apr 28 18:37:08 2024 +0200
1.3 @@ -66,20 +66,6 @@
1.4 static Spi_hybrid *spi_channel;
1.5 static Spi_jz4780_channel *spi_jz4780_channel;
1.6
1.7 -struct gpio_port
1.8 -{
1.9 - uint32_t pull_ups, pull_downs;
1.10 -};
1.11 -
1.12 -static struct gpio_port gpio_ports[] = {
1.13 - {0x3fff00ff, 0x00000000},
1.14 - {0xfff0f3fc, 0x000f0c03},
1.15 - {0x0fffffff, 0x00000000},
1.16 - {0xffff4fff, 0x0000b000},
1.17 - {0xf0fff37c, 0x00000483},
1.18 - {0x7fa7f00f, 0x00580ff0},
1.19 -};
1.20 -
1.21
1.22
1.23 // Disable the display.
1.24 @@ -227,10 +213,7 @@
1.25
1.26 dma_chip->enable();
1.27
1.28 - gpio_chip = new Gpio_jz4780_chip(gpio_virt_base + gpio_port * 0x100,
1.29 - gpio_virt_base + (gpio_port + 1) * 0x100,
1.30 - 32, gpio_ports[gpio_port].pull_ups,
1.31 - gpio_ports[gpio_port].pull_downs);
1.32 + gpio_chip = new Gpio_jz4780_chip(gpio_virt_base, gpio_port);
1.33
1.34 // Initialise the clocks for the SPI peripheral before obtaining the
1.35 // peripheral abstraction.