summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/creative-zen/lcd-zen.c
AgeCommit message (Collapse)Author
2017-01-16zen/zenxfi: remove obsolete commentAmaury Pouly
Change-Id: I1e4a726c85a9d87216412162fd0815747eb32cf6
2017-01-16zen/zenxfi: add remark about pinAmaury Pouly
Clearly this pin does not control power so don't call it lcd_power. Change-Id: I9a6794e2606de99cb44dd3e7288b5cce5beb8d0d
2016-05-28imx233: generate register headers using headergen_v2 and update code for itAmaury Pouly
NOTE: this commit does not introduce any change, ideally even the binary should be almost the same. I checked the disassembly by hand and there are only a few differences here and there, mostly the compiler decides to compile very close expressions slightly differently. I tried to run the new code on several targets to make sure and saw no difference. The major syntax changes of the new headers are as follows: - BF_{WR,SET,CLR} are now superpowerful and allows to set several fileds at once: BF_WR(reg, field1(value1), field2(value2), ...) - BF_CS (use like BF_WR) does a write to reg_CLR and then reg_SET instead of RMW - there is no more need for macros like BF_{WR_,SET,CLR}_V, since one can simply BF_WR with field_V(name) - the old BF_SETV macro has no trivial equivalent and is replaced with its its equivalent for BF_WR(reg_SET, ...) I also rename the register headers: "regs/regs-x.h" -> "regs/x.h" to avoid the redundant "regs". Final note: the registers were generated using the following command: ./headergen_v2 -g imx -o ../../firmware/target/arm/imx233/regs/ desc/regs-stmp3{600,700,780}.xml Change-Id: I7485e8b4315a0929a8edb63e7fa1edcaa54b1edc
2014-06-24zen/zenxfi: switch lcd driver to 24-bit modeAmaury Pouly
Change-Id: I2c42f0e422130bcdaf1aaf92c7b56776752f4f64
2014-03-08zen: handle lcd underflow by handAmaury Pouly
Contrary to the imx233, the stmp37xx lcdif doesn't know how to properly recover from underflow and things are worse because of the errata which makes the lcdif not clear the fifo. Workaround this by detecting underflow and taking action: stop dotclk mode (will clear fifo) and schedule next frame. The dma transfers now write the ctrl register as part of the PIO writes, making the code simpler. Change-Id: I15abc24567f322cd03bf2ef7903094f7f0178427
2014-03-03zen/zenxfi: correctly implement lcdif errataAmaury Pouly
Change-Id: Ib2a6000035d70d687025a78bbea416d77af562fe
2014-02-10zen: enable dma channel after lcdif initAmaury Pouly
Change-Id: I8886698ed618f9724df2f46d71f36b7443bc821b
2014-02-10zen: workaround errata on imx233 lcdifAmaury Pouly
Change-Id: I9d723aa13628e4ab38ee7f648c1923b9e7101d22
2014-02-10imx233: fix typosAmaury Pouly
Change-Id: If5bc0f09dc0b3b1e833e41bbbdd216002e37d147
2014-01-05Add missing kernel.h includes (hopefully all of them).Thomas Martitz
Change-Id: I9c1825296a788587b8d494d8514b3314847b0ff0
2013-11-26zen: rework lcd enableAmaury Pouly
The ZEN/ZEN-XFi seem to be very picky about the lcd. And they do not like standby mode so I'm going to drop it, the OF doesn't use it anyway. I still don't know what this "power" pin is about, obviously it's not real power but the OF toggle it. Let's hope the lcd will finally become more stable with fix: the driver now does full power on/off on enable/disable. Change-Id: I1c465ee4f2462bc3d9507e5f575f0a181af60214
2013-11-19Finally fix yellowAmaury Pouly
Change-Id: Ia7c30821a9417a23478c053b3edcf26e1179a9d9
2013-11-19Fix yellowAmaury Pouly
Change-Id: I9d283592c6411c97948ae4962e2c22d7ab45bec3
2013-11-19imx233: factor adc accross targetsAmaury Pouly
The old code allowed each target to specify its adc targets but this proved useless since the target rely directly on imx233/lradc for input method and generic adc is mostly used for battery and debug. Remove all target specific files and provide a generic implemenation. The targets can still specify a battery temperature channel in powermgmt-target.h Change-Id: I68cf2e3e46379d174ac6d774ffb237bb15a19ae3
2013-11-11zen/zenxfi: correctly implement partial redrawAmaury Pouly
Although there is no difference in the cost of a full or partial update, it is preferable that the semantic of lcd_update_rect() be correct. Change-Id: I8a168388b98e0dbd7237729b7fd8a62fa1885be1
2013-11-11zen/zenxfi: implement lcd standbyAmaury Pouly
Change-Id: I5960221d45490c469ffd2a481d447185aba70e56
2013-10-22Initial commit for the Creative ZEN and ZEN X-FiAmaury Pouly
Change-Id: Ibd7b1b0b957ef11c200cb63eff7da53f11774748