GitHub/LineageOS/G12/android_kernel_amlogic_linux-4.9.git
5 years agocvbs: cvbsoutput support for tl1 [1/1]
Nian Jing [Mon, 19 Nov 2018 14:11:50 +0000 (22:11 +0800)]
cvbs: cvbsoutput support for tl1 [1/1]

PD#172587

Problem:
no cvbsoutput

Solution:
add cvbsoutput

Verify:
test pass on x301

Change-Id: I92f70d26e32f95de7c63ddbac9fe6664063c1902
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agovideo: vpp: add vd afbc YUV 422/444 support for tl1 [1/1]
Brian Zhu [Thu, 15 Nov 2018 16:38:41 +0000 (00:38 +0800)]
video: vpp: add vd afbc YUV 422/444 support for tl1 [1/1]

PD#172587

Problem:
Bringup TL1 vidoe driver.
TL1 need support YUV422/444 AFBC.
TL1 need check afbc source from decode or vdin.
TL1 need afbc compress loss mode.

Solution:
Merge from branch bringup/amlogic-4.9/tl1-20181111.

Verify:
verify on tl1

Change-Id: I0af62e7638db4e1c349df874ccffdeddcaa715af
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoosd: osd: screen blank when boot [1/1]
Jian Cao [Thu, 15 Nov 2018 09:37:14 +0000 (17:37 +0800)]
osd: osd: screen blank when boot [1/1]

PD#172587

Problem:
screen blank when boot

Solution:
modify free_scale_switch

Verify:
verified on tl1 dev board

Change-Id: I3c53e832c83c71bd8e98f71fcd654865a467df3c
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoosd: osd: reserve vs_ctrl bit for VPP [1/1]
Jian Cao [Tue, 20 Nov 2018 02:30:25 +0000 (10:30 +0800)]
osd: osd: reserve vs_ctrl bit for VPP [1/1]

PD#172587

Problem:
reserve vs_ctrl bit for VPP

Solution:
Avoid operating VPP_OFIFO_SIZE bit19 on OSD code

Verify:
verified on t962x2_x301

Change-Id: Ic450d6f64e2349d97d02f0802058b4031564fea4
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoosd: add viu2 support for tl1 [1/1]
pengcheng chen [Tue, 20 Nov 2018 01:42:44 +0000 (09:42 +0800)]
osd: add viu2 support for tl1 [1/1]

PD#172587

Problem:
add viu2 support for tl1.

Solution:
add viu2 support for tl1.

Verify:
verified by x301

Change-Id: Ie728f6ee7e0c4c4062e5e12e3d80515d99d020f8
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoosd: tl1 hold line fix needn't shift workaround [1/1]
pengcheng chen [Thu, 15 Nov 2018 02:04:13 +0000 (10:04 +0800)]
osd: tl1 hold line fix needn't shift workaround [1/1]

PD#172587

Problem:
tl1 hold line fix needn't shift workaround.

Solution:
remove shift workaround int tl1

Verify:
verified by x301

Change-Id: I96d99758ba6f93622c34a8e69c4a3f769fdfad49
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agodeinterlace: add support for tl1 [1/1]
wenfeng.guo [Mon, 12 Nov 2018 02:54:08 +0000 (10:54 +0800)]
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>
5 years agodtv_demod: add DTV demod driver for tl1 [1/1]
Zhiwei Yuan [Fri, 23 Nov 2018 14:33:36 +0000 (22:33 +0800)]
dtv_demod: add DTV demod driver for tl1 [1/1]

PD#172587

Problem:
add DTV demod driver for tl1

Solution:
add DTV demod driver for tl1

Verify:
verified by t962x2_x301

Change-Id: I27e88090aa51c0385867cee4d31a5a75192cf650
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
5 years agotvafe: add tvafe support for tl1 [1/1]
Nian Jing [Fri, 23 Nov 2018 12:34:03 +0000 (20:34 +0800)]
tvafe: add tvafe support for tl1 [1/1]

PD#172587

Problem:
tl1 do not support tvafe

Solution:
add tvafe support

Verify:
test pass on x301

Change-Id: I34185a3f10e7540b7c2317c270a306b8904e0ca3
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agoarm: dts: tl1: update emmc dt for tl1 [1/1]
ruixuan.li [Wed, 14 Nov 2018 02:14:27 +0000 (10:14 +0800)]
arm: dts: tl1: update emmc dt for tl1 [1/1]

PD#165583

Problem:
bringup tl1 emmc

Solution:
1.set DDR52 MODE
2.add sdio node in dts
3.hs200 busmod

Verify:
test pass on tl1

Change-Id: I5b5c8bff18093f444e67b8e32e2a46c25ddf1a10
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
5 years agoamvecm: pq: lc: update local contrast setting [1/1]
Bencheng Jing [Thu, 22 Nov 2018 07:48:53 +0000 (15:48 +0800)]
amvecm: pq: lc: update local contrast setting [1/1]

PD#172587

Problem:
update lc setting

Solution:
update lc setting
add demo mode

Verify:
verified on ref board x301

Change-Id: Ie1542af5e4d8e4fe2c52bd04db66cbdf9130853f
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoatv_demod: add atv demod support for tl1 [1/1]
nengwen.chen [Fri, 23 Nov 2018 09:11:25 +0000 (17:11 +0800)]
atv_demod: add atv demod support for tl1 [1/1]

PD#172587

Problem:
1.add atv demod driver and dts config for tl1.
2.merge from bringup/amlogic-4.9/tl1-20181111.

Solution:
add atv demod driver and dts config for tl1

Verify:
verified by t962x2_x301

Change-Id: Ibbc00f9d478a9f5e52c6333b9a819aac381894ec
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoaudio: auge: fix drivers for tl1 [1/1]
Xing Wang [Tue, 30 Oct 2018 07:38:34 +0000 (15:38 +0800)]
audio: auge: fix drivers for tl1 [1/1]

PD#172587

Problem:
resample, eqdrc, dolby efuse, audio input (from atv, hdmirx)

Solution:
add drivers for them

Verify:
x301

Change-Id: I5187f9824d904283794f6e4be3dd9ce8463908e1
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agoemmc: modify cophase for tl1 [1/1]
Ruixuan Li [Mon, 26 Nov 2018 12:53:39 +0000 (20:53 +0800)]
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>
5 years agospicc: fix miss bytes/time consume/loopback issue [1/1]
Sunny Luo [Mon, 15 Oct 2018 08:09:03 +0000 (16:09 +0800)]
spicc: fix miss bytes/time consume/loopback issue [1/1]

PD#SWPL-215

Problem:
1. additional or missing bytes be sent on mosi sometimes.
2. Customer DSP load firmware through SPICC. the loading time is 12s with
buildroot release 20180907 while 6s with 20180131.
3. rx error when work in loopback mode at high speed.

Solution:
1. change to disable irq at the irq-handle begining;
change to enable irq after all data pulled.
2. pre-setup of every spi transfer spends most of time on clk_set_rate().
this time is not obvious while cpu work at a high frequence such as
1000MHz.
In fact, a slave speed is almost fixed and we needn't set it for every
transfer but set only when speed changed.
3. disable auto io delay when in loopback mode.

Verify:
verified on axg-s400-v03 and tl1-skt

Change-Id: I61bcceccc243b218879b2b0711d0aff7538151f6
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
5 years agousb: bringup usb for tl1 [1/1]
Yue Wang [Sun, 11 Nov 2018 09:23:31 +0000 (17:23 +0800)]
usb: bringup usb for tl1 [1/1]

PD#172587

Problem:
bringup usb for tl1

Solution:
bringup usb for tl1.
disable usb device sof interrupt for tl1.

Verify:
verify on tl1 skt.

Change-Id: Ifbcd3b406145ac39709ff2df795544086277f00e
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
5 years agoefuse: tl1: add efuse burning support [1/1]
Zhongfu Luo [Tue, 20 Nov 2018 02:58:48 +0000 (10:58 +0800)]
efuse: tl1: add efuse burning support [1/1]

PD#172587

Problem:
efuse: tl1: need to add efuse burning support

Solution:
efuse: tl1: add efuse burning support

Verify:
TL1 skt board verify pass

Change-Id: Id65f182c71fc6f3f2b2536bbb6b859ad2f558360
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agoirblaster: meson: add support for tl1 [1/1]
Bichao Zheng [Thu, 15 Nov 2018 06:01:55 +0000 (14:01 +0800)]
irblaster: meson: add support for tl1 [1/1]

PD#172587

Problem:
1.Bringup TL1.
2.Invalid frequency setting

Solution:
1.Add ir blaster device tree for tl1.
2.Add frequency setting

Verify:
verify on tl1.

Change-Id: I51759e32577172ff766fd4d50f92a00ef77c7495
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
5 years agopinctrl: meson: update pin groups for tl1 [1/1]
Xingyu Chen [Mon, 12 Nov 2018 12:57:48 +0000 (20:57 +0800)]
pinctrl: meson: update pin groups for tl1 [1/1]

PD#172587

Problem:
some pin groups are not supported

Solution:
update pin groups according to pinmux document v8.

Verify:
TL1 skt board.

Change-Id: I88750e307208fd30c20343c1c5418c1035961b4e
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agoclk: tl1: bringup clock for tl1 [1/1]
Jian Hu [Thu, 8 Nov 2018 06:32:27 +0000 (14:32 +0800)]
clk: tl1: bringup clock for tl1 [1/1]

PD#172587

Problem:
Bringup clock for tl1.

Solution:
Bringuup clock for tl1.
Cherrypick from bringup/amlogic-4.9/tl1-20181111

1. Add hdmirx meter clock
2. fix gp0 pll error
3. remove vpu_clk enable in clktree
4. add hdmi axi clock
5. fix tl1 mpll clk overflow issue
6. fix vapb clock error rate
7. add 1.404G and 1.5G cpu freqs for tl1

Verify:
TL1 T962X2 X301 & SKT

Change-Id: I73a9afca35f8a9ce26cc6f3a75a738525fc8d728
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agoarm: dts: tl1: add device tree for skt and x301 boards [1/1]
Xingyu Chen [Sun, 11 Nov 2018 07:05:34 +0000 (15:05 +0800)]
arm: dts: tl1: add device tree for skt and x301 boards [1/1]

PD#172587

Problem:
Bringup tl1 skt & x301.

Solution:
Add device tree for skt and x301 boards.

Verify:
test pass on skt board

Change-Id: Ia6c16be242b5cc430a38ec6b9cac8c320f7339d7
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
5 years agoframebuffer: remove lock in fbmem ioctl. [1/1]
sky zhou [Sat, 24 Nov 2018 13:56:30 +0000 (21:56 +0800)]
framebuffer: remove lock in fbmem ioctl. [1/1]

PD#SWPL-2497

Problem:
on 32bit kernel, when user space call WAITFORVSYNC,
we cannot send other command to framebuffer.

Solution:
remove lock in fbioctl as fb compat_ioctl do.
Our driver have locks to protect internal resources.

Verify:
verified on franklin.

Change-Id: I1789c09a7ea459aed4b782748847687c7f974526
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
5 years agodv: fix osd color matrix when dv enabled [1/1]
Yi Zhou [Fri, 23 Nov 2018 06:37:32 +0000 (14:37 +0800)]
dv: fix osd color matrix when dv enabled [1/1]

PD#SWPL-1804

Problem:
fix osd color matrix when dv enabled

Solution:
enable osd matrix when dv enabled

Verify:
verified on u212 dev board

Change-Id: I4b4206f4d8c447873f23a3a0066af0d0fa85e18c
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoosd: fix osd color error when osd hdr enabled [1/1]
pengcheng chen [Thu, 22 Nov 2018 04:54:06 +0000 (12:54 +0800)]
osd: fix osd color error when osd hdr enabled [1/1]

PD#SWPL-1804

Problem:
osd color error when osd hdr enabled

Solution:
div alpha when osd hdr enabled

Verify:
verified on u212 dev board

Change-Id: I1f5ea0db404d1956f454bd5da2532bded89626ee
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoosd: add meson-hwc repodution rate support [1/2]
pengcheng chen [Tue, 30 Oct 2018 06:55:40 +0000 (14:55 +0800)]
osd: add meson-hwc repodution rate support [1/2]

PD#SWPL-1810

Problem:
osd blend repodution rate not supported

Solution:
add meson-hwc repodution rate support

Verify:
verified on u212 dev board

Change-Id: Ied10393e240e8d3f2a1eefe17a2d4d3c965e3383
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agodts: TXL: defendkey: support secure upgrade check [1/1]
Zhongfu Luo [Fri, 23 Nov 2018 03:34:33 +0000 (11:34 +0800)]
dts: TXL: defendkey: support secure upgrade check [1/1]

PD#SWPL-2343

Problem:
TXL need to support secure upgrade check

Solution:
add defendkey support in all TXL dts

Verify:
TXL skt board verify pass

Change-Id: Idb81fa1f1b5a27e5c44dc961ceef94f1edfc06d9
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agohdmirx: optimize for audio fifo [1/1]
Hang Cheng [Wed, 14 Nov 2018 08:30:17 +0000 (16:30 +0800)]
hdmirx: optimize for audio fifo [1/1]

PD#SWPL-2114

Problem:
When change audio channel count on VG-877, the subpkts of skipped
middle channels are still carried, thus causing afifo overflow

Solution:
When afifo overflow, then store all audio subpkts(8ch)
into afifo, and output 8ch audio from afifo

Verify:
R321

Change-Id: I4b0933935d3a1aed20be10a7a8d3fe23c3a39323
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agodts: GXL: defendkey: support secure upgrade check [3/3]
Zhongfu Luo [Thu, 22 Nov 2018 06:12:59 +0000 (14:12 +0800)]
dts: GXL: defendkey: support secure upgrade check [3/3]

PD#SWPL-2100

Problem:
GXL need to support secure upgrade check

Solution:
add defendkey support in all GXL dts

Verify:
GXL skt board verify pass

Change-Id: I73b84b86f23f512ddc556b61f3a07d015c717e8c
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agoGXL: defendkey: support secure upgrade check [2/3]
Zhongfu Luo [Wed, 21 Nov 2018 10:14:23 +0000 (18:14 +0800)]
GXL: defendkey: support secure upgrade check [2/3]

PD#SWPL-2100

Problem:
GXL need to support secure upgrade check

Solution:
1.add dtb decrypt support
2.add 32bit defendkey support

Verify:
GXL skt board verify pass

Change-Id: I501967530b2a61d9b90c20241b82f92b00829453
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agoPM_SUSPEND: suspend: set wakeup reason to stick mem [2/2]
Hong Guo [Fri, 23 Nov 2018 02:34:07 +0000 (10:34 +0800)]
PM_SUSPEND: suspend: set wakeup reason to stick mem [2/2]

PD#SWPL-2287

Problem:
set wakeup reason to stick mem

Solution:
set wakeup reason to stick mem

Verify:
gxl,test pass

Change-Id: Iff6f1824ea4ac9ec12b8295d4283992fdac03b14
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoMerge "deinterface: temporary remove afbc support on chip after g12a [1/1]" into...
Jianxin Pan [Mon, 26 Nov 2018 03:25:05 +0000 (19:25 -0800)]
Merge "deinterface: temporary remove afbc support on chip after g12a [1/1]" into amlogic-4.9-dev

5 years agodts: aarch32: modify timer for aarch32 [1/1]
Hanjie Lin [Thu, 22 Nov 2018 07:50:33 +0000 (15:50 +0800)]
dts: aarch32: modify timer for aarch32 [1/1]

PD#SWPL-2383

Problem:
32bit_kernel VtsKernelLinuxKselftest module 1 fail

Solution:
modify timer for aarch32

Verify:
p321

Change-Id: I9ef79e927f3244223dbbb57bcc6155c1ffc8989c
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agodeinterlace: fix CMA layout adaptation di_cma_reserved [1/1]
wenfeng.guo [Tue, 20 Nov 2018 11:38:43 +0000 (19:38 +0800)]
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>
5 years agoRevert "arm: dts: tl1: add tl1 device tree fils [1/1]"
Jianxiong Pan [Fri, 23 Nov 2018 16:39:06 +0000 (00:39 +0800)]
Revert "arm: dts: tl1: add tl1 device tree fils [1/1]"

This reverts commit 32cfa235e3c9b543c396083068d107a800a93fdb.

Change-Id: I23d0e860bd858e1a9982151977524b178524842a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agodeinterface: temporary remove afbc support on chip after g12a [1/1]
huaihao.guo [Fri, 23 Nov 2018 02:31:02 +0000 (10:31 +0800)]
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>
5 years agoarm: dts: tl1: add tl1 device tree fils [1/1]
Bo Yang [Fri, 23 Nov 2018 07:35:33 +0000 (15:35 +0800)]
arm: dts: tl1: add tl1 device tree fils [1/1]

PD#172587

Problem:
Bringup TL1 support.

Solution:
Add tl1 device tree files to support tl1 boards.
This device tree files are copied from bringup branch:
bringup/amlogic-4.9/tl1-20181111

Verify:
The device tree files has been verified on bringup branch:
bringup/amlogic-4.9/tl1-20181111

Change-Id: Ie85f59a0293319a3511371ab69f3ce07f0fefed3
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
5 years agovdac: fix atv/dtv resume no signal issue [1/1]
Nian Jing [Fri, 23 Nov 2018 03:05:03 +0000 (11:05 +0800)]
vdac: fix atv/dtv resume no signal issue [1/1]

PD#SWPL-2351

Problem:
atv/dtv no signal when suspend after switch from hdmi

Solution:
disable vdac bandgap when suspend

Verify:
test pass on P321

Change-Id: I0449f0d9673f46928b8951249f5759a4a1f16562
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agovpp: fix p212 osd sdr2hdr luma too dark compile [1/1]
MingLiang Dong [Fri, 23 Nov 2018 06:28:11 +0000 (01:28 -0500)]
vpp: fix p212 osd sdr2hdr luma too dark compile [1/1]

PD#SWPL-1707

Problem:
{NTS}Manual,HDR-001-TC2 Failed step 8/12/16/20 VID
and GFX doesn't match

Solution:
add osd hdr2sdr convert table for 400nit on p212

Verify:
verify on p212

Change-Id: I16637652b6d07ba81b25f46c2684ff7ae3e1c68c
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agovpp: fix p212 osd sdr2hdr luma too dark [1/1]
MingLiang Dong [Mon, 19 Nov 2018 07:11:28 +0000 (02:11 -0500)]
vpp: fix p212 osd sdr2hdr luma too dark [1/1]

PD#SWPL-1707

Problem:
{NTS}Manual,HDR-001-TC2 Failed step 8/12/16/20 VID
and GFX doesn't match

Solution:
add osd hdr2sdr convert table for 400nit on p212

Verify:
verify on p212

Change-Id: I9a9dcf13ab0deaa8b676c5c409919367420b6d1b
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoramdump: fix a warning of cast [1/1]
Jianxiong Pan [Fri, 23 Nov 2018 03:28:38 +0000 (11:28 +0800)]
ramdump: fix a warning of cast [1/1]

PD#165764

Problem:
have a warning of the "ram" variable cast.

Solution:
add a "void *" to the ram variable.

Verify:
test locally.

Change-Id: I037a89a28e98ae8c8ab965e908877bf4a72d3ead
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agodtv_demod: fix dtv demod crash switch once every 2s [1/1]
wenfeng.guo [Wed, 21 Nov 2018 06:29:07 +0000 (14:29 +0800)]
dtv_demod: fix dtv demod crash switch once every 2s [1/1]

PD#SWPL-2293

Problem:
dtv demod switch once every 2s cause crash

Solution:
fix dtv demod crash switch once every 2s

Verify:
P321

Change-Id: Ibfd919a503e3dae41f51637cdff6e01ed27bac71
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
5 years agoavsync: tsync: fix the avsync problem [1/1]
live.li [Thu, 22 Nov 2018 02:05:53 +0000 (10:05 +0800)]
avsync: tsync: fix the avsync problem [1/1]

PD#SWPL-1158

Problem:
The video will become un-smooth after change
between several audio languages

Solution:
when apts and vpts distance is large then 60*90000
then set the tsync mode to vmaster and  set the tysnc
enable to 0

Verify:
P321

Change-Id: I7c7e32f49ca12645cf6a1aa58caeb968a9234c8c
Signed-off-by: live.li <live.li@amlogic.com>
5 years agoramdump: add ramdump support for ARM32 [1/1]
tao zeng [Thu, 22 Nov 2018 08:01:36 +0000 (16:01 +0800)]
ramdump: add ramdump support for ARM32 [1/1]

PD#165764

Problem:
ramdump is not enabled on ARM32

Solution:
Enable it and fix compatible with ARM64

Verify:
R311

Change-Id: I337ef019ecab05d25b7d9dc0cacab7a03149aa7b
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agoamvecm: pq: add dnlp/bri/contrast for tl1 [1/1]
MingLiang Dong [Thu, 22 Nov 2018 10:37:45 +0000 (05:37 -0500)]
amvecm: pq: add dnlp/bri/contrast for tl1 [1/1]

PD#172587

Problem:
dnlp/bri/contrast can not finetune

Solution:
1. add dnlp regisiter 10bit write
2. add brightness/contrast/sr for tl1

Verify:
verify on tl1

Change-Id: I90b363f57fbf2cd485e2acaddb5ce60a8715a47b
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoirblaster: add synchronous transmit [1/1]
Wencai You [Tue, 20 Nov 2018 14:12:16 +0000 (22:12 +0800)]
irblaster: add synchronous transmit [1/1]

PD#SWPL-2170

Problem:
cts fail
android.hardware.consumerir.cts.ConsumerIrTest#test_timing

Solution:
add synchronous transmit
when it returns the pattern has been transmitted

Verify:
verify on franklin

Change-Id: I7e490236e5effc13f81e4fab3a1c7fc10c5dcfb3
Signed-off-by: Wencai You <wencai.you@amlogic.com>
5 years agovrtc: vrtc time update for stick mem [2/2]
Hong Guo [Thu, 22 Nov 2018 03:06:58 +0000 (11:06 +0800)]
vrtc: vrtc time update for stick mem [2/2]

PD#174867

Problem:
vrtc time update for stick mem.

Solution:
vrtc time update for stick mem.

Verify:
g12a txl.

Change-Id: I65074422569370b253882a4e66fb771da10ccdbf
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agodts: r314: increase board dts file [2/3]
guotai.shen [Fri, 16 Nov 2018 06:15:25 +0000 (14:15 +0800)]
dts: r314: increase board dts file [2/3]

PD#SWPL-1978

Problem:
bring up board r314.

Solution:
increase board dts file

feature:
The Dts file with Einstein is identical except for the memory difference
R314 1.5G, Einstein 1G.

Verify:
Verified on txlx_t962x_r314  board.

Change-Id: I271cb92a9cbcab174fb0bb76cfbc8beff9c730d3
Signed-off-by: guotai.shen <guotai.shen@amlogic.com>
5 years agodts: the memory of the reserved 1MB was recovered. [1/1]
Nanxin Qin [Wed, 21 Nov 2018 03:36:37 +0000 (11:36 +0800)]
dts: the memory of the reserved 1MB was recovered. [1/1]

PD#SWPL-2250

Problem:
h265 & vp9 4K playback abnormal because HEVC FRONT &
VPU READ2 pollute the phy address of near 0x0.

Solution:
it's only a temporary modification, the real reason
needs to take more time fixed.

Verify:
U212

Change-Id: I3dcc47f8979960e95c89cf53fe10eadc1a7ae5ad
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agoionvideo: Add thread stop protection when the process exits [1/1]
Renjiang Han [Thu, 8 Nov 2018 06:45:50 +0000 (14:45 +0800)]
ionvideo: Add thread stop protection when the process exits [1/1]

PD#SWPL-1689

Problem:
The thread still exists when the process exits

Solution:
Check if the thread exits when the process exits

Verify:
local

Change-Id: I6d805da6bfa0df85b6d39d065c95eed49b3cb7da
Signed-off-by: Renjiang Han <renjiang.han@amlogic.com>
5 years agommc: fixup toshiba emmc secure discard [1/1]
Yonghui Yu [Thu, 8 Nov 2018 09:30:39 +0000 (17:30 +0800)]
mmc: fixup toshiba emmc secure discard [1/1]

PD#SWPL-1937

Problem:
secure discard and trim may cost 5mins on toshiba
"004GA0" emmc.

Solution:
using normal discard operation instead.

Verify:
W400

Change-Id: I7fd23867f8ae0af9192377de8f8c15609ef809ed
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
5 years agodeinterlace: fix kasan bug in di_task_handle [1/1]
Jihong Sui [Fri, 21 Sep 2018 02:03:15 +0000 (10:03 +0800)]
deinterlace: fix kasan bug in di_task_handle [1/1]

PD#173820

Problem:
kasan bug in di_task_handle

Solution:
delete cma_mutex because it has no effect

Verify:
P321

Change-Id: Ie6ca7973576e7350870c5466b54b38b490dff65e
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoddr: fix dmc_monitor register bit missmatch on G12A/G12B [1/1]
tao zeng [Wed, 21 Nov 2018 01:13:48 +0000 (09:13 +0800)]
ddr: fix dmc_monitor register bit missmatch on G12A/G12B [1/1]

PD#172256

Problem:
On G12A/G12B, bit for ddr0 protection 0 vilation is not same

Solution:
Fix bit missmatch problem

Verify:
U212

Change-Id: I5dca14c8bc96bdcb85dbe8bbd5a9a18157834bcf
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agohdmitx: fix wrong power uevent in suspend/resume [1/1]
Zongdong Jiao [Thu, 1 Nov 2018 08:29:04 +0000 (16:29 +0800)]
hdmitx: fix wrong power uevent in suspend/resume [1/1]

PD#SWPL-1931

Problem:
Wrong hdmi_power uevent in suspend/resume flow

Solution:
Remove current mode judgement

Verify:
R321

Change-Id: Ib36e8d6cb4988f7b2be91146b12e974c194526ca
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agobacklight: ldim: update usage for new spi driver [1/1]
Evoke Zhang [Fri, 2 Nov 2018 06:22:41 +0000 (14:22 +0800)]
backlight: ldim: update usage for new spi driver [1/1]

PD#SWPL-1603

Problem:
don't support old spi driver now

Solution:
update new spi driver api for ldim driver

Verify:
txlx r311

Change-Id: I4dff13e4cab5666a30488730e27c6275b933a922
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodts: dtsi: add dtsi for ab update [1/6]
Xindong Xu [Fri, 26 Oct 2018 06:29:30 +0000 (14:29 +0800)]
dts: dtsi: add dtsi for ab update [1/6]

PD#SWPL-1513

Problem:
ab update can not work on P

Solution:
add dtsi for ab update for P

Verify:
test pass in ampere

Change-Id: I6ff219170a16c0081fba7297110e8dfaadcff401
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
5 years agoDolbyFW: Dolby Firmware Protection Driver create [1/1]
Yan Wang [Thu, 30 Nov 2017 08:40:26 +0000 (16:40 +0800)]
DolbyFW: Dolby Firmware Protection Driver create [1/1]

PD#SWPL-739

Problem:
Dolby Firmware Protection Driver create.

Solution:
AXG support Dolby Firmware Protection.

Verify:
AXG S400

Change-Id: Id88ba3f99103f2978827a3394203f7eef6d889f4
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
5 years agoemmc: clean emmc reg val for probe [1/1]
Nan Li [Tue, 20 Nov 2018 03:43:26 +0000 (11:43 +0800)]
emmc: clean emmc reg val for probe [1/1]

PD#SWPL-2286

Problem:
emmc response crc error in emmc init.

Solution:
clean emmc reg val from uboot to kernel.

Verify:
w400

Change-Id: I6a4763187f18e9e284c887c5c788f3a88c8548ff
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agoarm64: dts: p230: add dvb module
yeping.miao [Fri, 31 Aug 2018 01:49:13 +0000 (09:49 +0800)]
arm64: dts: p230: add dvb module

PD#172865

Problem:
Customer requests a new release for linux dvb
Need enable dvb for QA testing

Solution:
Need enable dvb for QA testing

Verify:

Change-Id: Ib082c457d6f43ef4d6a5d16059a7e8ce068a332e
Signed-off-by: yeping.miao <yeping.miao@amlogic.com>
5 years agoreboot: reason: add reboot_reason quiescent [1/4]
Xindong Xu [Tue, 16 Oct 2018 06:41:30 +0000 (14:41 +0800)]
reboot: reason: add reboot_reason quiescent [1/4]

PD#SWPL-1887

Problem:
Android TV need reboot_reason quiescent

Solution:
add reboot_reason quiescent

Verify:
ampere

Change-Id: Ie5a748faae05be93c56722b7806df6179116a047
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
5 years agoclk: g12a/g12b: fix 32bit set mpll clk overflow [1/1]
Shunzhou Jiang [Fri, 16 Nov 2018 07:54:52 +0000 (15:54 +0800)]
clk: g12a/g12b: fix 32bit set mpll clk overflow [1/1]

PD#SWPL-1933

Problem:
32bit system clk overflow

Solution:
let mpll clock not overflow

Verify:
g12b

Change-Id: Ie1c7c611e637776348bb35a3e0c1624cee57716f
Signed-off-by: shunzhou.jiang <shunzhou.jiang@amlogic.com>
5 years agovdin: enable vdin0 urgent for T950 default [1/1]
Dezhi Kong [Wed, 14 Nov 2018 07:40:09 +0000 (15:40 +0800)]
vdin: enable vdin0 urgent for T950 default [1/1]

PD#TV-288

Problem:
There is flicker and jitter in HDMI

Solution:
enable vdin0 urgent for T950 default

Verify:
p321-T950

Change-Id: I17e472d7a47411093e9ade70a342807bed060a3a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
5 years agodeinterlace: fix di coverity & di_trace [1/1]
wenfeng.guo [Thu, 15 Nov 2018 08:11:08 +0000 (16:11 +0800)]
deinterlace: fix di coverity & di_trace [1/1]

PD#SWPL-2138

Problem:
Fix di coverity & di_trace

Solution:
fix di coverity & di

Verify:
T962X-R311

Change-Id: I9be91832eeed89ebd715276c75414e4e6da55240
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
5 years agoatv_demod: Output big "PO" sound when change source from ATV [1/3]
nengwen.chen [Mon, 12 Nov 2018 07:23:04 +0000 (15:23 +0800)]
atv_demod: Output big "PO" sound when change source from ATV [1/3]

PD#SWPL-318

Problem:
Output big "PO" sound when change source from ATV to others,
or switch between small window and full screen in ATV source.

Solution:
disable atv status early when exit ATV source.

Verify:
verified by p321

Change-Id: I82af7f8eaef181f1f72ef1f9d194e33c1efdcdb5
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agosdio: optimize sd & wifi TDMA [1/1]
Nan Li [Tue, 30 Oct 2018 11:33:47 +0000 (19:33 +0800)]
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>
5 years agodi: fix dump_status log error [1/1]
wenfeng.guo [Tue, 9 Oct 2018 10:03:28 +0000 (18:03 +0800)]
di: fix dump_status log error [1/1]

PD#174473

Problem:
dump_status log error

Solution:
fix dump_status log error

Verify:
verified in t962X_r311 board

Change-Id: I53cec7b93f6e2649bd527b8591995d54bec6450d
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
5 years agodrm: pq: G12A DRM support gamma and ctm setting [1/1]
Bencheng Jing [Sat, 28 Apr 2018 11:10:10 +0000 (19:10 +0800)]
drm: pq: G12A DRM support gamma and ctm setting [1/1]

PD#165492

Problem:
G12A DRM add gamma and ctm setting  support

Solution:
1. amvecm: add gamma apis for drm
2. drm: add gamma and ctm setting

Verify:
Verified on customer platfor

Change-Id: Iff5204ae7f719542463ac15140e471cd762c9c27
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agodv: set avi info limited range when dv output hdr mode [1/1]
Yi Zhou [Tue, 6 Nov 2018 11:43:35 +0000 (19:43 +0800)]
dv: set avi info limited range when dv output hdr mode [1/1]

PD#SWPL-1127

Problem:
when dv output hdr mode, the quantization range is default value
instead of limited range

Solution:
set quantization range to limited range in avi info

Verify:
t962e (txlx)

Change-Id: Ib4fbeb1c7efcedd7194143772ee5c663284a1c77
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agodts: modify the remaining 64bit dts to support 32bit [1/1]
Jianxiong Pan [Wed, 14 Nov 2018 02:11:35 +0000 (10:11 +0800)]
dts: modify the remaining 64bit dts to support 32bit [1/1]

PD#SWPL-2046

Problem:
some of the remaining 64bit boards do not support 32bit.

Solution:
modify the dts to support 32bit.

Verify:
axg, g12a, g12b, gxl, gxm, txl, txlx.

Change-Id: I951f8d32b18243a64e2abc5008bbb015c2e21e7a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agomedia: fix some coverity error: [1/1]
Peng Yixin [Tue, 13 Nov 2018 07:21:30 +0000 (15:21 +0800)]
media: fix some coverity error: [1/1]

PD#SWPL-2053

Problem:
Coverity detected some code defects.

Solution:
Fixed these code defects.

Verify:
Verified u212

Change-Id: Ie3c0907c7ee3db94f65f58aa5d5c96812a7fe38c
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
6 years agomedia: remap the addr to prevent crash on the 32bit & 2G board [1/1]
Nanxin Qin [Thu, 25 Oct 2018 02:42:17 +0000 (10:42 +0800)]
media: remap the addr to prevent crash on the 32bit & 2G board [1/1]

PD#SWPL-1909

Problem:
mem rw exception caused crashed.

Solution:
1. add mapping the highmem address by the func vmap().
2. remove the flag CODEC_MM_FLAGS_CPU if not necessary.

Verify:
p212, w400

Change-Id: I982c775d7c009335cae5802f0eb6287d22037db6
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
6 years agodts: change CMA layout [1/1]
tao zeng [Fri, 9 Nov 2018 04:10:49 +0000 (12:10 +0800)]
dts: change CMA layout [1/1]

PD#SWPL-1909

Problem:
On 32bit kernel, codec cma is located in normal zone by
"alloc-ranges" parameter with large size. This takse up
memory space for kernel and drivers. Sometimes we can see
memory allocation fail log but there are still enought
free pages. But most of these pages are CMA pages.

Solution:
Move codec cma location to high memzone. On 32bit, low
768MB memory is normal zone.
This change also correct first 1MB memory lost problem
for chips later than TXLX

Verify:
P212

Change-Id: I4592d34d08ee4dbb6700bbbfc4e0fadaceab0310
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agodeinterface: add afbc support on g12a and txlx [1/1]
huaihao.guo [Fri, 2 Nov 2018 11:10:19 +0000 (19:10 +0800)]
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>
6 years agothermal: sensor: fix thermal disabled mode issue [1/1]
Huan Biao [Thu, 15 Nov 2018 07:24:23 +0000 (15:24 +0800)]
thermal: sensor: fix thermal disabled mode issue [1/1]

PD#SWPL-2130

Problem:
tsensor driver update thermal event when mode disabled

Solution:
fix tsensor disable mode issue

Verify:
A311D W400 pass

Change-Id: If9e3d3ea15732a0efbd8314003b27bc0bdf3e476
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
6 years agoamvecm: overscan: fix video local play, screen mode set error [1/1]
MingLiang Dong [Thu, 11 Oct 2018 03:20:17 +0000 (23:20 -0400)]
amvecm: overscan: fix video local play, screen mode set error [1/1]

PD#SWPL-206

Problem:
overscan set error when local play

Solution:
overscan don't set at vpp

Verify:
verify on txlx

Change-Id: Ifd4ad4f5fcdb9fbc7ad05a540d0ed11b24d4ca66
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agotsync: tsync change the apts set code [1/2]
live.li [Wed, 14 Nov 2018 02:15:00 +0000 (10:15 +0800)]
tsync: tsync change the apts set code [1/2]

PD#SWPL-1774

Problem:
DD program has avysnc problem over one night play

Solution:
fix the apts set bug

Verify:
p321

Change-Id: I0f6a5b47d3e3171a3dd8fa9a0b721cd11ec20b9e
Signed-off-by: live.li <live.li@amlogic.com>
6 years agohdmitx: remove a wrong Y422 format judgement [1/1]
Zongdong Jiao [Fri, 9 Nov 2018 06:57:29 +0000 (14:57 +0800)]
hdmitx: remove a wrong Y422 format judgement [1/1]

PD#IPTV-55

Problem:
When connect to a Samsung TV(support 4k60 422 12bit), get a wrong
0 of 'echo 2160p60hz422,12bit > valid_mode'

Solution:
Remove a wrong Y422 format judgement

Verify:
P212

Change-Id: Ic0f2cefc1e0893390ac38298b55272877d81e04b
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
6 years agohdmitx: enable repeater_tx in r321/atom dts [2/3]
Zongdong Jiao [Sat, 29 Sep 2018 10:16:08 +0000 (18:16 +0800)]
hdmitx: enable repeater_tx in r321/atom dts [2/3]

PD#SWPL-1303

Problem:
For TXLX/T962E/R321 cases, there are both HDMI TX and RX.
Should consider it as repeater.

Solution:
Enable repeater_tx in r321/atom dts
Also, add a missing ksv_lists[] clear.

Verify:
r321/atom

Change-Id: I7b512c34123481380220f9262466fde56b0ae6e3
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
6 years agoaudio: fix audio driver del_timer BUG_ON crash issue [1/1]
Jian Xu [Wed, 7 Nov 2018 14:00:44 +0000 (22:00 +0800)]
audio: fix audio driver del_timer BUG_ON crash issue  [1/1]

PD#SWPL-972

Problem:
    audio crash when ATV switch channel long time burning test

Solution:
    there is a risk to fetch the timer lock. when input stop, stop_timer
    will call del_timer, at the same time the function
    "aml_i2s_hrtimer_callback" is waiting for the timer lock,after
    stop_timer release the lock,"aml_i2s_hrtimer_callback" get the
    lock and call mod_timer again, which will set the timer to pending
    status. It will cause the next  "start input" stage,add_timer will
    trigger BUG_ON.Now we put the lock before the active status
    checking then we will not touch the timer.

Verify:
    Need burning test

Change-Id: I1fb66903a4d31e9491ac0533e477e1597575d4cf
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
6 years agoarm64: dts: g12a: fine-tune voltage OPP [1/1]
Hong Guo [Fri, 9 Nov 2018 07:18:20 +0000 (15:18 +0800)]
arm64: dts: g12a: fine-tune voltage OPP [1/1]

PD#165143

Probleļ¼š
fine-tune voltage OPP

Solution:
fine-tune voltage OPP

Verify:
G12A/G12B,PASS

Change-Id: I0b3fb0e4624e2ddfa635c8225a740ed7a8ff3e51
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
6 years agoarm: dts: gxl: replace watchdog with new version [1/1]
Bo Yang [Sat, 3 Nov 2018 02:22:02 +0000 (10:22 +0800)]
arm: dts: gxl: replace watchdog with new version [1/1]

PD#SWPL-1600

Problem:
The current watchdog is not the upstream standard driver.

Solution:
Replace watchdog device tree to use the standard watchdog driver.

Verify:
S905X P215/P212 Android-32bit Kernel-32bit.

Change-Id: I972c8ebb0158caa2df393d9a2d687d9298181102
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agoddr: detect bandwidth except mali and reduce bandwidth [2/3]
wenbiao zhang [Fri, 12 Oct 2018 07:28:54 +0000 (15:28 +0800)]
ddr: detect bandwidth except mali and reduce bandwidth [2/3]

PD#SWPL-122

Problem:
ddr bandwidth is tightly in many cases, such as HDR/4K video playing,
and then refresh osd at the same time

Solution:
in most cases the problem is refreshing osd when bandwidth tightly,
so detect ddr bandwidth usage except mali and reduce it when it is tightly

Verify:
verify by p321/r311

Change-Id: Ia594f08dbe9a8a7a8d78b5104c93bddaa8229c0b
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
6 years agodts: fix some errors on g12b_w400 for 32bit [1/1]
Jianxiong Pan [Wed, 7 Nov 2018 07:27:43 +0000 (15:27 +0800)]
dts: fix some errors on g12b_w400 for 32bit [1/1]

PD#SWPL-1010

Problem:
some errors of reg address.

Solution:
modify to support 32bit.

Verify:
w400.

Change-Id: Ia35e95ac59084a9c57a9a4ab32fecb64f78c772e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agoosd: add hdr mode set via meson-hwc support [1/1]
pengcheng chen [Mon, 29 Oct 2018 07:08:04 +0000 (15:08 +0800)]
osd: add hdr mode set via meson-hwc support [1/1]

PD#163001

Problem:
hdr mode set not supported

Solution:
add hdr mode set via meson-hwc support

Verify:
verified in u200 board

Change-Id: Iaad75982003870f9469e4155aedb9c13349b60b9
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agoosd: uboot logo scaler down in 4k issue [1/1]
pengcheng chen [Mon, 5 Nov 2018 08:59:10 +0000 (16:59 +0800)]
osd: uboot logo scaler down in 4k issue [1/1]

PD#163001

Problem:
uboot logo scaler down in 4k

Solution:
uboot logo size adjust when vout changed before
first page flip command

Verify:
verified in u200 board

Change-Id: Ic23e695fe716811eaf3faa62069c808a03c26f9d
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agosmartcard: fix defects for coverity [1/1]
Jianxiong Pan [Fri, 9 Nov 2018 09:02:52 +0000 (17:02 +0800)]
smartcard: fix defects for coverity [1/1]

PD#166793

Problem:
conditional statement not is valid.

Solution:
change type u32 to type int.

Verify:
module owner confirmed.

Change-Id: I9fdfa444b29104c7afc9b7a380748ebe82ed390b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agoosd: osd shift-workaround one line fixed [1/1]
pengcheng chen [Thu, 1 Nov 2018 12:22:29 +0000 (20:22 +0800)]
osd: osd shift-workaround one line fixed [1/1]

PD#163001

Problem:
current osd code have one line missing issue in meson-hwc

Solution:
osd blend used +1 line to fix shift issue,
and used freescale to cut it.

Verify:
verified in u200 board

Change-Id: I2354742d456327d9f1aa5713ee782648895034db
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agoosd: meson-hwc screen always blank [1/1]
pengcheng chen [Wed, 31 Oct 2018 11:32:59 +0000 (19:32 +0800)]
osd: meson-hwc screen always blank [1/1]

PD#163001

Problem:
TL1 code merged caused meson-hwc screen always blank

Solution:
fix meson-hwc screen always blank

Verify:
verified in u200 board

Change-Id: I0a9371b42546e2713e6dcb926e7c94598e29da1d
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agovout: add bist test on vout [1/1]
Nian Jing [Thu, 1 Nov 2018 12:55:47 +0000 (20:55 +0800)]
vout: add bist test on vout [1/1]

PD#SWPL-1630

Problem:
add cvbs/hdmi/lcd bist test on vout

Solution:
add cvbs bist test on vout

Verify:
test pass on u200/p212

Change-Id: Ie61d9b0d63649ec3022fd720068b689f4d721e3b
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
6 years agocec: for support multi-logical address [1/1]
Yong Qin [Tue, 6 Nov 2018 01:31:51 +0000 (09:31 +0800)]
cec: for support multi-logical address [1/1]

PD#SWPL-418

Problem:
cec: support multi-logical address

Solution:
if working on multi-logical address, enable two ip
1.enable cec_a, cec_b
2.enable two interrupt
3.enable two pinmux oa_7, ao_8
4.cec_a only send all msg
5.cec_b only receive all msg
6.discard ceca broadcast msg

Verify:
r311
r321
p321

Change-Id: I1dc93429876ede951657102bcd7d41a500946719
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
6 years agoatv_demod: pc bad value in panic after change source [1/1]
nengwen.chen [Thu, 8 Nov 2018 11:57:53 +0000 (19:57 +0800)]
atv_demod: pc bad value in panic after change source [1/1]

PD#SWPL-1636

Problem:
1.pc bad value in kernel panic after change source.
2.System crash down when change source.

Solution:
optimize atv demod code.

Verify:
verified by p321

Change-Id: I655d1253950475dfb49ae1b174597797000adb73
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
6 years agovlock: optimize vlock process for interlace input [1/1]
Dezhi Kong [Tue, 30 Oct 2018 09:30:48 +0000 (17:30 +0800)]
vlock: optimize vlock process for interlace input [1/1]

PD#SWPL-743

Problem:
The picthre is shaking when press DVD remote
control in AV source

Solution:
add delay work for vlock process interlace input

Verify:
T962X-R311

Change-Id: Ic2ed077e0684ecc6b0990336e7a4ab7022931886
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
6 years agoscript: segments can appear in descriptive information [1/1]
Jianxiong Pan [Fri, 9 Nov 2018 11:22:53 +0000 (19:22 +0800)]
script: segments can appear in descriptive information [1/1]

PD#174488

Problem:
segmentation in descriptive information is reasonable and
should be allowed.

Solution:
modify the check codes.

Verify:
test locally.

Change-Id: I5e34ef2dd26077bb54adee7597a1aa3c789566c9
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agovccktest: add vccktest dts for buildroot [1/1]
Huan Biao [Fri, 9 Nov 2018 09:09:54 +0000 (17:09 +0800)]
vccktest: add vccktest dts for buildroot [1/1]

PD#174851

Problem:
buildroot no vccktest dts

Solution:
add vccktest dts

Verify:
g12a/g12b test pass

Change-Id: I6907fa3cfc087ac84395956ddbda678f7a5e3f4b
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
6 years agodts: modified atom.dts support 32bit. [1/1]
Jianxiong Pan [Fri, 9 Nov 2018 07:11:30 +0000 (15:11 +0800)]
dts: modified atom.dts support 32bit. [1/1]

PD#SWPL-1942

Problem:
add atom.dts support 32bit.

Solution:
modified length of reg, mem etc.

Verify:
r321

Change-Id: I2a518af2a76b8cb17ded68e994c3065072b92b9c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agodts: add isp and galcore support to w400-buildroot [1/2]
Jun Zhang [Wed, 7 Nov 2018 07:59:16 +0000 (15:59 +0800)]
dts: add isp and galcore support to w400-buildroot [1/2]

PD#SWPL-1819

Problem:
lack of isp and galcore support in buildroot dts

Solution:
merge configurations from skt board

Verify:
local

Change-Id: I5936341fc24719f345c7707e16e692ae292ca6fe
Signed-off-by: Jun Zhang <jun.zhang@amlogic.com>
6 years agovideo: merged from A wait AFBC idle when report state [1/1]
Zhi Zhou [Wed, 27 Jun 2018 07:44:45 +0000 (15:44 +0800)]
video: merged from A wait AFBC idle when report state [1/1]

PD#169128:

[Problem]
When quick switch video between 2 vsync isr, the AFBC may read wrong
data, and green screen or distortion image occurs.

[Solution]
1. Add delay when get video layer state, to make sure afbc is stopped
2. Remove ambiguous log print

[Platform]
Blanche
BranchTo: NONE

[Test]

Change-Id: I94ccf25373f29ce188829ab1b7db6f9df1fb49ad
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
6 years agomm: clear MMU mapping for secure os memory [1/1]
tao zeng [Tue, 6 Nov 2018 06:02:57 +0000 (14:02 +0800)]
mm: clear MMU mapping for secure os memory [1/1]

PD#SWPL-1631

Problem:
If Cortex A73 accessed memory near secure memory range, an
SError may occur due to prefetch of A73 core.

Solution:
Add clear mmu property for arm platform

Verify:
W400

Change-Id: I2e396f77772aeea231d0bf5f38a81440117ecdd6
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agohdmirx: fix sound noise when switch hdmi port [1/1]
yicheng shen [Thu, 1 Nov 2018 08:27:19 +0000 (04:27 -0400)]
hdmirx: fix sound noise when switch hdmi port [1/1]

PD#SWPL-1224

Problem:
There will sound noise when switch hdmi port.

Solution:
Remove bandgap off when close port.

Verify:
Locally

Change-Id: Ibd9be3aa6f32072918f7b1ec151463452b2b879a
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
6 years agoaudio: fix errors of coverity [1/1]
jiejing.wang [Mon, 22 Oct 2018 11:05:23 +0000 (19:05 +0800)]
audio: fix errors of coverity [1/1]

PD#166793

Problem:
coverity check errors of format

Solution:
fix err

Verify:
verify locally

Change-Id: Ie3a404fe50c5bdaa6a9cf4a4194659502defdbd2
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
6 years agoadc_key: delete early_suspend code [1/1]
Yingyuan Zhu [Fri, 26 Oct 2018 12:14:06 +0000 (20:14 +0800)]
adc_key: delete early_suspend code [1/1]

PD#OTT-144

Problem:
after the dark screen, the adc button does not work

Solution:
The adc_keypad introduces earlysuspend for MID project:
after the LCD backlight disable, prevent the user from
pressing the key to open some applications and not complete standby.
Now check the adc button using the "system_freezable_wq" system queue,
which replaces the function of the code.So can remove it.

Verify:
g12b socket

Change-Id: I2333ba3dc406d2624962d116293a0b9d36f97534
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>