Jianxin Qin [Thu, 21 Jun 2018 03:21:56 +0000 (11:21 +0800)]
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>
Matthew Shyu [Tue, 19 Jun 2018 11:04:13 +0000 (19:04 +0800)]
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>
Shuai Li [Fri, 15 Jun 2018 09:27:55 +0000 (17:27 +0800)]
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>
Huan Biao [Thu, 7 Jun 2018 06:36:06 +0000 (14:36 +0800)]
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>
Nian Jing [Wed, 20 Jun 2018 05:56:47 +0000 (13:56 +0800)]
cvbsout: cvbsout/vdac coverity fix
PD#168730: coverity fix
Change-Id: I0753c4ae9a4eed14a46a1f2bcda4cc11fbb0b351
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
Yu Tu [Wed, 20 Jun 2018 03:14:39 +0000 (11:14 +0800)]
uart: fix support sysrq function. [1/1]
PD#167742: uart: support sysrq
Change-Id: I67b183942047428a3aea35cbcf8ffae490319ac8
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Lei Yang [Tue, 12 Jun 2018 10:20:30 +0000 (18:20 +0800)]
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>
MingLiang Dong [Tue, 12 Jun 2018 03:08:59 +0000 (11:08 +0800)]
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>
Matthew Shyu [Thu, 24 May 2018 08:23:42 +0000 (16:23 +0800)]
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>
kieth liu [Fri, 8 Jun 2018 07:51:56 +0000 (15:51 +0800)]
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>
Weiguang Ruan [Thu, 14 Jun 2018 07:48:14 +0000 (15:48 +0800)]
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>
nengwen.chen [Fri, 15 Jun 2018 06:52:20 +0000 (14:52 +0800)]
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>
pengcheng chen [Tue, 5 Jun 2018 01:39:38 +0000 (09:39 +0800)]
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>
Zhuo Wang [Fri, 15 Jun 2018 06:40:51 +0000 (14:40 +0800)]
ethernet: fix reboot error
PD#164611: fix error not support powerlow
Change-Id: I9d65b25bebcfb7afccc590629c7865ed490440de
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
pengcheng chen [Mon, 11 Jun 2018 08:54:47 +0000 (16:54 +0800)]
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>
Yi Zhou [Wed, 13 Jun 2018 06:32:33 +0000 (14:32 +0800)]
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>
Long Yu [Fri, 11 May 2018 07:39:04 +0000 (15:39 +0800)]
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>
Zhuo Wang [Thu, 14 Jun 2018 06:01:11 +0000 (14:01 +0800)]
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>
Jianxin Qin [Fri, 4 May 2018 03:39:47 +0000 (11:39 +0800)]
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>
Yi Zhou [Mon, 11 Jun 2018 02:52:44 +0000 (10:52 +0800)]
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>
Zongdong Jiao [Wed, 13 Jun 2018 09:16:34 +0000 (17:16 +0800)]
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>
Yong Qin [Mon, 11 Jun 2018 07:06:45 +0000 (15:06 +0800)]
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>
Evoke Zhang [Tue, 12 Jun 2018 07:55:04 +0000 (15:55 +0800)]
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>
xuhua zhang [Thu, 7 Jun 2018 06:15:16 +0000 (14:15 +0800)]
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>
Yong Qin [Wed, 6 Jun 2018 08:48:59 +0000 (16:48 +0800)]
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>
Yue Wang [Wed, 13 Jun 2018 09:28:40 +0000 (17:28 +0800)]
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>
Evoke Zhang [Fri, 8 Jun 2018 08:25:21 +0000 (16:25 +0800)]
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>
shihong.zheng [Wed, 13 Jun 2018 02:53:36 +0000 (10:53 +0800)]
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>
yicheng shen [Thu, 7 Jun 2018 03:07:02 +0000 (11:07 +0800)]
hdmirx: add load22key handle
PD#153894: hdmirx: optimize load22key sw sequence
Change-Id: I888cbc2911e0739ec078e03cb475069cc4e1a49c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Jian Xu [Wed, 6 Jun 2018 05:11:19 +0000 (13:11 +0800)]
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>
Zongdong Jiao [Tue, 12 Jun 2018 02:34:38 +0000 (10:34 +0800)]
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>
Bencheng Jing [Mon, 11 Jun 2018 07:58:15 +0000 (15:58 +0800)]
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>
manhao liang [Mon, 11 Jun 2018 07:52:24 +0000 (15:52 +0800)]
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>
yicheng shen [Wed, 6 Jun 2018 05:39:31 +0000 (13:39 +0800)]
hdmirx: fix coverity errors
PD#167692: hdmirx: fix coverity errors
Change-Id: I044b9e84f090e1f7b1652891522eeb1adb1ed0ac
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
shuanglong.wang [Mon, 11 Jun 2018 02:53:23 +0000 (10:53 +0800)]
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>
Hui Zhang [Wed, 23 May 2018 10:56:05 +0000 (18:56 +0800)]
media: add sei type defines
PD#166988: media: add sei type defines
Change-Id: Ia10e16766f682d5a0b4c4c4ae04dbd8207b54bfc
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Yong Qin [Thu, 7 Jun 2018 09:26:39 +0000 (17:26 +0800)]
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>
Mingyen Hung [Fri, 8 Jun 2018 08:19:42 +0000 (16:19 +0800)]
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>
Yonghui Yu [Thu, 7 Jun 2018 06:01:34 +0000 (14:01 +0800)]
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>
Evoke Zhang [Tue, 5 Jun 2018 02:13:43 +0000 (10:13 +0800)]
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>
pengcheng chen [Thu, 7 Jun 2018 10:35:35 +0000 (18:35 +0800)]
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>
MingLiang Dong [Thu, 7 Jun 2018 03:43:48 +0000 (11:43 +0800)]
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>
Huan Biao [Wed, 6 Jun 2018 08:00:15 +0000 (16:00 +0800)]
dts: txlx enable thermal [1/1]
PD#167790: dts: txlx enable thermal
Change-Id: Idf35b8edabd55f6e8cded3a3adf74e1e0c0716a2
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
liangzhuo.xie [Wed, 6 Jun 2018 13:01:03 +0000 (21:01 +0800)]
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>
Yi Zhou [Tue, 5 Jun 2018 08:57:36 +0000 (16:57 +0800)]
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>
Yue Wang [Wed, 6 Jun 2018 09:05:31 +0000 (17:05 +0800)]
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>
Hang Cheng [Wed, 30 May 2018 06:11:46 +0000 (14:11 +0800)]
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>
Evoke Zhang [Thu, 31 May 2018 12:29:42 +0000 (20:29 +0800)]
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>
Dezhi Kong [Wed, 6 Jun 2018 06:17:12 +0000 (14:17 +0800)]
vdin: optimize vdin mif reset
PD#167700: vdin: optimize vdin mif reset
Change-Id: I9b2a89969d32aa4643a6ec0c2f26d1a10495f15a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
Yi Zhou [Thu, 24 May 2018 10:29:50 +0000 (18:29 +0800)]
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>
Dezhi Kong [Mon, 28 May 2018 07:24:54 +0000 (15:24 +0800)]
tvin: optimize for game mode
PD#165399: tvin: optimize for game mode
Change-Id: Ifcdb6ff8b88f433e4aa07c4b5692dff8ac6134ea
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
Nian Jing [Tue, 5 Jun 2018 10:11:47 +0000 (18:11 +0800)]
tvafe: optimize for electrical perfomance test
PD#164844: add hsync adjust for ntscm
use a fixed vbi threshold 0x30 for vbi
Change-Id: Ia4d79a2b2b785bf86a976c519c44ef42fcb32d1a
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
Nian Jing [Tue, 5 Jun 2018 09:11:34 +0000 (17:11 +0800)]
tvafe: fix atv hsync performance failed
PD#165990: hsync adjust may cause vsync adjust then modify 0x8a
Change-Id: I06714dbdcb0bbb7456b2318bd442fe5a3a1a8d9d
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
Dezhi Kong [Wed, 30 May 2018 07:43:05 +0000 (15:43 +0800)]
di: enable read mif go field reset default
PD#165701: di: enable read mif go field reset default
1.enable di pre and post read mif go field reset
2.enable vd1 and vd2 read mif go field reset
Change-Id: I74db04ed345f348a805634b3e97f381cfb532963
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
Lei Qian [Wed, 6 Jun 2018 04:34:08 +0000 (12:34 +0800)]
dts: txlx disable thermal [1/1]
PD#167790: dts: txlx disable thermal
Revert "dts: txlx enable thermal [1/1]", it cause trunk crash
This reverts commit
998d78aa919e5d4c296f9f36e8fd7a7435c0da5e.
Change-Id: I4ccd214c665f67ec549cea5bba326e4ad3fd680b
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
Xingyu Chen [Mon, 4 Jun 2018 08:53:44 +0000 (16:53 +0800)]
pinctrl: fixed abnormal pulse signal problem
PD#167713: pinctrl: fixed abnormal pulse signal problem
GPIO_O: control output level, and available in output mode
GPIO_OEN: control output enable; GPIO_OEN=0: output, GPIO_OEN=1: input
Precondition:
- GPIO_OEN=1
- GPIO_O=1
- Low level on pin
if we use the interface below to set pin to output mode and output low
level, the pin will generate abnormal pulse signal with about 1us.
gpio_direction_output(pin, GPIOF_OUT_INIT_LOW)
low -> high -> low
GPIO_OEN=1 GPIO_OEN=0 GPIO_OEN=0
GPIO_O=1 GPIO_O=1 GPIO_O=0
to solve the problem, we must ensure that the GPIO_O is set before the
GPIO_OEN.
low -> low -> low
GPIO_OEN=1 GPIO_OEN=1 GPIO_OEN=0
GPIO_O=1 GPIO_O=0 GPIO_O=0
Change-Id: I02bdcc46a40aeb7378799ecbafda3825704d1003
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
Lei Qian [Tue, 5 Jun 2018 08:39:27 +0000 (16:39 +0800)]
dts: txlx enable thermal [1/1]
PD#167790:
Change-Id: I933212d2c2a25a6f07f82ab3293c912a041a258a
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
xuhua zhang [Tue, 5 Jun 2018 08:37:01 +0000 (16:37 +0800)]
vdin: fix the green point problem.
PD#167113: vdin: fix the green point problem.
When the vdin probe function is open,
there will be a green point at coordinate(0,0).
We need close vdin probe function default.
Change-Id: I47d1c4787a6633d2b044df5c8c0690137acce4f7
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
tao zeng [Fri, 1 Jun 2018 07:05:11 +0000 (15:05 +0800)]
mm: reduce cache line size to 64 bytes to save memory
PD#166821: mm: reduce cache line size
If cacheline size is set to 128, then smallest kmalloc is 128, this will
cause low memory usage for slab and waste lot of memory. For ARM64,
cacheline size is hardware set to 64 bytes. Reduce to 64 bytes can improve
usage for slab. And can help to save memory.
Change-Id: Id7f39bec324345d3e21f2a4e954803179fb54004
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Hang Cheng [Mon, 7 May 2018 06:47:23 +0000 (14:47 +0800)]
hdmirx: keep esm work after signal unstable
PD#165782: hdmirx: keep esm work after signal unstable
Change-Id: I8a79276d48cdfb15c4b9d2833378b54591500b89
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Evoke Zhang [Fri, 1 Jun 2018 04:23:54 +0000 (12:23 +0800)]
backlight: ldim: add new flow for brightness update when ldim_func disabled
PD#167480: add new flow for brightness update when ldim_func disabled
fix issue: can't update brightness when ldim_func disabled
Change-Id: I66b5fac432ac5178e7ea176048b9e7bac8ca889b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Sandy Luo [Mon, 4 Jun 2018 11:10:15 +0000 (19:10 +0800)]
dts: u211: add G12 g211 512M DDR dts
PD#167732: add for 512M ddr project
Change-Id: Idcd49ed80886f21c418b7d6cc20472a3655157af
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
Evoke Zhang [Wed, 30 May 2018 09:17:47 +0000 (17:17 +0800)]
lcd: change vx1 reset tasklet to workqueue
PD#167224: lcd: change vx1 reset tasklet to workqueue
Change-Id: Id124a9133feda4d0c894c5c651a14115b7ca7216
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Bo Yang [Mon, 4 Jun 2018 07:20:02 +0000 (15:20 +0800)]
efuse: use sprintf instead of printk in show functions
PD#134355: use sprintf instead of printk in show functions
Change-Id: I79b104b3417b0f7d202ec1cde026ea6bad9c2103
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
MingLiang Dong [Wed, 23 May 2018 12:49:55 +0000 (20:49 +0800)]
hdr: set bt2020 output when connect hdr tv
PD#165557: hdr set bt2020 output when connect hdr tv
Change-Id: I7409d48cffe471bd1276dc2158bfbc9d39073726
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
Yi Zhou [Wed, 23 May 2018 12:45:56 +0000 (20:45 +0800)]
hdmitx: use bt2020 colorimetry when connecting BT2020 TVs
PD#165557: hdmitx: use bt2020 colorimtery when connecting
BT2020 TVs
Change-Id: I4af19ac0e70df60eb469b67fbc567d31ec6f0f4b
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
nengwen.chen [Mon, 28 May 2018 11:36:24 +0000 (19:36 +0800)]
atv_demod: Optimize atv demod when search. [1/2]
PD#167151: atv_demod: Optimize atv demod when search.
Change-Id: Iae643c898cc8b19314c6cc5e5d02a20b71ba392f
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
tao zeng [Fri, 18 May 2018 08:58:13 +0000 (16:58 +0800)]
ramdump: add ramdump support for kernel [4/6]
PD#165764: add ramdump support
1. Add Makefile and driver of ramdump;
2. Flush all cache before panic reboot;
3. Change panic reboot reason when ramdump is disabled;
4. Add dts support/open watch dog for chips.
Change-Id: Ieeb418f038bfda119c3156a7f8f8b05c8bc58ad2
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
Nian Jing [Fri, 25 May 2018 10:57:47 +0000 (18:57 +0800)]
tvafe: optimize for atv stability
PD#166590: fix system hanging on atv/dtv switch
Change-Id: Iad558abc74bf37fe926c968bb217bd043e3b90b1
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
Dezhi Kong [Thu, 31 May 2018 11:04:59 +0000 (19:04 +0800)]
di: ensure mif path reset to default
PD#165270: di: ensure mif path reset to default
Change-Id: I122a48efc49ef89cab5b647e3af7ea6d78e5f4fb
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
manhao liang [Thu, 31 May 2018 08:00:47 +0000 (16:00 +0800)]
dvb: AV SYNC register func instead of func pointer.
PD#167562: dvb av sync: register func instead of func pointer.
Change-Id: Ia28f30d99e9ffb27236ec5d4d0da94451a013e6d
Signed-off-by: manhao liang <manhao.liang@amlogic.com>
Yong Qin [Thu, 31 May 2018 11:53:09 +0000 (19:53 +0800)]
cec: add transwitch cec config [1/1]
PD#165002: cec: for support transwitch cec ip
Change-Id: I05ec182bbb1962a3a0b42702f87ff15e9de681b0
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Brian Zhu [Thu, 31 May 2018 08:07:36 +0000 (16:07 +0800)]
vpp: init vd1 pps dummy data as black
PD#166890: vpp: init vd1 pps dummy data as black
Change-Id: Id248bdcb201ada504776e7eefc4cf1d47ae1eeb3
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
rongrong zhou [Tue, 15 May 2018 05:46:08 +0000 (13:46 +0800)]
video: video not smooth issue
PD#163845 video: video not smooth issue
1. merge STARKPLAT-2290
[Problem]
When doing fast seek (Netflix swim) in secure non-tunneled
playback case, the PTS info for frames before seek can still
be sent from sf/hwc to display driver and mess up with the
time management for frames after seek, which caused frame
dropping at display driver due to a later PTS (from playback
before seek) is set as reference time.
[Solution]
Add a new meta data to mark the PTS record is for which playback
session so display driver can ignore any PTS set from previous
session.
2. kodi render first frame, then drop issue.
Change-Id: I0d91d7b1674a40ce58c0ebc20f820f3395704a51
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
Yi Zhou [Thu, 24 May 2018 08:42:38 +0000 (16:42 +0800)]
hdmitx: add default edid in drm
PD#158474: hdmitx: add default edid in drm
Change-Id: Ia9faa12f00a5cd01550dea1f1fe136d99e697f87
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Kaifu Hu [Thu, 24 May 2018 10:48:14 +0000 (18:48 +0800)]
hdmitx: config DDC to 50kHz [4/4]
PD#167050: hdmitx: config DDC to 50kHz
Config DDC to 50kHz for HDMI2.0 CTS HF1-55.
HDMI Spec require that I2C timing shall
comply with the Standard Mode.
Change-Id: I3b3314b6df81089850a082c01e34175e3c2079d4
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
Evoke Zhang [Wed, 23 May 2018 04:26:41 +0000 (12:26 +0800)]
backlight: ldim: optimize get config flow [2/3]
PD#166898: backlight: ldim: optimize get config flow
also correct local dimming spelling mistake
Change-Id: Iea2c7802e9fa55ad2e587126e1281ec9b34113e2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
pengcheng chen [Tue, 29 May 2018 06:48:17 +0000 (14:48 +0800)]
osd: FBIO_WAITFORVSYNC expand to 64bit caused chrome crashed
PD#167080: osd: FBIO_WAITFORVSYNC expand to 64bit caused chrome crashed
1. used FBIO_WAITFORVSYNC and FBIO_WAITFORVSYNC_64
Change-Id: Ia4a457f876fad24c6d1df60f3ea1b5fdc7f6bd8a
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Jian Hu [Wed, 30 May 2018 05:39:59 +0000 (13:39 +0800)]
pwm: fix array out of bounds
PD#165090: pwm: fix array out of bounds
Change-Id: I5fbc06619cbbc04dc998ea68e4f4a23cdb2e20a0
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Bo Yang [Mon, 7 May 2018 11:34:44 +0000 (19:34 +0800)]
arm64: dts: add amlogic jtag support for g12a
PD#165810: add amlogic jtag support for g12a
Change-Id: I6f3fa717a54f027155c41496c50e2ffaae009c33
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
Sunny Luo [Thu, 19 Apr 2018 07:04:56 +0000 (15:04 +0800)]
spicc: add enhanced features of oen, clock divider
PD#164751: spicc: add enhanced features of oen, clock divider
1. use the definite and significative name "has_oen" and
"has_enhance_clk_div" to replace the unclear "is_enhance".
2. add some comment about enhance clk divider.
Change-Id: I9ffe51aaf696cdb09b5e486d60b5378c6433783e
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
Larson Jiang [Fri, 25 May 2018 10:01:02 +0000 (18:01 +0800)]
BT: fix bluetooth power issue for AP62X8
PD#166763: fix bluetooth power issue for AP62X8
Change-Id: I4cdf2e3af67a47908a55113cf05dd9fdffd1e0cd
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
tao zeng [Fri, 25 May 2018 13:19:25 +0000 (21:19 +0800)]
mm: optimize for cma free time
PD#165878: mm: optimize for cma free time
Fix bad parameter error and using high efficient free method.
Change-Id: I5fa1373644a373b3dd94775c5c29891f7f6f7420
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
wenfeng.guo [Wed, 16 May 2018 12:17:01 +0000 (20:17 +0800)]
vlock: adjust enc mode
PD#162336: vlock: adjust enc mode
1) separate vlock code from amve.c
2) optimize vlock default setting.
3) adjust enc mode
4) add manual enc soft adjust
Change-Id: Ie180c7fb6d9b1aa1fa016dd39bfa401197a5ac85
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
Kaifu Hu [Mon, 28 May 2018 03:01:25 +0000 (11:01 +0800)]
hdmitx: fix VSDB block parsing error
PD#160588: hdmitx: fix VSDB parsing error
It cann't parse YUV format when using special
edid with support YUV.
Change-Id: Ic17e3b3dc1f26694252e608fa2e609d08578aa71
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
Yue Wang [Tue, 29 May 2018 02:13:59 +0000 (10:13 +0800)]
usb: fix usb phy 1 reset bug.
PD#167234: usb: fix usb phy 1 reset bug.
Change-Id: Iac4c59a95f8a85553ac665e675a47f1a733cc1a8
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
binqi.zhang [Thu, 17 May 2018 10:54:44 +0000 (18:54 +0800)]
GEM: allocated buffer size must be PAGE_SIZE alignment
PD#158474: do PAGE_SIZE alignment before initializing gem object
Change-Id: I98723ed2a22cfdc279253e06725482a656535184
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
manhao liang [Thu, 24 May 2018 06:37:23 +0000 (14:37 +0800)]
frame_sync: optimize AV SYNC procession.
PD#165368: frame_sync: optimize AV SYNC procession.
Change-Id: Ib9f11c059b9c2985878f83f428cebc5f70bdd0fd
Signed-off-by: manhao liang <manhao.liang@amlogic.com>
Xing Wang [Mon, 28 May 2018 07:28:18 +0000 (15:28 +0800)]
Audio: dts: disable pwrdet
PD#167203: Disable pwrdet for u200
Change-Id: Ied661fe8f578ef7a60ff9a9dda82408ad13a77ba
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
nengwen.chen [Fri, 25 May 2018 10:49:40 +0000 (18:49 +0800)]
atv_demod: Modify atv v4l2 dev number
PD#166852: atv_demod: Modify atv v4l2 dev number.
Change-Id: I6dfa226715d5e3908a20add4c93f0ba554a769dc
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Evoke Zhang [Mon, 21 May 2018 06:25:07 +0000 (14:25 +0800)]
lcd: mipi-dsi: optimize retry_enable management [2/2]
PD#166330: lcd: mipi-dsi: optimize retry_enable management,
change mipi-dsi check_state after retry flow finished.
fix issue: mipi panel status is incorrect sometimes when lcd enable.
Change-Id: I5fc30f46589274b1cc2fda735c166779233ce1c2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Jihong Sui [Tue, 22 May 2018 09:28:36 +0000 (17:28 +0800)]
hdr: add osd lut table for nts test
PD#164627: hdr: add osd lut table for nts test
1. debug fs : /sys/kernel/debug/hdr/cfg_en_osd_100
1: enable new osd lut table (for nts test)
0: use old osd lut table
2. dts: amlvecm:cfg_en_osd_100
1: enable new osd lut table (for nts test)
0/not define: use old osd lut table
Change-Id: If3c51eaba58f7d83188b8920ad7dca78d3b38c19
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Zongdong Jiao [Thu, 24 May 2018 08:16:11 +0000 (16:16 +0800)]
hdmitx: add hdcp topo information [3/5]
PD#165815: hdmitx: add hdcp topo information
1. add SYSFS 'hdcp_topo_info' to represent HDCP22 Topology
2. rewrite SYSFS 'hdcp22_type', should be controlled by Daemon
Change-Id: Ie9f748c5592a32b8658b63186429794e877fd41c
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Bencheng Jing [Thu, 24 May 2018 07:29:35 +0000 (15:29 +0800)]
video: change rgb pattern matrix coefficient from 601 to 709
PD#167037: video: optimize rgb2yuv for 709
Change-Id: I25d9085ddcdde467ac8f33b4795488f3f395ced2
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
pengcheng chen [Thu, 24 May 2018 06:43:55 +0000 (14:43 +0800)]
osd: updated vinfo when it is not null every frame
PD#167032: osd: updated vinfo when it is not null every frame
Change-Id: If914fc39d014e2a1c2db564d427292977edc7530
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Nan Li [Thu, 17 May 2018 07:10:02 +0000 (15:10 +0800)]
sdio: modify Cfg_irq_sdio_sleep reg set err
PD#166568: modify Cfg_irq_sdio_sleep reg set error.
Change-Id: I82946b321a729b378968466edee50ce3f8817bff
Signed-off-by: Nan Li <nan.li@amlogic.com>
Zhe Wang [Mon, 21 May 2018 05:21:00 +0000 (13:21 +0800)]
audio: add EQ/DRC control[1/3]
PD#166486: add EQ/DRC kcontrol
Change-Id: I9b49960b0f0d8e82a46e1b9670e3352e9289e3bc
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Yi Zhou [Thu, 10 May 2018 08:03:08 +0000 (16:03 +0800)]
hdmitx: fix bsod and path dealy under hdcp22
PD#166207: hdmitx: fix bsod and path dealy under hdcp22
1.HDMITX_TOP_HDCP22_BSOD[25] doesn't use bsod
2.HDCP22REG_CTRL[6.7] match path delays
between hdcp path and non-hdcp path
Change-Id: I295804895f715687f975ab8ecfb7ea348999095a
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
Jianxin Qin [Tue, 22 May 2018 09:33:24 +0000 (17:33 +0800)]
usb: modify the fifth compliance test partner
PD#163486: usb: modify the fifth compliance test parnter
Change-Id: Ic30f709ca278413576879b4ff5acc789f72c74d8
Signed-off-by: Jianxin Qin <jianxin.qin@amlogic.com>
kele bai [Tue, 15 May 2018 09:33:55 +0000 (17:33 +0800)]
di: fix nr pq load error
PD#162226: di: fix nr pq load error
1) move nr gate ctrl before nr init
2) fix skip logic error
3) load ctrl reg in irq avoid affect pre sequence
Change-Id: I9b5438f55e42eabfa37e10a04dc0f3026bbbd595
Signed-off-by: kele bai <kele.bai@amlogic.com>