rockbox/firmware/target/arm/imx233
William Wilgus 1f63604e2c Fuze PLUS Fix lcd_update_rect()
Lcd_update rect was hanging during horizontal screen update x = 238 and width = 2
which was within the bounds of the screen, this seems to be a weird corner case
but more testing needs done.

Update_rect now properly bounded between 0 - screen w/h
--Cleaned up code

Pixels in x are now multiples of 4.

Datasheet states:
-------------------------------------------------------------------------------------------
WORD_LENGTH=0 implies the input frame buffer is RGB 16 bits per pixel.
DATA_FORMAT_16_BIT field indicates if the pixels are in RGB 555 or RGB 565 format.
Limitations:
— BYTE_PACKING_FORMAT [3:0] should be 0x3 or 0xC if there is only one pixel per word.
— If there are two pixels per word, BYTE_PACKING_FORMAT [3:0] should be 0xF and
H_COUNT will be restricted to be a multiple of 2 pixels.

and

WORD_LENGTH=3 indicates that the input frame-buffer is RGB 24 bits per pixel (RGB 888). If
BYTE_PACKING_FORMAT [3:0] is 0x7, it indicates that there is only one pixel per 32-bit word
and there is no restriction on H_COUNT.
Limitations:
— If BYTE_PACKING_FORMAT [3:0] is 0xF, it indicates that the pixels are packed, i.e. there
are 4 pixels in 3 words or 12 bytes. In that case, H_COUNT must be a multiple of 4 pixels.
-------------------------------------------------------------------------------------------

We are using 16 bits per pixel and byte_packing = 0xF but device crashes with multiple of 2 pixels

Behaviour can be verified with plugin - oscilloscope, Horizontal mode device hangs as indicator
reaches right of screen

Change-Id: I1445f5334f4e7fe59304c65c76b47d0daa0614b2
2018-05-25 22:48:01 +02:00
..
creative-zen zen/zenxfi: increase LCD clock frequency 2017-08-27 17:49:11 +02:00
creative-zenxfi2 Zen XFi2: Enable Plugins 2018-04-03 11:34:01 +02:00
creative-zenxfi3 imx233: make microphone bias, bias pin and resistor configurable 2016-09-21 00:36:51 +01:00
pins
regs
samsung-ypz5 Samsung YP-Z5: keypad adaption to the new button API 2017-05-16 12:10:50 +10:00
sansa-fuzeplus Fuze PLUS Fix lcd_update_rect() 2018-05-25 22:48:01 +02:00
sony-nwz
adc-imx233.c
adc-target.h
app.lds imx233: remove redundant lines in linker script 2017-01-24 15:34:20 +01:00
ata-imx233.c
ata-target.h Unify storage threads into one 2017-10-26 14:35:41 -04:00
audio-imx233.c imx233: remove weak attribute on some functions 2017-02-04 17:16:32 +01:00
audio-imx233.h imx233: remove weak attribute on some functions 2017-02-04 17:16:32 +01:00
audioin-imx233.c imx233: make microphone bias, bias pin and resistor configurable 2016-09-21 00:36:51 +01:00
audioin-imx233.h
audioout-imx233.c imx233: fix audio debug screen on stmp3700 2017-01-14 01:17:25 +01:00
audioout-imx233.h imx233: slightly rework 3D audio setting 2016-12-12 12:15:24 +01:00
boot.lds imx233: remove redundant lines in linker script 2017-01-24 15:34:20 +01:00
button-imx233.c imx233: remove weak attribute on some functions 2017-02-04 17:16:32 +01:00
button-imx233.h imx233: remove weak attribute on some functions 2017-02-04 17:16:32 +01:00
button-lradc-imx233.c
button-lradc-imx233.h
clkctrl-imx233.c
clkctrl-imx233.h
clock-target.h
crt0.S Add boot data support to rockbox. 2017-10-29 17:50:59 +01:00
dcp-imx233.c
dcp-imx233.h
debug-imx233.c Don't call touchscreen functions when we don't have a touchscreen 2017-09-17 00:27:10 +02:00
dma-imx233.c imx233: workaround hardware dma bug 2017-01-15 18:41:27 +01:00
dma-imx233.h
dualboot-imx233.c imx233: add capability to boot OF or updater instead of Rockbox 2016-12-12 12:03:08 +01:00
dualboot-imx233.h imx233: add capability to boot OF or updater instead of Rockbox 2016-12-12 12:03:08 +01:00
emi-imx233.c
emi-imx233.h
fmradio-imx233.c imx233: rewrite i2c driver 2016-06-01 22:55:37 +02:00
fmradio-imx233.h
gpmi-imx233.c
gpmi-imx233.h
i2c-imx233.c imx233: rewrite i2c driver 2016-06-01 22:55:37 +02:00
i2c-imx233.h imx233: rewrite i2c driver 2016-06-01 22:55:37 +02:00
icoll-imx233.c imx233: add more icoll statistics 2016-12-12 13:20:10 +01:00
icoll-imx233.h imx233: add more icoll statistics 2016-12-12 13:20:10 +01:00
kernel-imx233.c
kernel-imx233.h imx233: fix touchscreen driver 2017-05-16 12:14:43 +10:00
lcdif-imx233.c
lcdif-imx233.h
led-imx233.c imx233: add small framework for LED 2017-01-16 20:08:13 +01:00
led-imx233.h imx233: add small framework for LED 2017-01-16 20:08:13 +01:00
lradc-imx233.c
lradc-imx233.h
nand-imx233.c Do some housekeeping with fat.h and SECTOR_SIZE 2017-03-12 22:05:44 -04:00
ocotp-imx233.h
partitions-imx233.c
partitions-imx233.h
pcm-imx233.c
pinctrl-imx233.c
pinctrl-imx233.h
power-imx233.c imx233: update comment about vbusvalid 2017-08-27 17:48:39 +02:00
power-imx233.h imx233: don't print stmp3780 debug info on stmp3700 2017-07-31 01:04:24 +02:00
powermgmt-imx233.c
powermgmt-imx233.h
pwm-imx233.c imx233: add small framework for LED 2017-01-16 20:08:13 +01:00
pwm-imx233.h
rtc-imx233.c
rtc-imx233.h
sdmmc-imx233.c Unify storage threads into one 2017-10-26 14:35:41 -04:00
sdmmc-imx233.h Fix red, forgotten file 2016-05-29 20:21:26 +01:00
ssp-imx233.c
ssp-imx233.h
system-imx233.c Imx233 Disable Autoslow only at maximum cpu frequency 2017-11-12 14:28:03 +01:00
system-target.h imx233: Implement mutex for cpu_boost_lock/unlock 2017-10-28 14:47:21 +02:00
timer-imx233.c
timrot-imx233.c
timrot-imx233.h
touchscreen-imx233.c imx233: fix touchscreen driver 2017-05-16 12:14:43 +10:00
touchscreen-imx233.h
uartdbg-imx233.c
uartdbg-imx233.h
usb-imx233.c