platform/kernel/linux-amlogic.git
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>
6 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>
6 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>
6 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>
6 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>
6 years agoemmc: Modify delay of command line to 1/4 command window [1/1]
Ruixuan Li [Wed, 31 Oct 2018 06:41:58 +0000 (14:41 +0800)]
emmc: Modify delay of command line to 1/4 command window [1/1]

PD#SWPL-1184

Problem:
emmc data crc error

Solution:
Modify delay of command line

Verify:
A113d_s400

Change-Id: I7211da9da75569aebaf0c2790e3134e88a6f3077
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
6 years agoaarch64: enable swp software emulation [1/1]
Jianxin Pan [Tue, 30 Oct 2018 10:08:09 +0000 (18:08 +0800)]
aarch64: enable swp software emulation [1/1]

PD#IPTV-14

Problem:
3D Benchmark.apk crash

Solution:
Add swp instruction support on armv8

Verify:
local

Change-Id: Ice2bef5c0ef7110b3adb4af811f99d4bfca1e8dc
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
6 years agocec: revert changesy [1/1]
Lei Qian [Mon, 5 Nov 2018 12:22:13 +0000 (20:22 +0800)]
cec: revert changesy [1/1]

PD#SWPL-418

Problem:
TXL can't bootup

Solution:
revert it

Verify:
p321

Revert "cec: for support multi-logical address [2/2]"
This reverts commit cc185dc81dc63317c8498e7fcc4726c6f48ed03d.

Revert "cec: for support multi-logical address [1/2]"
This reverts commit b7922078ea9e7a8ce6cfb7592fb5293a5fd3e9a2.

Change-Id: I1cef0ac194464d75ffff3fe765f15b5f944406b2
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
6 years agomm: clear MMU mapping for secure os memory [1/1]
tao zeng [Fri, 2 Nov 2018 11:10:16 +0000 (19:10 +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:
Remove mmu maping of secure memory range.
Note: must add clear-map and set clear range property in DTS

Verify:
W400

Change-Id: I718919c1b4873584eb87e00332622a1626672808
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agocodec_mm: add reserved & cma support for 4.9. [1/1]
Zhi Zhou [Fri, 14 Sep 2018 07:32:06 +0000 (15:32 +0800)]
codec_mm: add reserved & cma support for 4.9. [1/1]

PD#172483

Problem:
Add reserved & cma support for 4.9.

Solution:
1. add tvp padding, for test.
2. add no-cma-tvp,to force not used cma for tvp.
3. add nomap for reserved memroy detective.
4. add res & cma two mem region on same board.
5. add clear-map property for codec_mm_cma.

Verify:
Test this function with Android_O-MR1(GTVS) & ExoPlayer.

Change-Id: Ib20e0e9bc4725afb271de97543ce5ebf3bfcfb29
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
6 years agoMerge "audio: solve av out output level low issue [2/2]" into amlogic-4.9-dev
Tao Zeng [Mon, 5 Nov 2018 08:33:19 +0000 (00:33 -0800)]
Merge "audio: solve av out output level low issue [2/2]" into amlogic-4.9-dev

6 years agoemmc: ffu: add emmc ffu update support [1/1]
Nan Li [Mon, 15 Oct 2018 09:22:12 +0000 (17:22 +0800)]
emmc: ffu: add emmc ffu update support [1/1]

PD#174683

Problem:
kernel emmc ffu is not supported.

Solution:
add emmc ffu update support with mmc untils.

Verify:
p212

Change-Id: Ice9ffb174c061e3f114b0b68af290492808b0a5e
Signed-off-by: Nan Li <nan.li@amlogic.com>
6 years agocec: for support multi-logical address [2/2]
Yong Qin [Wed, 26 Sep 2018 01:14:40 +0000 (09:14 +0800)]
cec: for support multi-logical address [2/2]

PD#SWPL-418

Problem:
cec: support multi-logical address

Solution:
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

Change-Id: I8f983ed6ad329ca5ec0144587a7ad1f03ad68031
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
6 years agocec: for support multi-logical address [1/2]
Yong Qin [Wed, 26 Sep 2018 01:12:30 +0000 (09:12 +0800)]
cec: for support multi-logical address [1/2]

PD#SWPL-418

Problem:
cec: for support mult-logical address

Solution:
1.add interface: remove logical address
2.for support multi-logical address

Verify:
r311 r321

Change-Id: I9ea8b1004f43fb84855d41dd684c117fa5cbd7ae
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
6 years agodts: sync difference between arch32 and arch64 [1/1]
Jianxiong Pan [Mon, 29 Oct 2018 06:44:26 +0000 (14:44 +0800)]
dts: sync difference between arch32 and arch64 [1/1]

PD#SWPL-959

Problem:
sync arch32 and arch64 dts.

Solution:
sync arch32 and arch64 dts.

Verify:
r311

Change-Id: I493c83f38899628ac65c637e81f053a7c22bd24f
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agodts: support 32bit for gxl_p230 [1/1]
Jianxiong Pan [Mon, 29 Oct 2018 08:25:21 +0000 (16:25 +0800)]
dts: support 32bit for gxl_p230 [1/1]

PD#SWPL-1116

Problem:
add support 32bit for gxl_p230.

Solution:
add 32bit dts for gxl_p230.

Verify:
gxl_p230

Change-Id: Icc62c45e7bd36e8248ad0bb11a67a0151cf7ea34
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agodisplay: dts modify [1/1]
guotai.shen [Fri, 2 Nov 2018 08:40:49 +0000 (16:40 +0800)]
display: dts modify [1/1]

PD#TV-405

Problem:
Should create a 720p ui display mode on p321.

Solution:
Created a folder named t962_p321_720p under device/amlogic
and modified some variate.
The diffs that compare with txl_t962_p321.dts
amlogic-dt-id = "txl_p321_v1_720p";
size = <0x400000>;
alloc-ranges = <0x3fc00000 0x400000>;
mem_size = <0x00400000 0x00b00000 0x00100000>;
/* uboot logo,fb0/fb1 memory size,if afbcd fb0=0x0b51000*/
display_mode_default = "720p60hz";
/*1280*720*4*3 = 0xA8C000*/
display_size_default = <1280 720 1280 2160 32>;
logo_addr = "0x3fc00000";

Verify:
p321

Change-Id: Ia397cd6cbcf4fdd9fb139259099805bdad90b92f
Signed-off-by: Guotai Shen <guotai.shen@amlogic.com>
6 years agodts: support 32bit for g12b_w400 [1/1]
Jianxiong Pan [Thu, 25 Oct 2018 06:31:43 +0000 (14:31 +0800)]
dts: support 32bit for g12b_w400 [1/1]

PD#SWPL-1010

Problem:
add support 32bit for g12b_w400

Solution:
add 32bit dts of g12b_w400.

Verify:
g12b_a311d_w400

Change-Id: I30ac9cb80721b04a13532ceb5c14f76bdf1cc575
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agohdmitx: add feature limited [3/3]
Zongdong Jiao [Thu, 1 Nov 2018 11:25:52 +0000 (19:25 +0800)]
hdmitx: add feature limited [3/3]

PD#174490

Problem:
Lack feature limited for certain types

Solution:
Add feature limited for certain types

Verify:
TBD

Change-Id: Ifbe104fe98fe1e3875f2f1af7793348856275b92
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
6 years agochipid: meson: add ops id for S805Y [1/2]
Qiufang Dai [Tue, 23 Oct 2018 09:04:20 +0000 (17:04 +0800)]
chipid: meson: add ops id for S805Y [1/2]

PD#SWPL-940

Problem:
Need ops id api for S805Y

Solution:
Add ops id api

Verify:
s805y_p215

Change-Id: I179f87acbc3f57456e0359bd0d502c58cc3a9b9c
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agoaudio: solve av out output level low issue [2/2]
Lianlian Zhu [Thu, 18 Oct 2018 12:01:18 +0000 (20:01 +0800)]
audio: solve av out output level low issue [2/2]

PD#SWPL-766

Problem:
  av output level only 100mv

Solution:
  change the channel map for av out,
  use orignal pcm for output w/o volume
  control and postprocess.

Verify:
  verified by r311

Change-Id: Ibeaf0ecfda03f81ff6061dc9c4975049452ba659
Signed-off-by: Lianlian Zhu <lianlian.zhu@amlogic.com>
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
6 years agoUSB: host: tuning disconnect threshold on g12a/g12b [2/2]
qi duan [Thu, 18 Oct 2018 10:21:57 +0000 (18:21 +0800)]
USB: host: tuning disconnect threshold on g12a/g12b [2/2]

PD#174736

Problem:
Some usb device may disconnect when handshake

Solution:
tuning disconnect threshold when usb host initial
now default is 0x24, only three value can tuning, 0x2c,0x34,0x3c
we set 0x34 now

Verify:
Google estelle boards which return from factory
no side effect on refernce u200 board

Change-Id: I71d974a6bac43452b20bd7f2a6827d3a46fa39fb
Signed-off-by: qi duan <qi.duan@amlogic.com>
6 years agocrypto: Enable ARMCE and set aes dma to slow mode [1/1]
Matthew Shyu [Tue, 30 Oct 2018 06:48:07 +0000 (14:48 +0800)]
crypto: Enable ARMCE and set aes dma to slow mode [1/1]

PD#SWPL-574

Problem:
xfrm test failed randomly in VtsKernelNetTest
due to random failed in gcm(aes)

Solution:
Use ARMCE for small sized crypto processing and use
copy mode when HW dma is used

Verify:
verified on ampere

Change-Id: I31cd75cfcd85da9fc9e9640135c7ce76623ef715
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
6 years agolcd: lcd_extern: fix get invalid extern_driver null pointer mistake [1/1]
Evoke Zhang [Tue, 30 Oct 2018 07:25:31 +0000 (15:25 +0800)]
lcd: lcd_extern: fix get invalid extern_driver null pointer mistake [1/1]

PD#SWPL-1152

Problem:
There is a null pointer mistake in lcd_extern_get_driver for invalid driver

Solution:
add null pointer protection

Verify:
txlx r311

Change-Id: I171d10ab26e6c298b8eb4065dfa054a237bfd53b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agodv: fix the green screen when changing dv mode [1/1]
Yi Zhou [Tue, 30 Oct 2018 06:34:21 +0000 (14:34 +0800)]
dv: fix the green screen when changing dv mode [1/1]

PD#SWPL-1029

Problem:
when changing dv mode from standard to ll mode.
wn tp vks should be enabled

Solution:
enable wn tp vks when setting ll mode

Verify:
t962e (txlx)

Change-Id: I3b399132cf1a3c7b1799f36f9bc3a0696883029f
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agodv: set stb core run_mode_delay as 0 [1/1]
Yi Zhou [Tue, 30 Oct 2018 08:56:00 +0000 (16:56 +0800)]
dv: set stb core run_mode_delay as 0 [1/1]

PD#SWPL-781

Problem:
when starting to play video, the manu bar shakes

Solution:
stb core don't need run mode delay.

Verify:
t962e (txlx)

Change-Id: I22ba5d778eedd72f87b4c687b38acf1b8c6d6fc9
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agomm: exclude free cma pages when calculate watermark [1/1]
tao zeng [Thu, 1 Nov 2018 02:18:16 +0000 (10:18 +0800)]
mm: exclude free cma pages when calculate watermark [1/1]

PD#SWPL-1210

Problem:
Some drivers(eth/wifi) occasionally can't allocate memory under
atomic context. From mem status print, there are enough free
pages but most of them are CMA.

Solution:
Exclude free cma pages when calculate water mark. This can push
kswapd/compaction work more aggressive.

Verify:
P212

Change-Id: Ia723f21c0316eff1a38e759ff9f044bb59aa8efa
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agodts: GVSDK: modify loopback and led device name [1/1]
Renjun Xu [Wed, 19 Sep 2018 10:56:24 +0000 (18:56 +0800)]
dts: GVSDK: modify loopback and led device name [1/1]

PD#173996

Problem:
1. to support hw loopback channel 2,3 for GVSDK.
2. led is31fl32xx device name register fail.

Solution:
1. change boolback to channel 2,3
2. register led is31fl32xx name success.

Verify:
S400_GVSDK/S420_GVSDK

Change-Id: Ie1bbc01c4624fd1e2e2662c4d9c876e56c301a99
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
6 years agoMerge "mm: make sure the gtp flag is low default [1/1]" into amlogic-4.9-dev
Tao Zeng [Wed, 31 Oct 2018 04:12:02 +0000 (21:12 -0700)]
Merge "mm: make sure the gtp flag is low default [1/1]" into amlogic-4.9-dev

6 years agodts: emmc: uboot enable emmc config [2/3]
yuegui.he [Wed, 17 Oct 2018 12:54:36 +0000 (20:54 +0800)]
dts: emmc: uboot enable emmc config [2/3]

PD#SWPL-736

Problem:
The s400 emmc platform uboot cannot be loaded
into kernel normally

Solution:
enable enable emmc node in dtb by fdt command.
    and modify malloc max size to 18M.

Verify:
s400

Change-Id: Iaef58f1b05a952793d414eb82ac476d88d910fe1
Signed-off-by: yuegui.he <yuegui.he@amlogic.com>
6 years agomm: make sure the gtp flag is low default [1/1]
an.xi [Tue, 30 Oct 2018 05:57:43 +0000 (13:57 +0800)]
mm: make sure the gtp flag is low default [1/1]

PD#SWPL-807

Problem:
The app's window cound be black screen when launched if the ion system
does not retry to allocate memory with the gtp high flag.

Solution:
make sure the gtp flag is low default

Verify:
P212

Change-Id: I562125573f8175cd180196ca73eb04d7dd36add0
Signed-off-by: an.xi <an.xi@amlogic.com>
6 years agounifykey: add the hdmirx repeater key block [3/6]
hongmin hua [Wed, 10 Oct 2018 03:03:41 +0000 (11:03 +0800)]
unifykey: add the hdmirx repeater key block [3/6]

PD#SWPL-323:

Problem:
add the hdmirx repeater key block

Solution:
add the hdmirx repeater key block.

Verify:
R321

Change-Id: I61920b706b5dd08c6be9647add287f85b35fb0ee
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
6 years agomedia: keep last normal frame before reset [2/2]
shihong.zheng [Thu, 25 Oct 2018 12:45:39 +0000 (20:45 +0800)]
media: keep last normal frame before reset [2/2]

PD#OTT-71

Problem:
google cast display green lump when seek.
reset after seek opration.

Solution:
keep last normal frame before reset and buf free.

Verify:
U211, Atom

Change-Id: I02304998c9434f1055de1138700510f4c19f466f
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
6 years agoatv_demod: switch channel with the script, the ATV shows no signal [1/1]
nengwen.chen [Mon, 29 Oct 2018 03:30:34 +0000 (11:30 +0800)]
atv_demod: switch channel with the script, the ATV shows no signal [1/1]

PD#SWPL-791

Problem:
Switch channel with the script lasts 14 hours, the ATV shows no signal.

Solution:
To avoid conflict, don't need to check the CLK
and PLL states in atv demod write and read function.

Verify:
verified by p321

Change-Id: I033c54f14541ed540dfce1b9c4e21d2b5a8b9487
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
6 years agohdmirx: add hdmirx repeater function [1/6]
hongmin hua [Sun, 30 Sep 2018 03:06:17 +0000 (11:06 +0800)]
hdmirx: add hdmirx repeater function [1/6]

PD#SWPL-323:

Problem:
add hdmi repeater function

Solution:
1.add the edid receive and mix.
2.add the flow of repeater.

Verify:
R321

Change-Id: I9942c5f345e2fdfff110f01d4d0c2b4b23120c07
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
6 years agohdmitx: add init code for repeater [2/6]
Zongdong Jiao [Sat, 29 Sep 2018 10:20:21 +0000 (18:20 +0800)]
hdmitx: add init code for repeater [2/6]

PD#SWPL-323

Problem:
For TXLX/T962E, it has both HDMI Rx and TX, and lacks of HDMI repeater
functions, including HDCP repeater function.

Solution:
Add the init code for hdmi repeater

Verify:
TXLX/T962E/R321

Change-Id: Iaf17ae62c590ff4f8478dd5556f3ed24b9ff3bb1
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
6 years agodts: add ir cut control GPIO [1/1]
yu.zhang [Mon, 22 Oct 2018 10:55:53 +0000 (18:55 +0800)]
dts: add ir cut control GPIO [1/1]

PD#SWPL-900

Problem:
add ir cut control

Solution:
add ir cut control GPIO

Verify:
g12b-skt

Change-Id: I16c7d03ed4cc1dd3842cab80a987dde1a83e5cbc
Signed-off-by: yu.zhang <yu.zhang@amlogic.com>
6 years agoamvecm: pq: add amvecm support for tl1 [1/1]
MingLiang Dong [Mon, 29 Oct 2018 07:14:34 +0000 (03:14 -0400)]
amvecm: pq: add amvecm support for tl1 [1/1]

PD#172587

Problem:
new feature, add amvecm support for tl1

Solution:
1. add cm hist for tl1
2. add 3dlut for tl1
3. add hdr support for tl1
4. add wb for tl1
5. add local contrast

Verify:
verify on tl1 ptm

Change-Id: I1c7ebb83a1fb72a4529415fb9bf4acfd134e6b11
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agodts: support 32bit for gxm_q201 [1/1]
Jianxiong Pan [Tue, 30 Oct 2018 04:41:18 +0000 (12:41 +0800)]
dts: support 32bit for gxm_q201 [1/1]

PD#SWPL-1140

Problem:
add support 32bit for gxm_q201.

Solution:
add 32bit dts for gxm_q201.

Verify:
gxm_q201

Change-Id: I3c9a6ae72fad6575bd814818967d9ff80e62f5d4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
6 years agousb: adb reboot and then adb disconnect [1/1]
he.he [Mon, 22 Oct 2018 07:47:00 +0000 (15:47 +0800)]
usb: adb reboot and then adb disconnect [1/1]

PD#174155

Problem:
complete_ep 0xffffffc05bed2858, ep->queue empty!
1. After adb process be killed, data buffer is freed and
this memory is allocated for the other. But the address
is hold by the controller.
2. Adbd in PC is running. So, the controller receive the
data and write to this memory.
3.The value of this memory is modified by the controller.
This could cause the memory problem.

Solution:
whenever io_data->aio equals 1, the data buffer is from a fixed array.

Verify:
Test: adb devices, adb shell, exit, adb push
in android8(p212) and android9(w400)
verified by he he

Change-Id: Idac755d3646639e2944a82f42abf9adb9aeaea8c
Signed-off-by: he.he <he.he@amlogic.com>
6 years agomm: avoid pages migrated to different zone [1/1]
tao zeng [Mon, 29 Oct 2018 03:12:11 +0000 (11:12 +0800)]
mm: avoid pages migrated to different zone [1/1]

PD#SWPL-881

Problem:
Amlogic modified code when compatcion from normal case.
And side effect is that pages in normal zone maybe migrated to
highmem zone. Which caused page_address get a NULL value and
kernel panic occurred.

Solution:
Avoid pages migarte to different zone by adding forbid_to_cma
flags.

Verify:
P212

Change-Id: I1d9c6653dc1069562db3c1be3f53a3510a51f0d1
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agoavb: avb enable need to translate more types [1/1]
Luan Yuan [Mon, 29 Oct 2018 11:00:27 +0000 (19:00 +0800)]
avb: avb enable need to translate more types [1/1]

PD#SWPL-1095

Problem:
avb need more command line size.

Solution:
change max size to 2048

Verify:
verify by ampere

Change-Id: I9c1089a3ea0888e8ccd82f16d2b1111b6d88922a
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
6 years agomm: reduce watermark if free cma is too large [1/1]
tao zeng [Fri, 26 Oct 2018 09:51:30 +0000 (17:51 +0800)]
mm: reduce watermark if free cma is too large [1/1]

PD#SWPL-807

Problem:
Sometimes driver can't allocation memory under atomic environment.
And free pages is enough but they are nearly ALL CMA pages.

Solution:
Reduce watermark with harf of free cma pages even allocation support
CMA.

Verify:
P212

Change-Id: I8e49768d4384ed064775537754a2b7f09a5bbb7c
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agoddr: fix bandwidth read result 0 on 32bit OS [1/1]
tao zeng [Mon, 29 Oct 2018 04:11:18 +0000 (12:11 +0800)]
ddr: fix bandwidth read result 0 on 32bit OS [1/1]

PD#SWPL-960

Problem:
Reading bandwidth of DDR from sysfs get all 0 result on 32
bit kernel

Solution:
Fix overflow when calculating bandwidth.

Verify:
P212

Change-Id: I35837db653bdc2d97ced98689546a9ffc0db21c7
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agoaudio: codec: add tl1_acodec support for tl1 [1/1]
shuyu.li [Thu, 11 Oct 2018 08:01:46 +0000 (16:01 +0800)]
audio: codec: add tl1_acodec support for tl1 [1/1]

PD#172587

Problem:
Add aml_tl1_acodec driver support for tl1

Solution:
1.add files sound/soc/codecs/amlogic/aml_codec_tl1.acodec.c(.h)
2.update files sound/soc/codecs/amlogic/Kconfig(Makefile)

Verify:
kernel build passed, need verified after chipback

Change-Id: I19717a442f22f5b6844627475992ef7c8cc20a71
Signed-off-by: shuyu.li <shuyu.li@amlogic.com>
6 years agohdmirx: hdmirx driver for tl1 [1/1]
Yong Qin [Tue, 25 Sep 2018 07:59:28 +0000 (15:59 +0800)]
hdmirx: hdmirx driver for tl1 [1/1]

PD#172587

Problem:
hdmirx bringup for tl1

Solution:
1.modify write top api, add addr offset -qy
2.modify write edid api -qy
3.replace top hw reset api
4.add aocec access register idle -qy
5.for tl1 bypass sw eq -qy
6.replace pddq api -qy
7.modify arc control for tl1 -qy
8.add n/cts auto mode
9.add hdcp balance path
10.add sscp mode
11.optimize reg map(rm unused reg addr)
12.add recent commits from 4.9 trunk
13.modify top clk cntl bit definition
14.modify top offset addr handle(x4)
15.add audio pll setting -qy
16.update phy setting - qy
17.modify audio pll ctrl api for tl1 -qy
-add clk monitor function
-add clk stable api for tl1
18.add emp data to pfifo -qy
19.modify edid write and other function -qy
20.add emp data to ddr -qy
21.add tmds data to ddr -qy
22.add cec for tl1 -qy
-fix ctc 7-1
-add status register for cec a/b
23.add cec and hdmirx dts -qy
24.clean tl1 rx related clk measure
25.hdmirx and cec dts

Verify:
1.run PTM
2.need verify on chip

Change-Id: Ia7cc5a2d84925587bdfae825936ba763713926af
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
6 years agovdin: add afbce function for tl1 [1/1]
xuhua zhang [Tue, 9 Oct 2018 09:21:14 +0000 (17:21 +0800)]
vdin: add afbce function for tl1 [1/1]

PD#172587

Problem:
new added function for tl1

Solution:
add vdin afbce support for tl1

Verify:
verified on PTM

Change-Id: I5e3e2487b6cdbed2d2ca794a6a21ed885e4bf469
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
6 years agotvin: add vdin and viu support for tl1 [1/1]
xuhua zhang [Sat, 29 Sep 2018 11:03:25 +0000 (19:03 +0800)]
tvin: add vdin and viu support for tl1 [1/1]

PD#172587

Problem:
do not suppoert for tl1

Solution:
add vdin and viu support for fl1

Verify:
verified on PTM

Change-Id: If4e267356fa666541853cfc7b49008795f9ec301
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
6 years agoavin: add avin detect support for tl1 [1/1]
Nian Jing [Thu, 11 Oct 2018 08:10:43 +0000 (16:10 +0800)]
avin: add avin detect support for tl1 [1/1]

PD#172587

Problem:
do not suppoert for tl1

Solution:
add avin detect support for fl1

Verify:
just coding for tl1 will test later

Change-Id: I809f7068c9d0a45c89bd7dc4e6615db99b11f015
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
6 years agovdac: vdac: add vdac support for tl1 [1/1]
Nian Jing [Fri, 12 Oct 2018 02:47:01 +0000 (10:47 +0800)]
vdac: vdac: add vdac support for tl1 [1/1]

PD#172587

Problem:
do not suppoert for tl1

Solution:
add vdac support for fl1

Verify:
test pass on local

Change-Id: I7b3da34289dfe0638a24b812658db7e462ebdd4c
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
6 years agoaudio: auge: add sound card support for tl1 [1/1]
Xing Wang [Tue, 9 Oct 2018 11:36:05 +0000 (19:36 +0800)]
audio: auge: add sound card support for tl1 [1/1]

PD#172587

Problem:
Bringup tl1 sound card.

Solution:
Add tl1 sound card.
Add external interface for audio input/output.

Verify:
Tested by PTM
Sound card is setup.
TDM and SPDIF internel loopback is ok

Change-Id: I60830ca44a62ee2a8e16343e91e7311152cab161
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agoamvideo: add amvideo support for tl1 [1/1]
Brian Zhu [Mon, 22 Oct 2018 13:33:31 +0000 (21:33 +0800)]
amvideo: add amvideo support for tl1 [1/1]

PD#172587

Problem:
TL1 needs support amvideo driver.

Solution:
1. Add amvideo node into dts file, default enable.
2. Change the vd mif and sr reg offset.
3. Force bypass dolby vision function.
4. Change the register following hardware design.
5. Make amvideo afbc work for tl1.

Verify:
On PTM.

Change-Id: I0d857f8a707328383328daa23e6ba8e156c2e6e0
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agoosd: tl1: add osd support for tl1 [1/1]
pengcheng chen [Fri, 28 Sep 2018 09:08:14 +0000 (17:08 +0800)]
osd: tl1: add osd support for tl1 [1/1]

PD#172587

Problem:
Bringup osd for TL1.

Solution:
Add osd support for TL1.
Add ge2d device tree node for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I3d20934f015108f545c3c72b979d1bd8187b282e
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agordma: add rdma support for tl1 [1/1]
pengcheng chen [Sat, 29 Sep 2018 09:32:14 +0000 (17:32 +0800)]
rdma: add rdma support for tl1 [1/1]

PD#172587

Problem:
Bringup rdma for TL1.

Solution:
Add rdma support for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I425edc1e47db2ea834fcc5acb0e3d0ee1f30a9f7
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agomedia: add codec support for tl1 [1/1]
pengcheng chen [Sat, 29 Sep 2018 09:06:05 +0000 (17:06 +0800)]
media: add codec support for tl1 [1/1]

PD#172587

Problem:
Bringup codec for TL1.

Solution:
Add codec iomap device tree node for TL1.
Add canvas device tree node for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I8b9a6645f1f9fd7d4aa9cae6166895e61ddc3e36
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agoarm: dts: tl1: add decoder device tree [3/3]
shihong.zheng [Tue, 2 Oct 2018 10:48:35 +0000 (18:48 +0800)]
arm: dts: tl1: add decoder device tree [3/3]

PD#174543

PD#172587

Problem:
new added function for tl1

Solution:
add vdin afbce support for tl1

Verify:
verified on PTM

Change-Id: I42054b8228161713ac10446491ebdb50a71975ad
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
6 years agobacklight: add support for tl1 [1/1]
Evoke Zhang [Thu, 25 Oct 2018 07:21:19 +0000 (15:21 +0800)]
backlight: add support for tl1 [1/1]

PD#172587

Problem:
do not suppoert for tl1

Solution:
add backlight support for fl1

Verify:
verified on PTM

Change-Id: I052a7ef93ec9cb21a544e4823a4c9a339d38b5f9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agolcd: add tl1 support [1/1]
Evoke Zhang [Thu, 27 Sep 2018 06:13:06 +0000 (14:13 +0800)]
lcd: add tl1 support [1/1]

PD#172587

Problem:
not support tl1

Solution:
add tl1 support

Verify:
test pass on PTM

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