Commit Graph

648625 Commits

Author SHA1 Message Date
Yan Wang
c734c302bd idle: sm1: enable sm1 idle function [1/1]
PD#SWPL-6255

Problem:
sm1 need enable idle for power.

Solution:
enable sm1 idle function.

Verify:
ac200

Change-Id: Ib106ac552660471f0275dc22374405939d521a62
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2019-04-25 20:26:14 +08:00
Guosong Zhou
99527e6e97 camera: add mipi csi driver for sm1 [1/1]
PD#SWPL-5388

Problem:
sm1 board camera need add mipi csi module

Solution:
add mipi csi module

Verify:
verified on SM1 AC200

Change-Id: I819f2f74aa8da7d725cb59e5636e790185964f79
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-04-25 20:25:27 +08:00
Yingyuan Zhu
7a09ac9b0e watchdog: fix watchdog get lefttime error [1/1]
PD#SWPL-6937

Problem:
1.get lefttime error by 'cat sys/class/watchdog/watchdog0/timeleft' cmd.
2.if DTS is configured to feed watchdog by Android, the system will
restart automatically after wake up.

Solution:
1.modify the code to get time.
2.when the system wakes up, first judge whether the watchdog runs,
and then decide whether to start the watchdog.

Verify:
test pass on u200

Change-Id: If64888ffdd5651e8cfcace5ea0d0da31641bb397
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2019-04-25 20:24:42 +08:00
Yi Zhou
6737ec4dcb hdr_prime: add interface of HDR Prime SL driver [1/1]
PD#SWPL-5475

Problem:
need to add interface of HDR Prime SL driver

Solution:
add interface of HDR Prime SL driver

Verify:
U212

Change-Id: If0e62b74ccbaa4ede490e7a9896d9f5915480d6f
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-04-25 14:06:09 +08:00
MingLiang Dong
c39c3c3b53 amvecm: match uboot sdr2hdr function [1/1]
PD#OTT-2524

Problem:
enable sdr2hdr function, uboot logo have color change

Solution:
match uboot sdr2hdr function

Verify:
verify on G12A

Change-Id: I160cd6141d09a385d299ca96a89eb1ebf09c86e8
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-25 10:57:15 +08:00
Zongdong Jiao
e5846b2a19 hdmitx: move work_internal_intr to delayed_work [1/1]
PD#SWPL-6894

Problem:
Queue work 'work_internal_intr' cause the hdcp22 flicker

Solution:
Move work_internal_intr to delayed_work

Verify:
G12/U212

Change-Id: Ib05c82bb66c9ad7396790d5eb237ff486c56c980
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-23 14:21:13 +08:00
Jiamin Ma
bbf91273ea earlycon: support aml-uart as the name for earlycon [1/1]
PD#SWPL-6969

Problem:
For some historical reason, aml-uart is configured as the earlycon
name in uboot, which is not recognized by 4.9 kernel

Solution:
support aml-uart as the name for earlycon

Verify:
Ampere

Change-Id: I01427f2d512c0bf1972dd545dc71570919c5bc07
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-04-22 16:34:48 +08:00
Brian Zhu
e6617c0031 vpp: don't overwrite on_pending state when enable vd layer [1/1]
PD#OTT-3244

Problem:
When vd layer state is on_pending, calling enable videolayer
function will overwrite the state. Then it will not enable video
layer really.

Solution:
Add the judgement to check if the state is on_pending.

Verify:
verified on W400

Change-Id: I0513a6610fdb108bec05858c7f6c7976be5e7edb
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-04-19 20:19:40 +08:00
Luan Yuan
527be302e9 amvecm: add cm 12bit config for g12a/g12b/sm1
Change-Id: I82a2c54a5b7d7dc8fe0b2e7cc6c1a0af926c8ca3
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-18 16:27:28 +08:00
Bencheng Jing
e1a9bfc673 amvecm: fix CM/sat/bricon adjust not available [1/2]
PD#SWPL-6892

Problem:
fix CM/sat/bricon adjust not available

Solution:
fix CM/sat/bricon adjust not available

Verify:
U212

Change-Id: Ia6a1aebda35550801d4c7e16807714b8349431a4
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-18 11:31:13 +08:00
MingLiang Dong
b8106f1e4b amvecm: ioctrl get hist ave error [1/1]
PD#TV-1950

Problem:
VPP_IN_H_V_SIZE register is removed on TL1

Solution:
use preblend size to config hist stts size

Verify:
verify on TL1

Change-Id: I0afc9fd45f69318b2ebd42424aee20e60400d809
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-18 11:31:08 +08:00
Bencheng Jing
c41066e24f amvecm: fix sm1 green screen when play videos [1/1]
PD#SWPL-7302

Problem:
sm1 green screen when play videos

Solution:
add chip support

Verify:
s905D3

Change-Id: I50c0a9f889d72b65157a973bfe1df8dce10db64a
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-17 19:53:54 +08:00
Bencheng Jing
9cb5683ddf amvecm: add sharpness0 cvbs table in driver [1/2]
PD#OTT-2339

Problem:
Testing CVBS Video Index Part FAIL

Solution:
add sharpness0 cvbs table in driver

Verify:
U212

Change-Id: I91047de0e852c77e70ad95aad3e6830fde7097f4
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-17 19:52:42 +08:00
Luan Yuan
79a2e874b6 Revert "amvecm: add sharpness0 cvbs table in driver [1/2]"
This reverts commit 4001dd156e.
2019-04-16 23:52:09 +08:00
Luan Yuan
06cfbd413d Revert "partition: change vendor size [1/2]"
This reverts commit a219789bb2.
2019-04-16 19:27:45 +08:00
Xiaoming Sui
46b3f61e5a avsync: tsync: fix blackscrean issue when replayed [1/2]
PD#TV-2802

Problem:
The image is stuck or blackscrean for a few seconds
when the DTV stream is replayed.

Solution:
when audio pts and video pts discontinue, then
adjust the pcr source clock.

Verify:
X301

Change-Id: Id0a74e2d4106a30b426bfa7a4faa70451db9b79e
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-04-16 15:17:27 +08:00
Rongjun Chen
11e6bde6f9 WIFI: add mem size for bcm wifi [2/5]
PD#SWPL-3773

Problem:
wifi open fail issue

Solution:
add mem size to fix wifi open fail issue

Verify:
r311

Change-Id: Iab6cd8664026639f5aae108a3bd84faa38708487
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2019-04-16 13:41:02 +08:00
Luan Yuan
2c2b94bef9 picdec: add picdec dev node for u200 u211 u212 w400 sm1 [1/1]
PD#SWPL-4551

Problem:
ImagePlayer cannot play picture

Solution:
add picdec dev node for u200 u211 u212 w400

Verify:
franklin

Change-Id: I35cc28e2ab06367f33a7326ce671b1ee461e6fb1
Signed-off-by: xi an <an.xi@amlogic.com>

Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-16 10:55:20 +08:00
Liang Ji
a219789bb2 partition: change vendor size [1/2]
PD#SWPL-6586

Problem:
Android P trunk can not compile 64bit kernel
Android P vendor size is not enough,
64bit kernel and isp so  etc ,
the size exceeds 256M

Solution:
change vendor size from 256M into 320M

Verify:
galilei

Change-Id: Icc7b3d7c8d56f5c361acf9722bba6422b8dc3af2
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-15 20:54:50 +08:00
Bencheng Jing
4001dd156e amvecm: add sharpness0 cvbs table in driver [1/2]
PD#OTT-2339

Problem:
Testing CVBS Video Index Part FAIL

Solution:
add sharpness0 cvbs table in driver

Verify:
U212

Change-Id: I91047de0e852c77e70ad95aad3e6830fde7097f4
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-15 20:35:49 +08:00
Zhongfu Luo
644d912568 defendkey: TL1: support secure upgrade check [4/4]
PD#SWPL-5002

Problem:
TL1 need to support defendkey secure upgrade check

Solution:
1.modify the way of get random

Verify:
TL1 skt board verify pass

Change-Id: I76b29800de787c5e5b18e023d84c1161c9b1643a
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2019-04-15 16:27:53 +08:00
Zongdong Jiao
396ad38985 hdmitx: fix wrong 420 valid_mode [1/1]
PD#SWPL-6896

Problem:
In the HF1-31 Iter 03 test, the Rx EDID's max tmds clock is 600MHz,
and it doesn't claim that it supports Y420 modes. But
echo 2160p60hz,420,8bit > /sys/class/amhdmitx/amhdmitx0/valid_mode
'cat valid_mode' will get 1.

Solution:
Add Y420 8bit check

Verify:
G12/U212

Change-Id: I0a128eb33aeb2b4bcbf253eff49e9c5186386af1
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-04-15 16:00:58 +08:00
Hong Guo
fed72eb16b SUSPEND: add alarm wakeup function [1/1]
PD#SWPL-7062

Problem:
add alarm wakeup function.

Solution:
add alarm wakeup function.

Verify:
g12b_w400,test pass.

Change-Id: I0ad6e373b52bfd8d628ad3c8964637174b5fc643
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-04-12 20:13:54 +08:00
Ting Li
2a480561fb picdec: add picdec dev node for u200 u211 u212 w400 sm1 [1/1]
PD#SWPL-4551

Problem:
ImagePlayer cannot play picture

Solution:
add picdec dev node for u200 u211 u212 w400

Verify:
franklin

Change-Id: I35cc28e2ab06367f33a7326ce671b1ee461e6fb1
Signed-off-by: xi an <an.xi@amlogic.com>
2019-04-12 19:57:09 +08:00
Yingyuan Zhu
79883263fd AC200: fix home button has no function [1/1]
PD#SWPL-6694

Problem:
home button has no function in sm1-ac200

Solution:
add home button configuration in dst node

Verify:
test pass on sm1-ac200

Change-Id: I670480c6dfd7f833e737adaddbe5981d84091203
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2019-04-12 16:12:21 +08:00
Evoke Zhang
6be67a49ba lcd: add mipi-dsi support for sm1 [2/2]
PD#SWPL-6114

Problem:
add mipi-dsi support for sm1

Solution:
add lcd_chip_sm1

Verify:
verify by S905x3

Change-Id: I1b95676ad1300f8cbf859f89b557f680cccff117
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-12 15:43:17 +08:00
renjiang.han
eead0b2e8a amvideo2: add keep last frame [1/1]
PD#OTT-2452

Problem:
Black screen in the middle of the cut.

Solution:
add keep last frame.

Verify:
on U212

Change-Id: Ib24f066e0682c7427024a74d9bf8cc9b8a310d62
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-04-11 20:55:02 +08:00
xiaoliang.wang
ddf73459b7 device: changes for s905x3 ac213 bring up [3/3]
PD#SWPL-6970

Problem:
for s905x3 ac213 bring up, support multi-dts

Solution:
s905x3 ac213 bring up

Verify:
AC213

Change-Id: I4a22f4ce5b927db7d0197028abb12e6b669e7dc8
Signed-off-by: xiaoliang.wang <xiaoliang.wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-11 20:36:33 +08:00
rongrong zhou
a71fda4316 ptsserv: fix pts lookup fail issue [3/3]
PD#SWPL-3730

Problem:
playback not smooth

Solution:
if p2 lookup fail, set p2 = p

Verify:
  verified by x301

Change-Id: I181eae2ba40edd937df12e0925c2a55c856162ba
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
2019-04-11 15:50:17 +08:00
Nan Li
5c18ac7c4d emmc: modify data delay_step [1/1]
PD#SWPL-6200

Problem:
emmc calibration delay set error.

Solution:
modify delay_step to 250ps.

Verify:
verify by s912.

Change-Id: I1c0e31ae6bdda8b0f105e12f3efc81b5474376d6
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-04-11 14:37:53 +08:00
huijie.huang
7ab2c469ae power: S905Y2 limit cpu and gpu freq to reduce HDMI TX consumption [1/1]
PD#SWPL-4653

Problem:
optimize the S905Y2 power consumption

Solution:
limit CPU and GPU frequency, reduce hdmi tx consumption

Verify:
test pass on u221

Change-Id: I1d95068f8beb5616c9aeea91122b5233e479db8b
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-04-11 11:14:40 +08:00
ruixuan.li
ead21518eb sm1: emmc run hs200 busmode [1/1]
PD#SWPL-5404

Problem:
emmc report data crc error in hs200 busmode

Solution:
set hs200 co_phase to 2 and did not reset the
hs200 co_phase and tx_phase when adjust tuning is
find the error point in sm1

Verify:
verify pass on sm1_s905d3_ac200

Change-Id: I56aa8eb666fb55641db75878a3488f66c721bd6d
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-04-09 21:09:24 +08:00
ruixuan.li
60de06dcc1 sm1: modify 400k co_phase [1/1]
PD#SWPL-5404

Problem:
emmc report response crc error in high speed mode

Solution:
modify 400k co_phas

Verify:
verify on ac200

Change-Id: I8bd0cbeb121e7a35a5f96791449187150e650d9e
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-04-09 21:09:18 +08:00
ruixuan.li
ae94743b0c sm1: disable emmc calc_f methods [1/1]
PD#SWPL-5404

Problem:
sm1 usb fixdiv mode set adjust cause error

Solution:
disable emmc calc_f in dtsi.

Verify:
test pass on sm1 ac200

Change-Id: I4459bf4faa2141a9e684b1e5bb95fb806eecbbfa
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-04-09 21:09:11 +08:00
long yu
e93578a8ff storage: emmc: Adjust the tuning mode of controller for HS200 [1/1]
PD#SWPL-2634

Problem:
eyetest mode is a little unstable

Solution:
adjust the tuning mode of the fixed adj

Verify:
R311

Change-Id: I6112e0078bf013d2a4cfe4ff04210f1d15e3439d
Signed-off-by: long yu <long.yu@amlogic.com>
2019-04-09 21:08:20 +08:00
Xing Wang
68b0e6e685 audio: codec: un-mute ad82584 in default [1/1]
PD#SWPL-6810

Problem:
android version, no sound for spk
ad82584 is mute in default.

Solution:
un-mute ad82584, and add delay for de-pop

Verify:
ac200

Change-Id: Id78eb77b5e1a0ebed0a16a9b97992c6a07f78cde
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
2019-04-09 20:44:58 +08:00
Yong Qin
f73ac42d26 cec: remove print [1/1]
PD#SWPL-3750

Problem:
when debug on, too more log

Solution:
delete

Verify:
verified on android p

Change-Id: Iabaaa4fa205da5453a303c98bce8b71b55c5f77b
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-09 20:37:00 +08:00
he.he
cc6ebaab66 USB: amldevread data failed [1/1]
PD#SWPL-5292

Problem:
g12b-revB, some u disk amldevread test failed.

Solution:
Changing the register 0x54 to 0x2a, enabled the hs rx idle noise filter,
and the abnormal u-disk has no problem in the amldevread test.

Verify:
g12b revB

Change-Id: Ibbf924c93d193d7e40c4d8121a4616a8d1caeaaa
Signed-off-by: he.he <he.he@amlogic.com>
2019-04-09 20:14:07 +08:00
Yi Zhou
f0aaf17ba7 hdmitx: fix flash screen when resuming and playing hdr [1/1]
PD#SWPL-6169

Problem:
when resuming and playing hdr films, flash screen will happen
under LG TV

Solution:
quantization range has changed between UI and playing hdr
films. we keep quantization unchanged. Same as MTK.

Verify:
s905x2

Change-Id: I071abecfba705dbd44d33c2673d4938c39f419cf
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-04-09 19:26:10 +08:00
MingLiang Dong
95ef0262e5 hdr: TL1 HDR gamut bug fix [1/1]
PD#SWPL-5248

Problem:
1. finetune TL1 HDR.
2. workaround fix ootf overwrite
3. workaround fix gamut bug

Solution:
TL1 HDR gamut bug fix

Verify:
verify on TL1

Change-Id: Iaf9535f3b6d096967f67ba118ff54eeb2c5c01c5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-09 17:10:35 +08:00
MingLiang Dong
823a874dfd hdr: modify hdr gamut mtx for TV [1/1]
PD#SWPL-4638

Problem:
hdr video, color is light

Solution:
modify hdr gamut mtx, use bt2020rgb to 709rgb mtx

Verify:
verified on x301

Change-Id: Ia87493a57196b6a3a87c93535fed325b163cb562
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-09 17:10:12 +08:00
Bencheng Jing
b728fb136f di: disable cue for g12a [1/2]
PD#SWPL-6142

Problem:
disable cue for g12a

Solution:
disable cue for g12a

Verify:
U212

Change-Id: I276fa0b8605110b709feaceb6d23d9b566c16a44
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-09 10:52:27 +08:00
Jihong Sui
08fbe839ce deinterlace: pq: add scene change detection for tl1 [1/1]
PD#TV-1361

Problem:
Add scene change detection for DM (read part),
start from TL1 by VLSI(Zheng.Bao).

Solution:
1. add control in function noise_meter_process;
2. add debug information:
cat /sys/class/deinterlace/di0/nr4_param
3. set NR2_CUE_MODE[11:10] as 3; (by feijun)

Verify:
tl1

Change-Id: Ib34d1b403539ba5fe5135d6608bfa2cf27490826
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-04-09 10:52:22 +08:00
zhiwei.yuan
02d97948c6 di: enable lock win will cause green screen [1/1]
PD#SWPL-3877

Problem:
lock window cause green screen

Solution:
disable lock win as default

Verify:
verified by t962x2_x301

Change-Id: I59f3047b9fdd7e4b6ad4750740ddca58bfe8d79a
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-04-09 10:33:02 +08:00
zhiwei.yuan
687e8745cb di: TL1 Scrolling subtiltes jitter seriously than p321 [1/1]
PD#SWPL-3877

Problem:
mcinfo canvas configuration is incorrect

Solution:
correct canvas config

Verify:
verified by t962x2_x301

Change-Id: I93958044faed25994d83a53948e226729357d2aa
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-09 10:32:46 +08:00
Bencheng Jing
e7b027fe18 amvecm: fix g12a/g12b sharpness0 addr wrong [2/2]
PD#SWPL-5919

Problem:
add offset for g12a/g12b sharpness0

Solution:
db offset for g12a/g12b sharpness0

Verify:
u212

Change-Id: I9d800d7c8b4446cb19dc39777bc1f940b0d6124c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-08 21:14:53 +08:00
Luan Yuan
dbea5d067f dts: disabled pcie [1/1]
PD#SWPL-6662

Problem:
bootup spend 25s

Solution:
disable pcie and enable usb 3.0

Verify:
verify by w400

Change-Id: I5ea3526989b4d89cffb4e875487e2b80b5d15f0b
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-08 14:43:11 +08:00
Hang Cheng
16c23afb74 cec: remove func that may cause deadlock [1/1]
PD#SWPL-5836

Problem:
kernel panic when read cec reg

Solution:
remove func that might cause sleep in spinlock,
so as to avoid deadlock

Verify:
S805X-P241

Change-Id: I8394f69bdbeff6673c795a221c08ef76164c5bdb
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-07 11:40:47 +08:00
deng.liu
dadba88db1 common: NN API implementation,upload 64bit dts [1/1]
PD#SWPL-86

Problem:
Android tensorflow lite ,NN API implementation

Solution:
NN API implementation

Verify:
Local on galilei

Change-Id: I7c1a3a68005218544d0a3c7a7360c9ee38fc53de
Signed-off-by: deng.liu <deng.liu@amlogic.com>
2019-04-07 11:39:49 +08:00
Liang Ji
b1ab63a5cb avb_ab: add avb check for product product [1/2]
PD#SWPL-6168

Problem:
avb+abupdate with care map.txt cann't boot up
because of check product partition

Solution:
add avb for product partition in dts

Verify:
ampere

Change-Id: I0310853965340d9b810a89cbf1719f9ba002261d
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
2019-04-07 11:34:41 +08:00