summaryrefslogtreecommitdiff
path: root/include/configs/apalis_imx6.h
diff options
context:
space:
mode:
authorLeonardo Graboski Veiga <leonardo.veiga@toradex.com>2016-08-31 15:05:51 -0300
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-09-29 06:03:32 +0200
commit84e4b425e6237cb026a6fe71025d89fa6359a685 (patch)
tree87308e5eb522126d1220289c95442fa41a5033dd /include/configs/apalis_imx6.h
parent4ce5f79a237fbdb995d560b291bd05c824764a2e (diff)
tegra: lcd: video: add mem alloc for bmp colour conversion map
While trying to display a BMP image by running the command 'bmp display <address>' the Colibri T30 was getting stuck (while on iMX6, iMX7 and Vybrid it worked). After investigation on what was going wrong, I noticed that the function 'lcd_set_cmap' should get a pointer address for the cmap variable, but the function returned 00000000. After further investigation, I noticed that this value should be held in the structure.member 'panel_info.cmap', which memory was being dynamically allocated in the function 'lcd_ctrl_init' of the file 'drivers/video/sandbox_sdl.c' (which was not being called). After copying the allocation to the same function in the file 'drivers/video/tegra.c', the command 'bmp display' didn't break anymore. The Colibri T20 module was working without the patch, as the module does have valid memory at the address 0, and of course it kept working after the patch now properly allocating memory for it. Signed-off-by: Leonardo Graboski Veiga <leonardo.veiga@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'include/configs/apalis_imx6.h')
0 files changed, 0 insertions, 0 deletions