Commit Graph

653796 Commits

Author SHA1 Message Date
Yong Qin
f70db4be00 Revert "di: change clkb frq from 500 to 667 [1/1]"
This reverts commit c75a783c42.

Change-Id: I2bf82f1ceeebc1377d45b76ee1d2563811c154ca
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
d5edafddec di: bringup for tm2 [1/1]
PD#SWPL-6575

Problem:
chip bring up

Solution:
1.add tm2 chip id for tm2
2.add h scaling down function for tm2

Verify:
tm2

Change-Id: I364d7c07be331d81ef546357445225c6071f8e3c
Signed-off-by: Yong Qin <yong.qin@amlogic.com>

Conflicts:
	drivers/amlogic/media/deinterlace/deinterlace.c
	drivers/amlogic/media/deinterlace/deinterlace_dbg.c
	drivers/amlogic/media/deinterlace/deinterlace_hw.c
	drivers/amlogic/media/deinterlace/nr_drv.c
2019-07-23 17:52:49 +09:00
Yong Qin
f0f35b4b77 di: change clkb frq from 500 to 667 [1/1]
PD#SWPL-6762

Problem:
di clkb frq is not right

Solution:
change from 500 to 667

Verify:
tl1

Change-Id: I9c62bb9936630937f19d8a6b490a8266d73a268c
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
5e600034e6 di: monkey test di cause crash [1/1]
PD#SWPL-6133

Problem:
monkey test di cause crash,when is di reg processing, unreg event
attach, and released the di buffer, so cause crash.

Solution:
every unreg event received, need waitting reg process had done.

Verify:
tl1

Change-Id: I2f2bb068ed65ab14ab4f09de96b64d7290da5914
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
zhiwei.yuan
f2d5089e0b di: "DI: di_init_buf vmap fail" is seen when power on [1/1]
PD#SWPL-5908

Problem:
execute vmap when di reserved memory is disable

Solution:
skip memory calculation in init buf  while using cma

Verify:
verified by t962x2_x301

Change-Id: Ib0c2e422f61f2b4182109cb7bbb3107029363ce0
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
08290d7ec9 di: av to dtv , black screen [1/1]
PD#SWPL-6096

Problem:
from local av switch to dtv,black screen,then search channel

Solution:
revert the modification "62617"

Verify:
tl1

Change-Id: I49ae627b9f0b1f6a776e5cbffc723a43e85cee72
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
d289c1307c di: The last frame of the video flash garbage [1/1]
PD#SWPL-6070

Problem:
flash garbages when unreg process.

Solution:
can't speed down the clkb rate, there is a mirror mode

Verify:
tl1

Change-Id: I5fcc29a1cda196992a457f40fee31992f4bc1528
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
c348b65736 di: flash green when play 265 SD video [1/1]
PD#SWPL-6097

Problem:
flash green garbages when play h.265 SD video

Solution:
afbc input not enable

Verify:
tl1

Change-Id: I310eeb6d922ab8b9035c815afc4e967c0e5390ff
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
4590122d39 di: exit play local 4k video flashing [1/1]
PD#SWPL-5877

Problem:
1.afbc mode, play h.265 local video, when exit playing,
screen will flashing sometimes.
2.when exit playing, there cost 5s time.

Solution:
4k video di bypass, afbc hw module used by vpp, when
DI unreg, needn't to disable AFBC moudule.

Verify:
tl1

Change-Id: I2ac66a145a009042d286dda50e7259657f4bfc8e
Signed-off-by: Yong Qin <yong.qin@amlogic.com>

Conflicts:
	drivers/amlogic/media/deinterlace/deinterlace.c
2019-07-23 17:52:49 +09:00
Yong Qin
e5cf70280d di: pretect reg unreg flow [1/1]
PD#SWPL-4918

Problem:
when reg unreg event called too fast, di cause system crash

Solution:
pretect reg and unreg flow

Verify:
tl1

Change-Id: I9b3e28c2b0b709d4f53f60b1f044a390933117ce
Signed-off-by: Yong Qin <yong.qin@amlogic.com>

Conflicts:
	drivers/amlogic/media/deinterlace/deinterlace.c
2019-07-23 17:52:49 +09:00
Yong Qin
ca322d7a1b di: 1080p,the screen display anormal [1/1]
PD#SWPL-5874

Problem:
1080p the screen display anormal

Solution:
compress mode, modify vdin frame type.

Verify:
tl1

Change-Id: Ic1ee1472105861c8debce2a1645f70ed617fd132
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
50ae6deb59 di: support the interlace format from vdin afbc [2/2]
PD#SWPL-5205

Problem:
support afbc from vdin and decoder on tl1

Solution:
1.add this function
2.support from vdin and decoder

Verify:
tl1

Change-Id: I258d40ad5706f4a9a5749298dd9a33a9b4bbafa2
Signed-off-by: Yong Qin <yong.qin@amlogic.com>

Conflicts:
	drivers/amlogic/media/deinterlace/deinterlace.c
	drivers/amlogic/media/deinterlace/deinterlace_hw.c
2019-07-23 17:52:49 +09:00
zhiwei.yuan
0c513a2b81 di: TL1 enable lmv_lock_win_en cause crash [1/1]
PD#SWPL-4999

Problem:
use vmalloc in interrupt context

Solution:
move di_map to cma allocate function(kernel thread)

Verify:
verified by t962x2_x301

Change-Id: I8cf8d9caf9703ba039b32da98d2382a4c875de30
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
e7af75d340 di: disable afbc on tl1 [1/1]
PD#SWPL-3413

Problem:
when playing SD/HD/VP9/H265 video, there
are 3 veritcal lines on the picture.

Solution:
disable afbc

Verify:
verified on tl1

Change-Id: I839d8f26aefdf2c71272d8d3e7bf93e4c3294491
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
Jihong Sui
0a23be6422 deinterlace: pq: adjust pulldown setting for tl1 [1/1]
PD#SWPL-3182

Problem:
1.VLSI(Feijun) fine-tune pulldown setting for TL1, G12A/B;
2.fine tune combing_glbmot_radprat by VLSI(yanling.liu);

Solution:
finetune setting.

Verify:
tl1

Change-Id: Ie65cec8b216752600dfd54ee6be5302150282774
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-07-23 17:52:49 +09:00
huaihao guo
70cac90710 deinterlace: Add AFBC support on TL1 [1/1]
PD#SWPL-3113

Problem:
Add AFBC support on TL1

Solution:
Add AFBC support on TL1

Verify:
T962x2-x301

Change-Id: Ib4f40f6ca0cbb1553bf4f76848d1649822dda3e8
Signed-off-by: huaihao.guo <huaihao.guo@amlogic.com>
2019-07-23 17:52:49 +09:00
Jihong Sui
56e2c4d447 deinterlace: pq: adjust cue setting for tl1 [1/1]
PD#SWPL-2984

Problem:
VLSI(yanling.liu) fine-tune cue setting for TL1.

Solution:
add new setting.

Verify:
tl1

Change-Id: I99c32d994687650dc851dd2fb8c0464e8ffd21b5
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>

Conflicts:
	drivers/amlogic/media/deinterlace/deinterlace.c
2019-07-23 17:52:49 +09:00
Jihong Sui
cd21f1c613 deinterlace: there's a change to hang in shutdown [1/1]
PD#OTT-778

Problem:
1.kernel received reboot command, but hang in shutdown

Solution:
move tasklet_disable behind tasklet_kill

Verify:
P321

Change-Id: I994c21c5aeb42dbbb4e3b50ccac8376db4d4039d
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-07-23 17:52:49 +09:00
wenfeng.guo
5bc20f13a4 deinterlace: add support for tl1 [1/1]
PD#172587

Problem:
bringup tl1

Solution:
add deinterlace driver support for tl1

Verify:
verified on tl1 x301

Change-Id: I3bf008a4f948cdc2c11f14f81944695d6a185b14
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_pxp.dts
	arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
	drivers/amlogic/media/deinterlace/deinterlace.c
	drivers/amlogic/media/deinterlace/deinterlace_dbg.c
	drivers/amlogic/media/deinterlace/deinterlace_hw.c
	drivers/amlogic/media/deinterlace/nr_drv.c
2019-07-23 17:52:49 +09:00
wenfeng.guo
8e075a7ced deinterlace: fix CMA layout adaptation di_cma_reserved [1/1]
PD#SWPL-2308

Problem:
CMA layout adaptation di_cma_reserved cause crash

Solution:
fix CMA layout adaptation di_cma_reserved

Verify:
P321

Change-Id: Ia24e811a02d47d70afa1c06361fd0852c357394c
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>

Conflicts:
	drivers/amlogic/media/deinterlace/deinterlace.c
	drivers/amlogic/media/deinterlace/deinterlace_hw.c
	drivers/amlogic/media/deinterlace/deinterlace_hw.h
2019-07-23 17:52:49 +09:00
huaihao.guo
32376b037b deinterface: temporary remove afbc support on chip after g12a [1/1]
PD#172587

Problem:
afbc now support on chip txlx and g12a,
but we use cpu_after_eq(G12A) to judge
if afbc is support or not.

Solution:
use is_meson_g12a_cpu() replace cpu_after_eq(G12A).

Verify:
u200(g12a),t962x_r311

Change-Id: I3fb7ed54f7137fada97481177e40a2543cf8df9f
Signed-off-by: huaihao guo <huaihao.guo@amlogic.com>
2019-07-23 17:52:49 +09:00
huaihao.guo
e3701d133e deinterface: add afbc support on g12a and txlx [1/1]
PD#SWPL-1618

Problem:
Add afbc support on g12a and txlx

Solution:
add afbc support on g12a and txlx

Verify:
T962X-R311, U200(G12A)

Change-Id: Ia0cce8516a98653b01c3bc628e812c3a81b1df59
Signed-off-by: huaihao.guo <huaihao.guo@amlogic.com>

Conflicts:
	drivers/amlogic/media/deinterlace/deinterlace.c
	drivers/amlogic/media/deinterlace/deinterlace_hw.c
2019-07-23 17:52:49 +09:00
Kevin Kim
3a03ee7c2e ODROID-N2: Merge amlogic BSP 2019.0415 (fix build err)
Change-Id: I1987cce33154a36658b066f44ce1463d267d0043
2019-07-23 17:52:49 +09:00
Zhe Wang
b157b2fb93 audio: TM2 bringup: enable ADC for linein [1/1]
PD#SWPL-7027

Problem:
audio path AVin is on audio

Solution:
enable ADC for linein

Verify:
Verify on AB311

Change-Id: Iea1d694e0b605d62596635d85416d33f56dbbcb2
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_t962x2_x301_1g.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301_1g.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301_2g.dts
	sound/soc/codecs/amlogic/ad82584f.c
2019-07-23 17:52:49 +09:00
Zhe Wang
39aa653f77 audio: TM2: bringup AMP ti5805 on ab301 [1/1]
PD#SWPL-7074

Problem:
speaker doesn't work

Solution:
bringup AMP ti5805 on ab301

Verify:
Verified on T962x3_ab301

Change-Id: Icb27691b4fd5a1e54070c4a6d3d3c68cdf3a60b7
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
2019-07-23 17:52:49 +09:00
Zhe Wang
24b7a86956 audio: TM2 audio basic function bringup [1/1]
PD#SWPL-6721

Problem:
TM2 bringup

Solution:
audio basic function bringup

Verify:
Verified on T962e2_ab311

Change-Id: Ic48ded3964ea87e40c4d683d71a50bbdc1975f91
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
2019-07-23 17:52:49 +09:00
Zhe Wang
43aed42f18 audio: support 16ch i2s playback for SM1 [1/1]
PD#SWPL-5430

Problem:
new function lane 6 and lane 8

Solution:
support max 16 channel playback

Verify:
sm1_ac200, verify pass

Change-Id: I3af42a0b68bca8804afa042ad4a506a379b9bf86
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2019-07-23 17:52:49 +09:00
Xing Wang
cb813f2cf2 audio: auge: support earc rx for sm1 [1/2]
PD#SWPL-5389

Problem:
earc rx dmac reset and clk issue

Solution:
fix earc rx dmac and clk

Verify:
ac200

Change-Id: Ie8e5582f1ee358a8cf694965c9963ae1eeb6685a
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-07-23 17:52:49 +09:00
Xing Wang
e1d727fcc2 audio: auge: add sound card for sm1 [2/2]
PD#SWPL-6151

Problem:
sound card for sm1

Solution:
add sound card for sm1

Verify:
ac200

Change-Id: I4f65472af7a8399fb6fe003db608158e11bed566
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

Conflicts:
	sound/soc/amlogic/auge/ddr_mngr.c
	sound/soc/amlogic/auge/ddr_mngr.h
	sound/soc/amlogic/auge/spdif.c
	sound/soc/amlogic/auge/tdm.c
2019-07-23 17:52:49 +09:00
yujie.wu
4c7fb7757a audio: Merge code from RSR project [1/2]
PD#SWPL-5495

Problem:
  There is some improvement code on RSR
  project, we need to merge them back to
  trunk.

Solution:
  Merge the code from rsr branch

Verify:
  A113

Change-Id: I0ba11c8ff412db659ff2f10bfc00d63c49f84bb5
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2019-07-23 17:52:49 +09:00
Xing Wang
0400796f77 dts: tl1: enable resample for tl1 [1/2]
PD#SWPL-3365

Problem:
not resample for audio in, so output in wrong sample rate

Solution:
1. enable resample in dts
2. fix to check whether resample is needed

Verify:
x301

Change-Id: I99238cc21a00ab53df6a1f8ab1703bc9ab48cbaa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

Conflicts:
	sound/soc/amlogic/auge/ddr_mngr.c
	sound/soc/amlogic/auge/resample.c
	sound/soc/amlogic/auge/spdif.c
2019-07-23 17:52:49 +09:00
Xing Wang
819ccca2b3 audio: auge: fix sharebuffer channel map [1/1]
PD#SWPL-2645

Problem:
play ddp source, then play pcm source, no sound

Solution:
1. fix same source control and channel map issue
2. i2s 8ch, spdif 2ch, channels are not mapped, make spdif 8 channel mask
3. when same source used, keep mpll use same mpll

Verify:
x301

Change-Id: I2fe4bbcbcbfff0a1c1a6cebf61d1da5aba9b7a9d
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
	sound/soc/amlogic/auge/ddr_mngr.c
	sound/soc/amlogic/auge/sharebuffer.c
	sound/soc/amlogic/auge/spdif_hw.c
	sound/soc/amlogic/auge/spdif_hw.h
2019-07-23 17:52:49 +09:00
Kevin Kim
408c93df79 ODROID:Merge BSP 2019.04 (fix build err-vout_lcd)
Change-Id: I88e5f27cfe00dc5a103fc82a519e0ed088448847
2019-07-23 17:52:49 +09:00
ruixuan.li
c50512adc4 tm2: emmc run hs200 busmode [1/1]
PD#SWPL-5658

Problem:
emmc run high speed now

Solution:
modify dts

Verify:
passed on t962e2_ab319

Change-Id: Iedef30bed9547e7f57c883077462f1762c55fda3
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontm2.dtsi
	arch/arm64/boot/dts/amlogic/mesontm2.dtsi
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	drivers/amlogic/mmc/aml_sd_emmc_v3.c
2019-07-23 17:52:49 +09:00
long yu
4013b0b4ab storage: emmc: reduce cmd/ds/data pins driver strength for TL1 SOC [1/1]
PD#SWPL-5334

Problem:
TX window is not stable

Solution:
Reduce the drive capability of emmc controller pins

Verify:
TL1-T962X2_X301

Change-Id: Ib641c66131c2dee41eb68fb262f4770f431676b9
Signed-off-by: long yu <long.yu@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
2019-07-23 17:52:49 +09:00
Long Yu
715f14bd50 storage: emmc: Add HS400 busmode support for TL1 [1/1]
PD#SWPL-2311

Problem:
not support HS400 busmode

Solution:
add HS400 busmode support for TL1

Verify:
TL1-T962X2_X301

Change-Id: I95ac19e9c0c5b84c9225602cda6964aaaee4151e
Signed-off-by: Long Yu <long.yu@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontm2.dtsi
	arch/arm64/boot/dts/amlogic/mesontm2.dtsi
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
	drivers/amlogic/mmc/aml_sd_emmc_v3.c
2019-07-23 17:52:49 +09:00
Ruixuan Li
2fdbf349bd arm: dts: tl1: config device on portB with dts [1/1]
PD#172587

Problem:
configuration for portB in dtsi can not support
the sdcard and sdio at same time.

Solution:
move the device configuration into dts.
SKT->SDCARD
REF->SDIO

Verify:
test pass on tl1 skt and ref board

Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
Change-Id: I6d1da7a8d0d8d901c4a40a74f04973c155188ade

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_pxp.dts
	arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
	arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
	drivers/amlogic/mmc/amlsd.c
2019-07-23 17:52:49 +09:00
Ruixuan Li
f5c42df116 emmc: modify cophase for tl1 [1/1]
PD#172587

Problem:
emmc data crc error

Solution:
modify cophase under kernel for tl1

Verify:
test pass on skt

Change-Id: Id4997ef2288a53e6f401744664aaf6b05cf36e38
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
2019-07-23 17:52:49 +09:00
Nan Li
cd3580450b sdio: optimize sd & wifi TDMA [1/1]
PD#SWPL-1908

Problem:
sdio wifi error TDMA.

Solution:
optimize host reg value set error.

Verify:
u211 & u212

Change-Id: I0e0d52ac2bce42cf163f0065d46badc938832a65
Signed-off-by: Nan Li <nan.li@amlogic.com>

Conflicts:
	drivers/amlogic/mmc/aml_sd_emmc.c
	drivers/amlogic/mmc/aml_sd_emmc_v3.c
	drivers/amlogic/mmc/amlsd_of.c
	include/linux/amlogic/sd.h
2019-07-23 17:52:49 +09:00
Kevin Kim
6e46f0c992 ODROID:Merge BSP 2019.04 (fix build err-vout_lcd)
Change-Id: I92e6c903fa96763251844080d268bd5e74030ae9
2019-07-23 17:52:49 +09:00
Evoke Zhang
37512b5752 lcd: add vbyone large vswing support for tl1 [1/1]
PD#SWPL-5665

Problem:
some vbyone panel need large vswing

Solution:
add large vswing support for vbyone

Verify:
x301

Change-Id: I2e0e9ab6a73dab292e104a92b341867ceb5ecdbb
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-23 17:52:49 +09:00
Shaochan Liu
4c356db442 lcd: add more panel clk ss step for tl1 [2/2]
PD#SWPL-5290

Problem:
add more panel clk ss step for tl1

Solution:
change 5000ppm to 2000ppm for a step

Verify:
verify by t962x2-x301

Change-Id: Id8e6795f657cc4edf1fa0411721f741e87a0fcba
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_common.h
2019-07-23 17:52:49 +09:00
Evoke Zhang
a615f6903b lcd: optimize tcon_pll for tl1 [1/1]
PD#SWPL-3493

Problem:
tl1 can imporve tcon_pll performance

Solution:
1.update tcon_pll cntl2 register
2.extend ss_level to 12 level

Verify:
x301

Change-Id: Id10479196529083d2bf5048695a682793a4945ca
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-23 17:52:49 +09:00
Evoke Zhang
f36bd33120 lcd: tcon: add chpi bbc init support for tl1 [1/1]
PD#SWPL-3739

Problem:
need bbc flow to init channel for tcon chpi

Solution:
add bbc flow support

Verify:
x301

Change-Id: I15a3e9a85fdf62359768ce8931374f9c730b49d1
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_tv/lcd_drv.c
2019-07-23 17:52:49 +09:00
Evoke Zhang
10e90d694f lcd: add tablet mode lvds & vbyone support for tl1 [1/1]
PD#TV-2080

Problem:
need tablet mode support for tl1

Solution:
add tablet mode support for tl1

Verify:
x301

Change-Id: Ic7a6ae94255b6152236ab0d991bce9d748d670ac
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_tablet/lcd_drv.c
2019-07-23 17:52:49 +09:00
Evoke Zhang
07a8cee21c lcd: update phy config for tl1 [1/1]
PD#SWPL-3109

Problem:
tl1 tcon phy config need update

Solution:
1.update tcon phy config for tl1
2.optimize phy config with independent file

Verify:
x301

Change-Id: I869cab8fc28fc9d323ca0365fc6eead1c6bc53d7
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_phy_config.c
	drivers/amlogic/media/vout/lcd/lcd_tablet/lcd_drv.c
2019-07-23 17:52:49 +09:00
Evoke Zhang
0b6f5784ae lcd: update panel parameters for tl1 [1/1]
PD#SWPL-3109

Problem:
tl1 tcon parameters need update

Solution:
1.update tcon parameters for tl1
2.add minilvds support

Verify:
x301

Change-Id: Ia9c1defb25f43b2b352400e2ab55c6a74b55d688
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontl1_x301-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontxlx_r311-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontl1_x301-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontm2_t962x3_ab309-panel.dtsi
	drivers/amlogic/media/vout/lcd/lcd_clk_config.c
	drivers/amlogic/media/vout/lcd/lcd_debug.c
2019-07-23 17:52:49 +09:00
Evoke Zhang
b264fa4d5c arm: dts: x301 & t309: enable panel unifykey support for tvconfig [1/1]
PD#SWPL-2761

Problem:
not support tvconfig yet

Solution:
1.enable key_valid in panel dtsi
2.enable fr_auto_policy in panel dtsi
3.enable clk ss for lvds and vbyone in panel dtsi
4.also fix some coverity errors

Verify:
x301

Change-Id: I00dd5ff621cfbc3f100bbe6045a35c8f917ade29
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontl1_t309-panel.dtsi
2019-07-23 17:52:49 +09:00
Evoke Zhang
d0533b8c2b lcd: update p2p config and pll setting for tl1 [1/1]
PD#SWPL-3108

Problem:
1. tcon pll don't support spread spectrum yet
2. no p2p parameters config

Solution:
1. add p2p config parameters
2. enable tl1 clk parameters auto generate
3. add tl1 tcon_pll spread spectrum support
4. update clk spread spectrum api:
   set ss_level(hex val):
       echo level <val> >/sys/class/lcd/ss
   set ss_freq(hex val):
       echo freq <val> >/sys/class/lcd/ss
   set ss_mode(hex val):
       echo mode <val> >/sys/class/lcd/ss
   set ss advance(hex val, [15:12]=mode, [11:8]=freq, [7:0]=level):
       echo <val> >/sys/class/lcd/ss
   show ss_level, ss_freq, ss_mode:
       cat /sys/class/lcd/ss

Verify:
x301

Change-Id: I99eeca84290403fe766b17673ba9b0f7429fae26
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontl1_x301-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontm2_t962x3_ab309-panel.dtsi
	drivers/amlogic/media/vout/lcd/lcd_clk_config.c
	drivers/amlogic/media/vout/lcd/lcd_common.h
	drivers/amlogic/media/vout/lcd/lcd_debug.c
	drivers/amlogic/media/vout/lcd/lcd_tv/lcd_drv.c
	drivers/amlogic/media/vout/lcd/lcd_vout.c
	include/linux/amlogic/media/vout/lcd/lcd_vout.h
2019-07-23 17:52:49 +09:00
Evoke Zhang
6f911494ca lcd: add od support for tl1 tcon [1/1]
PD#SWPL-2759

Problem:
need over-driver function for tl1 tcon

Solution:
add tcon cma memory and od setting support

Verify:
x301

Change-Id: I926d221fef3317be8b3879a35298035ac9babcce
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_tcon.c
	drivers/amlogic/media/vout/lcd/lcd_vout.c
2019-07-23 17:52:49 +09:00