Commit Graph

646417 Commits

Author SHA1 Message Date
Jianxin Qin
aefab40d70 usb: phy2: modify tuning sequence for aml-phy
PD#164286: usb: phy2: modify tuning sequence for aml-phy

The firt two steps of PHY tuning sequence only need to do once, so
we move them to initial function.

Change-Id: Ib6e0daa429aeea17007130a001d7fc0905307c1e
Signed-off-by: Jianxin Qin <jianxin.qin@amlogic.com>
2018-06-20 21:33:04 -07:00
Matthew Shyu
e9cdacdc34 crypto: aml-dma: fix errors found in coverity check
PD#168725: fix errors found in coverity check

Change-Id: I7528dc0c6122d32e3f2937a4b1869031d10851af
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2018-06-20 21:11:11 -07:00
Shuai Li
f669cda618 audio: fix lineout L/R phase diff 7 degree issue
PD#168345: audio: fix lineout L/R phase diff 7 degree issue

Change-Id: I6768b9fc8324baf00a9b759f7a6e3faea2695371
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2018-06-20 06:29:58 -07:00
Huan Biao
2b1ebf192a clk: ringmsr: add osc ring msr for g12 [1/1]
PD#165091:

Problem:
no osc ring msr function

Solution:
add g12 osc ring msr code

Verify:
g12 skt

Change-Id: I1fc9292b750cd402f81d3a0d6d8206cea94098b6
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2018-06-20 03:49:05 -07:00
Nian Jing
caebb4cabc cvbsout: cvbsout/vdac coverity fix
PD#168730: coverity fix

Change-Id: I0753c4ae9a4eed14a46a1f2bcda4cc11fbb0b351
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-06-20 02:56:57 -07:00
Yu Tu
bc3d4d89e6 uart: fix support sysrq function. [1/1]
PD#167742: uart: support sysrq

Change-Id: I67b183942047428a3aea35cbcf8ffae490319ac8
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2018-06-20 11:18:30 +08:00
Lei Yang
2aa3dc0fb1 hdmirx: fix HDCP CTS issues
PD#168221: hdmirx: fix HDCP CTS issues

1. disable hdcp 1.1 feature && fastreauth function.
2. ignore dvi recovery logic when aksv was received.

Change-Id: I48c37d4b7e0da7309c743052e16b0d607daa4110
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2018-06-19 19:50:26 -07:00
MingLiang Dong
82b02c99d8 hdr: optimize hdr/hlg effect
PD#167989: hdr: optimize hdr/hlg effect

1. fix hdr->sdr exposure
2. fix hlg->hdr abnormal image

Change-Id: Ia72178084335940d4d6984f07c7b9d7b7025b5e8
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2018-06-19 07:19:14 -07:00
Matthew Shyu
7ad8db81e5 crypto: aml-dma: Enable HW crypto on G12A
PD#167825: Enable HW crypto on G12A and rework sha driver

1. allocate atomic mem to avoid sleep
2. rework import and export function for fixing race conditions
3. rework hmac setkey to avoid HW bug
4. Use fallback on AES-192
5. passed all AES and SHA related tests in tcrypt

Change-Id: I1c0dcbbad025f0d8d7c16f921948a8cb6d4b2548
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2018-06-19 17:00:40 +08:00
kieth liu
ea5ec8a557 video: add sysfs video_inuse for vfm map share[1/9]
PD#165474: add sysfs video_inuse for vfm map share

Change-Id: Ic226eaf89cbd55dae14532b3c291485a8585b933
Signed-off-by: kieth liu <kieth.liu@amlogic.com>
2018-06-19 00:54:48 -07:00
Weiguang Ruan
778e267f00 wifi: mac80211 add p2p0 [5/6]
PD#168467: wifi: mac80211 add p2p0 

softmac wifi need mac80211 to register cfg80211 interfaeces
wlan0 is default, add p2p0 for Android WIFI P2P

Change-Id: I6fd48f85e010a1ec9e35954b85205634312c73d9
Signed-off-by: Weiguang Ruan <Weiguang.ruan@amlogic.com>
2018-06-18 22:52:54 -07:00
nengwen.chen
a864abf401 atv_demod: Fix audio always mute and unmute during ATV playing. [1/1]
PD#167378: Modify atv demod for audio driver get atv audio data.

Change-Id: I221c6a94d3756d5361c140fdc88f25b65e33d114
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-06-18 19:35:45 -07:00
pengcheng chen
ae28028817 osd: add osd reverse support with cursor
PD#165875: osd: add osd reverse support with cursor

Change-Id: If9cac66bea53f4461e5570c6a405b9584f7b05b9
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-06-15 02:36:29 -07:00
Zhuo Wang
2d30583491 ethernet: fix reboot error
PD#164611: fix error not support powerlow

Change-Id: I9d65b25bebcfb7afccc590629c7865ed490440de
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2018-06-14 23:44:16 -07:00
pengcheng chen
76bd12e11b osd: add ion_alloc failed process
PD#167090: osd: add ion_alloc failed process

Change-Id: I4b6424f3bfaacc57553355a7115be0ed8f7feb34
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-06-14 23:08:57 -07:00
Yi Zhou
b3ee325e8f hdmitx: modify some modes parameters in ENCP
PD#167526: hdmitx: modify some modes parameters in ENCP

480p60hz,576p50hz,720p50/60hz,1080i50/60hz

Change-Id: Ia7b05ccbc20a200eb3684c7f4787e1c31a42cfc3
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-06-14 19:03:36 -07:00
Long Yu
41016161c1 emmc: optimize ds and core clock alignment
PD#166221: emmc: optimize ds and core clock alignment

[problem] If the DS and core clock are aligned

at the beginning of the period, the program will

return directly without setting up CMD delay.

Change-Id: I65f32530884a2bea5171cc92e297a60f375a70f7
Signed-off-by: Long Yu <long.yu@amlogic.com>
2018-06-14 05:42:15 -07:00
Zhuo Wang
aacc2c1591 ethernet: turn off led and phy power
PD#164611: u211 optimize power for phy

Change-Id: Ic5eb4684b221f84abc581520fe89cde4d271d1cf
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2018-06-14 02:02:12 -07:00
Jianxin Qin
39234ed727 usb: dwc3: add shutdown function for dwc3 driver
PD#164611: usb: dwc3: add shutdown function for dwc3 driver

In suspend mode, we will shutdown the USB controller for reducing
more power consumption.

Change-Id: Icfc3182fce4f5455397e5f11fd08693f763757b3
Signed-off-by: Jianxin Qin <jianxin.qin@amlogic.com>
2018-06-14 00:30:48 -07:00
Yi Zhou
40ec0b4473 hdmitx: fix ISA_DEBUG_REG0 address error
PD#162651: hdmitx: fix ISA_DEBUG_REG0 address error

Change-Id: If46fb55084c77a8f05b838d7676af548b5252add
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-06-14 00:25:24 -07:00
Zongdong Jiao
76589064b3 hdmitx: optimize hpll shutdown
PD#164611: optimize hpll shutdown
HPLL shutdown is referenced from early suspend workflow.

Change-Id: I9dc33bea2d2d965ff97db0fb871175c537f8de67
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-06-14 00:25:01 -07:00
Yong Qin
7fb0276464 cec: for gxl cec tx timeout [1/1]
PD#168316: cec: tx timeout

	1.support transwich ip for g12a
	2.gxl tx msg timeout

Change-Id: I38936e429e45bb3bedf2526867e5f9a42494003c
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2018-06-13 22:49:50 -07:00
Evoke Zhang
0c1dad8fe3 lcd: mipi-dsi: set clk lane only according to clk_always_hs [2/2]
PD#168252: lcd: mipi-dsi: set clk lane only according to clk_always_hs,
remove restrictions by operation mode.

Change-Id: Icac07d74ae07d60edc6a6b507d06d962780e3984
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-06-13 22:30:19 -07:00
xuhua zhang
cd26492eb3 vdin: add reset_tvin_smr.
PD#167053: vdin: add reset_tvin_smr.

when cutting table, need reset tvin smr.

Change-Id: Ibe95526b696f73c0f17ff456b17cfb11afafac1b
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
2018-06-13 22:29:50 -07:00
Yong Qin
b98ac8f097 cec: fix cts test bug and transwich cec bug
PD#167701: cec: sync code from 3.14

	1.add weakup reason
	2.set default cec version is 1.4
	3.add hw reset for transwich ip when access
	register fail

Change-Id: Ie664123213fcbdf68a7161f90322a12fee50f1ea
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2018-06-13 19:26:18 -07:00
Yue Wang
59ebe506d2 usb: adjusted the sof interval to 125us through controller, then retested EL39.
PD#168365: usb: adjusted the sof interval to 125us through controller.

Change-Id: I9984e4dc5aa82808824949169ac8fadb4d0e7147
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-06-13 19:12:01 -07:00
Evoke Zhang
5fe330861e lcd: add screen black support before backlight on [2/2]
PD#167706: lcd: add screen black support before backlight on

Change-Id: I5fd1eb644ae96dac279a00740d8488d4c14870cf
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-06-13 02:35:41 -07:00
shihong.zheng
9fd8b8f65c media: add config for avsp_long_cabac
PD#167435: default disable avsp long cabac

gxl must config this option enable, other
platform disabled to reduce mem consume

Change-Id: If522dd11dd017d3c04d859a62acacc4355ec2382
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2018-06-13 02:00:03 -07:00
yicheng shen
d5378b368f hdmirx: add load22key handle
PD#153894: hdmirx: optimize load22key sw sequence

Change-Id: I888cbc2911e0739ec078e03cb475069cc4e1a49c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-06-13 01:00:20 -07:00
Jian Xu
6d6d7dc71d audio: set atmos bit to hdmirx side [1/1]
PD#167816:

When HDMI ARC connected,and the ARC sink support
ATMOS decoder,we need copy the edid bit in HDMIRX edid.
we need interface to set that bit to hdmirx.

Change-Id: Ic19bc17f166f8f10ba15e1e8b0de1f256296f9a5
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
2018-06-12 18:55:45 -07:00
Zongdong Jiao
112f12f644 hdmitx: optimize hpll suspend
PD#164611: hdmitx: optimize hpll suspend
The BIT definition of RESET / ENABLE in G12A is different from
earlier chips.
HPLL suspend workflow:
1. set RESET as 1
2. delay 50us
3. set ENABLE as 0
Resume workflow is inverse, but no need anymore, it will be set
in set_disp_mode_auto().

Change-Id: I6e178466f865a643b4ef8d32dc59c99d1c96b94d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-06-12 18:42:04 -07:00
Bencheng Jing
64c16090f2 amvecm: modify txhd and txlx r/g/b pre/post offset to 13bit
PD#168189: amvecm: modify txhd and txlx r/g/b pre/post offset to 13bit

Change-Id: I32814aae3be39dd077d0f2ed268bd0262e783060
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2018-06-12 01:24:19 -07:00
manhao liang
5c440e8016 dvb: reduce the gap of pcr delayed.
PD#165243: Sen5 DVB player AV issue.

Change-Id: I9bccc7804346595c941ac8f2cf5ced7e68276ebd
Signed-off-by: manhao liang <manhao.liang@amlogic.com>
2018-06-11 22:54:49 -07:00
yicheng shen
40d9d7dc94 hdmirx: fix coverity errors
PD#167692: hdmirx: fix coverity errors

Change-Id: I044b9e84f090e1f7b1652891522eeb1adb1ed0ac
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-06-11 19:37:09 -07:00
shuanglong.wang
7fedb276a6 common: netflix: merge patch for fix 29.97 and 23.97 output evenly [1/2]
PD#165744: netflix: merge patch for fix 29.97 and 23.97 output evenly

NEEDLEPLAT-2057:
[Netflix][NTS] Video judders are observed during VP9/HEVC playback [1/1]

[Problem]
[Netflix][NTS] Video judders are observed during VP9/HEVC playback.
The problem happens at 'Boardwalk Twirl Ride' scene with seek point at 760
 seconds. Seek before the point or the exact point will show stuttery video
 display but a seek after the location or a short seek (swim operation in
 NF's term) will make the playback smooth again. [Solution] The problem
 is identified to be an uneven PTS timestamp for sample frames. In order
 to get 29.97fps the timestamp of video samples are switching between a
 30fps rate and some samples with longer duration so by average it's
 29.97fps. The output rendering control has very strict timestamp comparison
 between system time and the timestamp of video frame. When system time passed
 the next video frame's timestamp, a new frame is toggled to display. For the
 uneven PTS case, some frames have over 2 vsync duration and the others have
 less than 2 vsync duration. Depending on the initial vsync offset, there is a
 chance to have frames toggled in 13221322 vsync sequence, instead of a normal
 always 2 vsync toggle one frame pattern. The change is to do a small adjustment
 to the system time, based on initial system time and video timestamp so the "phase"
 of the vsync can be set up to avoid such situation.
 [Platform]
 needle,stark
 [Test]
 Verify with Netflix Chime S1E8 29.97fps titles, 'Boardwalk Twirl Ride' scene.
 Change-Id: I073481ce9e39f49555480a139e3b32d8cc047e1c
 Signed-off-by: Tim Yao <tim.yao@amlog

 NEEDLEPLAT-2604: [Netflix] Video judders during playback [1/1]
 [JIRA] NEEDLEPLAT-2604
 [Problem]
 FRC caused video judders with 23.97fps source.
 [Solution]
 When source is 23.97 fps and output is 59.94hz, in order to make it
 friendly to TV 3:2 pulldown detection, the video frame output should follow a
 323232 patten, which means for each vsync, frames are repeated 3 times, then
 switch to a new frame and repeat twice. Such repeating pattern will make the
 average vsync toggle rate become 2.5 frame per vsync, to match 23.97 to 59.94
 frame conversion rate. And TV side can also detect such patterns and do its best
 recovery for MEMC processing. The problem with Netflix is the PTS of each vidoe
 frame is not incremented in a constant duration, but with some frames bigger then
 1/23.97 seconds and some are smaller. In Jira NEEDLEPLAT-2057 we have a similar
 processing for the case when source is 29.97fps and output is 59.94hz and for this
 Jira the reason is same. The fix for NEEDLEPLAT-2057 actually caused a side effect
 because it tried to set the initial vsync phase to 0.5, to maximumly avoid the
 problem, but for the 2:3 situation, a 0.5 phase make it worse because the average
 FRC ratio is 2.5, so an initial 0.5 phase will always make the output pattern not
 aligned at 232323 pattern when the duration of each frame is not even. This fix
 is to move the initial phase to 75% so both cases should work fine.
 [Test] Play typical HD source with 23.97fps and observe the playback smoothness.
 Also double check Chimera Boardwalk Twirl Ride from seeking point 02:34:14 and
 check the playback is smooth also.
 Change-Id: I95c35d4ffa563f74b9afa7ae08f7ef22d1227706
 Signed-off-by: Tim Yao <tim.yao@amlogic.com>

 NEEDLEPLAT-3173: [NTS]Frame stuttering on 4K 60fps [1/1]
 [JIRA] NEEDLEPLAT-3173
 [Problem] The test clip is 4K 60fps and the output is 4K
 59.94hz so a frame dropping always happen every 1000 frame. The clip is special
 in that the duration (PTS growing distance) between each frame is not same. The
 frame's PTS is incremened by (1530, 1530, 1440) to get an average of 1500 90K
 unit increase. (1500 = 90k / 60), which equals two 17ms dutation then followed
 by a 16ms duration frame to get an average of 16.6ms duration. The previous
 commit for NEEDLEPLAT-2604 and 2057 are the efforts to solve this problem by
 setting an initial phase, which can solve the problem for the uneven PTS for
 23.97 and 29.97fps cases. However, for 60fps source, the initial phase can not
 solve the problem because we can not maintain 1 vsync 1 frame switching always
 because eventually we need drop a frame for every 1000 frames. It means that
 during the playback, this initial phase will be shiftted. And when the vsync
 switching happens at those uneven PTS boundary, the same problem happens.
 [Solution] The change is a general frame switching improvement to avoid two
 situations: a) In one vsync, there are two frames toggled (frame dropping),
 but the next vsync there is no frame flipped because of its PTS has not arrived.
 This will cause unnecessary frame dropping and what we do is to move the second
 video frame to next vsync window. b) In one vsync, there are no frames be flipped
 (frame repeating), but the next vsync will have more than 1 frame flipped. It's
 also another frame dropping and what we do is to flip the next video frame in
 this vsync instead. So the idea is to make the frame switching at video display
 driver more smooth by avoid uneven frame flipping for each vsync. The timestamp
 of the test clip is not correct, but we can use this method to make output
 sequence smooth and avoid frame dropping.
 [Platform]
 needle,stark
 [Test]
 Verify with the special test clip according to the instruction. Verify
 NEEDLEPLAT-2604 and 2057 also.
Change-Id: Ic4dfc8aa243cf01acae296ac53fc2587583e601f
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2018-06-11 01:26:37 -07:00
Hui Zhang
49d559d52f media: add sei type defines
PD#166988: media:  add sei type defines

Change-Id: Ia10e16766f682d5a0b4c4c4ae04dbd8207b54bfc
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
2018-06-10 23:51:09 -07:00
Yong Qin
8529052b58 cec: bring up g12a cec function
PD#168156: cec: for g12a pin control

	1.modify dts about pinmux

Change-Id: I0f63da4d4f3bcbfbd4b7485e6ee2e1e26839e18d
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2018-06-11 13:38:33 +08:00
Mingyen Hung
c4c221ee44 random: meson-rng: read quality from dts
PD#167718: Setup quality in driver probe so that
meson-rng can contribute to entropy pool.

Change-Id: I47aa7c83b9877f5bf08ac6837f36a648624d0040
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2018-06-10 21:26:44 -07:00
Yonghui Yu
a95777dd0b mtd: set chip type as slc by default.
PD#167814: mtd: set chip type as slc by default.

newlly rebased upstream will report slc/mlc by
bit_per_cell which was not filled before.

Change-Id: Ibe23fcce6ab919cf3ceb19b5870bae13c3a52e0b
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
2018-06-07 22:07:45 -07:00
Evoke Zhang
882ed0addc lcd: avoid frequently reset panel without vbyone connected
PD#167723: lcd: avoid frequently reset panel without vbyone connected

Change-Id: I1ba64f6f38a505942d8303ddd564abddab131c21
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-06-07 06:04:00 -07:00
pengcheng chen
3908abb317 osd: fixed uboot logo 720p src display error
PD#167682: osd: fixed uboot logo 720p src display error

Change-Id: I3680210dc5afe91c9c5cf89f442ff21401844f4d
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-06-07 06:00:30 -07:00
MingLiang Dong
2c3038de4a hdr: fix g12a hlg function no effect
PD#161765: hdr: fix hlg function no effect

1. adjust g12a hdr code structure
2. fix hlg function no effect
3. optimize hdr effect

Change-Id: I954b29fbfea6cc8c45c1624af1cab0190ee2af3f
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2018-06-07 05:00:35 -07:00
Huan Biao
43844952aa dts: txlx enable thermal [1/1]
PD#167790: dts: txlx enable thermal

Change-Id: Idf35b8edabd55f6e8cded3a3adf74e1e0c0716a2
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2018-06-07 02:48:26 -07:00
liangzhuo.xie
e474d35b68 dts: add txlx_t962e_r321 buildroot config
PD#167951: dts: add txlx_t962e_r321 buildroot config

Change-Id: I9106738dc1463a78ea1e27ccb9e7e007eab40bd3
Signed-off-by: liangzhuo.xie <liangzhuo.xie@amlogic.com>
2018-06-06 23:53:56 -07:00
Yi Zhou
16dae8ae66 hdmitx: fix no output when plugin dvi equipment
PD#167811: hdmitx: fix no output when plugin dvi equipment

In uboot,hdmitx only output hdmi video stream. When plugin dvi
equipments, we choose dvi stream after reading edid.

Change-Id: Ic4dce29e98b9da58e8b79ffec3de933965b23ea3
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-06-06 22:24:26 -07:00
Yue Wang
fe20edf1d3 usb: fix possible null pointer dereference.
PD#167891: usb: fix possible null pointer dereference.

Change-Id: I683422ad8c6ff386eec3d0c7ace9310dca1c1fe6
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-06-06 19:42:11 -07:00
Hang Cheng
549632f69e hdmirx: optimize recovery method for no signal issue
PD#167228: hdmirx: optimize recovery method for no signal issue

1.phy reset for no signal issue after esd test
2.run eq constantly if tmds can't lock

Change-Id: I1a4ad17459d1cdbb2e64f9d51830de9e0fffdb93
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2018-06-06 03:24:32 -07:00
Evoke Zhang
b32bf6adb1 backlight: ldim: switch alg for txlx
PD#167455: backlight: ldim: switch alg for txlx

Change-Id: Ia2986d65c8535ddb264d42f0f9885bb04409b59c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-06-06 02:07:19 -07:00
Dezhi Kong
12f646ba19 vdin: optimize vdin mif reset
PD#167700: vdin: optimize vdin mif reset

Change-Id: I9b2a89969d32aa4643a6ec0c2f26d1a10495f15a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-06-06 02:06:35 -07:00
Yi Zhou
1440e5ec72 hdmitx: update pll parameters of 5.934G
PD#164877: hdmitx: update pll parameters of 5.934G

Change-Id: Ifb7305b1a2445894ba5acac124375444438012bf
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-06-06 01:01:40 -07:00