1.1 --- a/pkg/devices/lib/lcd/src/jz4740/lcd-jz4780.cc Sat Dec 26 23:19:06 2020 +0100
1.2 +++ b/pkg/devices/lib/lcd/src/jz4740/lcd-jz4780.cc Sat Dec 26 23:21:46 2020 +0100
1.3 @@ -41,6 +41,22 @@
1.4 _burst_size = 64; // 64-word burst size available in the JZ4780
1.5 }
1.6
1.7 +void
1.8 +Lcd_jz4780_chip::enable()
1.9 +{
1.10 + _regs[Osd_status] = 0;
1.11 + Lcd_jz4740_chip::enable();
1.12 +}
1.13 +
1.14 +// Return an interrupt-related OSD configuration value.
1.15 +
1.16 +uint32_t
1.17 +Lcd_jz4780_chip::_osd_config_irq()
1.18 +{
1.19 + return ((_irq_conditions & Lcd_irq_frame_start) ? (1U << Osd_config_fg0_frame_start_irq_enable) : 0) |
1.20 + ((_irq_conditions & Lcd_irq_frame_end) ? (1U << Osd_config_fg0_frame_end_irq_enable) : 0);
1.21 +}
1.22 +
1.23 // Return colour depth control value.
1.24 // JZ4780 position details only.
1.25