dtsi: screen-timing: lcd-tv080wum-mipi: update CABC lut
authorHuang Jiachai <hjc@rock-chips.com>
Fri, 11 Mar 2016 03:23:07 +0000 (11:23 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 11 Mar 2016 06:11:41 +0000 (14:11 +0800)
commit4638791f1e35e7bb75ebfae1f58bd8dfd6b0f9af
tree94aa0b41f79841fa0f4e1f369b5390cd2f44bbc1
parent0a49e8e7c0944f27c1e08767bc352cbdfa32e868
dtsi: screen-timing: lcd-tv080wum-mipi: update CABC lut

Get the gamma value from screen vendor and use the following
algorithm to get the cabc lut

for(i=0;i<256;i++)
cabc_lut[i] = pow((256.0/(i + 256)), gamma_val) * 65536 + 0.5;

Change-Id: I8500cc84869d2693ce6af4e116b2140b3d3a16fc
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
include/dt-bindings/display/screen-timing/lcd-tv080wum-mipi.dtsi