Commit Graph

648292 Commits

Author SHA1 Message Date
pengcheng chen
40bfe9715a 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>
2018-11-26 22:00:07 -08:00
pengcheng chen
4073682721 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>
2018-11-26 21:33:22 -08:00
wenfeng.guo
bf1a301bb7 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>
2018-11-27 12:37:23 +08:00
Zhiwei Yuan
19712d403c 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>
2018-11-26 19:28:10 -08:00
Nian Jing
e26609d428 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>
2018-11-26 18:48:41 -08:00
ruixuan.li
8e93bc9f2a 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>
2018-11-26 18:30:20 -08:00
Bencheng Jing
3553a6cd0a 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>
2018-11-26 11:41:48 -08:00
nengwen.chen
cba247e20b 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>
2018-11-27 02:48:56 +08:00
Xing Wang
3710b197c9 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>
2018-11-27 01:24:54 +08:00
Ruixuan Li
a8d0414ebf 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>
2018-11-26 07:46:50 -08:00
Sunny Luo
4729baecba 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>
2018-11-26 04:23:33 -08:00
Yue Wang
752949d46a 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>
2018-11-26 04:23:13 -08:00
Zhongfu Luo
5f5f0d4a9d 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>
2018-11-26 03:45:27 -08:00
Bichao Zheng
543691fb7d 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>
2018-11-26 03:19:50 -08:00
Xingyu Chen
75941411a8 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>
2018-11-26 03:16:27 -08:00
Jian Hu
cf9676d4ff 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>
2018-11-26 01:58:48 -08:00
Xingyu Chen
d802bafaa7 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>
2018-11-26 01:49:58 -08:00
sky zhou
d493508828 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>
2018-11-25 23:54:58 -08:00
Yi Zhou
130e79eb14 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>
2018-11-25 23:42:58 -08:00
pengcheng chen
eda95208fc 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>
2018-11-25 23:41:38 -08:00
pengcheng chen
efc2d96311 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>
2018-11-25 23:33:25 -08:00
Zhongfu Luo
e1e1b5a84c 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>
2018-11-25 21:00:52 -08:00
Hang Cheng
06205277b8 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>
2018-11-25 20:31:58 -08:00
Zhongfu Luo
f069b72d3d 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>
2018-11-25 20:26:47 -08:00
Zhongfu Luo
1864e7dcf4 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>
2018-11-25 20:24:51 -08:00
Hong Guo
fbceeb73ca 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>
2018-11-25 20:09:47 -08:00
Jianxin Pan
6b24784c72 Merge "deinterface: temporary remove afbc support on chip after g12a [1/1]" into amlogic-4.9-dev 2018-11-25 19:25:06 -08:00
Hanjie Lin
6b165f762d 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>
2018-11-25 18:46:40 -08:00
wenfeng.guo
e6c27bb8b1 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>
2018-11-25 18:15:21 -08:00
Jianxiong Pan
eb0585ff90 Revert "arm: dts: tl1: add tl1 device tree fils [1/1]"
This reverts commit 32cfa235e3.

Change-Id: I23d0e860bd858e1a9982151977524b178524842a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-11-24 00:46:29 +08:00
huaihao.guo
69b34885a1 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>
2018-11-23 16:10:01 +08:00
Bo Yang
32cfa235e3 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>
2018-11-23 00:03:22 -08:00
Nian Jing
85db5ff49c 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>
2018-11-23 00:00:36 -08:00
MingLiang Dong
95a57200d4 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>
2018-11-23 01:28:11 -05:00
MingLiang Dong
c5ea5368e1 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>
2018-11-22 21:54:55 -08:00
Jianxiong Pan
0fdc250927 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>
2018-11-23 12:31:16 +08:00
wenfeng.guo
4628782844 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>
2018-11-22 18:55:28 -08:00
live.li
97aec8956f 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>
2018-11-22 18:04:31 -08:00
tao zeng
fdcfc036db 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>
2018-11-22 17:52:23 -08:00
MingLiang Dong
204b1a4caa 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>
2018-11-22 05:57:07 -08:00
Wencai You
08ce5f4781 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>
2018-11-22 02:56:23 -08:00
Hong Guo
648fc94783 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>
2018-11-22 00:41:48 -08:00
guotai.shen
459b677e49 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>
2018-11-22 00:27:24 -08:00
Nanxin Qin
c1f571303d 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>
2018-11-21 18:06:38 -08:00
Renjiang Han
00c604ba1d 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>
2018-11-20 19:25:28 -08:00
Yonghui Yu
29e995bb40 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>
2018-11-20 19:25:00 -08:00
Jihong Sui
8b30813578 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>
2018-11-20 19:23:12 -08:00
tao zeng
be8267a8a4 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>
2018-11-20 19:21:38 -08:00
Zongdong Jiao
930be2c9dc 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>
2018-11-20 19:20:54 -08:00
Evoke Zhang
cc84915acf 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>
2018-11-21 09:45:09 +08:00