platform/kernel/linux-amlogic.git
6 years agotvin: optimize for game mode
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>
6 years agotvafe: optimize for electrical perfomance test
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>
6 years agotvafe: fix atv hsync performance failed
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>
6 years agodi: enable read mif go field reset default
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>
6 years agodts: txlx disable thermal [1/1]
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>
6 years agopinctrl: fixed abnormal pulse signal problem
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>
6 years agodts: txlx enable thermal [1/1]
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>
6 years agovdin: fix the green point problem.
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>
6 years agomm: reduce cache line size to 64 bytes to save memory
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>
6 years agohdmirx: keep esm work after signal unstable
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>
6 years agobacklight: ldim: add new flow for brightness update when ldim_func disabled
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>
6 years agodts: u211: add G12 g211 512M DDR dts
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>
6 years agolcd: change vx1 reset tasklet to workqueue
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>
6 years agoefuse: use sprintf instead of printk in show functions
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>
6 years agohdr: set bt2020 output when connect hdr tv
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>
6 years agohdmitx: use bt2020 colorimetry when connecting BT2020 TVs
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>
6 years agoatv_demod: Optimize atv demod when search. [1/2]
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>
6 years agoramdump: add ramdump support for kernel [4/6]
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>
6 years agotvafe: optimize for atv stability
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>
6 years agodi: ensure mif path reset to default
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>
6 years agodvb: AV SYNC register func instead of func pointer.
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>
6 years agocec: add transwitch cec config [1/1]
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>
6 years agovpp: init vd1 pps dummy data as black
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>
6 years agovideo: video not smooth issue
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>
6 years agohdmitx: add default edid in drm
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>
6 years agohdmitx: config DDC to 50kHz [4/4]
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>
6 years agobacklight: ldim: optimize get config flow [2/3]
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>
6 years agoosd: FBIO_WAITFORVSYNC expand to 64bit caused chrome crashed
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>
6 years agopwm: fix array out of bounds
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>
6 years agoarm64: dts: add amlogic jtag support for g12a
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>
6 years agospicc: add enhanced features of oen, clock divider
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>
6 years agoBT: fix bluetooth power issue for AP62X8
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>
6 years agomm: optimize for cma free time
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>
6 years agovlock: adjust enc mode
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>
6 years agohdmitx: fix VSDB block parsing error
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>
6 years agousb: fix usb phy 1 reset bug.
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>
6 years agoGEM: allocated buffer size must be PAGE_SIZE alignment
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>
6 years agoframe_sync: optimize AV SYNC procession.
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>
6 years agoAudio: dts: disable pwrdet
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>
6 years agoatv_demod: Modify atv v4l2 dev number
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>
6 years agolcd: mipi-dsi: optimize retry_enable management [2/2]
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>
6 years agohdr: add osd lut table for nts test
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>
6 years agohdmitx: add hdcp topo information [3/5]
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>
6 years agovideo: change rgb pattern matrix coefficient from 601 to 709
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>
6 years agoosd: updated vinfo when it is not null every frame
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>
6 years agosdio: modify Cfg_irq_sdio_sleep reg set err
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>
6 years agoaudio: add EQ/DRC control[1/3]
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>
6 years agohdmitx: fix bsod and path dealy under hdcp22
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>
6 years agousb: modify the fifth compliance test partner
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>
6 years agodi: fix nr pq load error
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>
6 years agoatv_demod: Add atv afc [2/2]
nengwen.chen [Mon, 21 May 2018 03:25:43 +0000 (11:25 +0800)]
atv_demod: Add atv afc [2/2]

PD#166320: Add atv afc(Modify module params use).

Change-Id: I2d9d84c742ab1ce56c99ff8e40b483bd01d4d237
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
6 years agoaudio: auge: init spdif_b when bootup and add channel status
Xing Wang [Mon, 30 Apr 2018 13:12:28 +0000 (21:12 +0800)]
audio: auge: init spdif_b when bootup and add channel status

PD#165171: audio: auge: init spdif_b when bootup and add channel status

Change-Id: I001d74a0f21fb3f02edf741bd3b87d45dfddcd5f
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agohdmitx: add dolby debug info
Kaifu Hu [Tue, 24 Apr 2018 02:02:55 +0000 (10:02 +0800)]
hdmitx: add dolby debug info

PD#164913: hdmitx: add dolby debug info

Add dolby debug info.

Change-Id: I65156223b66bcb95c31e8b60a602f834bacf89f2
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
6 years agoSMC: secmon: uniform SMC call interface.
Yan Wang [Mon, 29 Jan 2018 08:16:11 +0000 (16:16 +0800)]
SMC: secmon: uniform SMC call interface.

PD#160539: check secmon dev in dts and uniform SMC call interface.

 1. SMC call interface is provided by ARCH.
    arm_smccc_smc(...)
 2. check secmon device is registed or not.

Change-Id: I5bd58747db5b167ab8ad59be083f31e7b6395bbf
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
6 years agohdmirx: optimize timing format detection
Hang Cheng [Wed, 9 May 2018 11:54:15 +0000 (19:54 +0800)]
hdmirx: optimize timing format detection

PD#164010: hdmirx: optimize timing format detection

Change-Id: Ibf868664d4fda5fa21d4e80cfcc6575b25acd500
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
6 years agodemux: modify interrupt no for dmx 2
Chuangcheng Peng [Tue, 22 May 2018 07:53:22 +0000 (15:53 +0800)]
demux: modify interrupt no for dmx 2

PD#165368: enable dmux 2 work

Change-Id: Ic21bbc30c8b2cc7eeedd9206c1f355156554646f
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
6 years agoosd: return if vinfo is null
pengcheng chen [Sat, 19 May 2018 14:19:24 +0000 (22:19 +0800)]
osd: return if vinfo is null

PD#165381: osd: return if vinfo is null

Change-Id: I21b7de315859268f51b185a77ad221ded5a2d755
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agoosd: rdma overflow handling
pengcheng chen [Sat, 19 May 2018 11:06:03 +0000 (19:06 +0800)]
osd: rdma overflow handling

PD#165381: osd: rdma overflow handling

Change-Id: Ic82a7d03ef3f985720e0c84bf9c65f5dee9324a9
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agoosd: osd suspend fail issue
pengcheng chen [Wed, 2 May 2018 05:19:31 +0000 (13:19 +0800)]
osd: osd suspend fail issue

PD#164508: osd: suspend fail issue

Change-Id: I673a907bea2abf37d09967ef0e0a924806ce6fae
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agolcd: local dimming: add unifykey support [2/2]
Weiming Liu [Tue, 15 May 2018 11:29:01 +0000 (19:29 +0800)]
lcd: local dimming: add unifykey support [2/2]

PD#166418: ldim: add unifykey support

Change-Id: I0cb7629ed9824c50d5f85b7ec34e26c165a60a1e
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
6 years agoarm64: dts: g12a: add cpufreq 1.908G.
Hong Guo [Mon, 21 May 2018 03:27:44 +0000 (11:27 +0800)]
arm64: dts: g12a: add cpufreq 1.908G.

PD#165143: cpufreq: add cpufreq 1.908G.

Change-Id: Id8cca5402a02372247def759ff455ef5bbe11f05
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
6 years agodts: enable picdec [1/1]
Lei Qian [Mon, 21 May 2018 13:31:34 +0000 (21:31 +0800)]
dts: enable picdec [1/1]

PD#166830: dts: enable picdec

or we can't play 4K picture

Change-Id: I7109cd421608a82fb5cd05617bf4065d4897a430
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
6 years agoethernet: add wol for internal phy
Zhuo Wang [Tue, 22 May 2018 03:26:34 +0000 (11:26 +0800)]
ethernet: add wol for internal phy

PD#166640: add wol for internal phy

Change-Id: I1c34af9022e5aa4968516d6826089531b55a1c10
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
6 years agodts: unify dvb dts definition
Cheng Tong [Mon, 21 May 2018 12:56:49 +0000 (20:56 +0800)]
dts: unify dvb dts definition

PD#163384: dts: unify dvb dts definition

Change-Id: I323c9200d2441aa8d40f4972612f9ecfbf0edc5b
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
6 years agovout: optimize invalid mode management for init
Evoke Zhang [Fri, 4 May 2018 02:54:16 +0000 (10:54 +0800)]
vout: optimize invalid mode management for init

PD#166032: vout: optimize invalid mode management for init

Change-Id: I16d36b1745faf0adf8316837d3df2d061ea94dda
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agoosd: fix dfbshow can't show picture
pengcheng chen [Thu, 10 May 2018 13:33:52 +0000 (21:33 +0800)]
osd: fix dfbshow can't show picture

PD#165698: osd: fix dfbshow can't show picture

Change-Id: I0f13537391c98f106a5154d498ef46af90aa7690
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agoMerge branch 'android-4.9' into amlogic-4.9-dev
Victor Wan [Tue, 22 May 2018 02:48:42 +0000 (10:48 +0800)]
Merge branch 'android-4.9' into amlogic-4.9-dev

6 years agoldim: add db load support
Weiming Liu [Mon, 14 May 2018 09:14:23 +0000 (17:14 +0800)]
ldim: add db load support

PD#166311: lcd: add ldim db load support

Change-Id: I71c8a6d3b07daae63d19dec128da3c71a6031cba
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
6 years agoosd: support hw vsync [1/1]
shuze.ma [Tue, 17 Apr 2018 07:03:45 +0000 (15:03 +0800)]
osd: support hw vsync [1/1]

PD#163001: osd: support hw vsync

Change-Id: I1e7f158b8cbc9434165745f77274ae353cfae342
Signed-off-by: shuze.ma <shuze.ma@amlogic.com>
6 years agoIR: add S905X small IR remote on T962E
gongwei.chen [Thu, 10 May 2018 09:02:01 +0000 (17:02 +0800)]
IR: add S905X small IR remote on T962E

PD#165963: IR: add S905X small IR remote on T962E

Change-Id: I3d3bf0abaf30c0dc8d0ce925afeeefff6af27923
Signed-off-by: Gongwei Chen <gongwei.chen@amlogic.com>
6 years agomm: remove total summary of pagetypeinfo
tao zeng [Wed, 16 May 2018 05:27:47 +0000 (13:27 +0800)]
mm: remove total summary of pagetypeinfo

PD#166462:

This caused vts VtsKernelProcFileApi on Android P failed.

Change-Id: I332c7ec324e7f87b0f8e0adeeef15cfd93f9b077
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agoatv_demod: Add atv afc [1/2]
nengwen.chen [Tue, 15 May 2018 11:27:42 +0000 (19:27 +0800)]
atv_demod: Add atv afc [1/2]

PD#166320: Add atv afc.

Change-Id: I7b5d8d6290f1e394900b09a1147e7db5ec6fecf4
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
6 years agodts: update p230 dts for attach mode
Cheng Tong [Thu, 17 May 2018 06:09:49 +0000 (14:09 +0800)]
dts: update p230 dts for attach mode

PD#163384: dts: update p230 dts for attach mode

Change-Id: Iac83d28e31883f812c05f7fcd0342b0f4f225475
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
6 years agovbi: fix vbi cc error
Xuhua Zhang [Fri, 9 Mar 2018 03:29:14 +0000 (11:29 +0800)]
vbi: fix vbi cc error

PD#161806: vbi: fix cc nosync and disappearance problem

Add interface to read real-time data what vbi-hw write to memory.

Change-Id: Ie36a9826ecf3320f7a1a366bac7a6a4f15e6f7d2
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
6 years agoarm64: dts: g12a: fine-tune U220 OPP
Hong Guo [Wed, 16 May 2018 02:20:21 +0000 (10:20 +0800)]
arm64: dts: g12a: fine-tune U220 OPP

PD#165143: fine-tune U220 OPP for stability.

Change-Id: I84d543519c9053db0060ba3d090c4ecc9f233fa8
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
6 years agoreboot: make system reboot when panic occurs
Yixun Lan [Fri, 18 May 2018 09:28:39 +0000 (17:28 +0800)]
reboot: make system reboot when panic occurs

PD#166529: reboot: make system reboot when panic occurs

CONFIG_PANIC_TIMEOUT=0 means no reboot when panic occurs,
This will make VTS stuck forever, fix this by making
the default reboot timeout as 5s.

Change-Id: Ib8888a4f87c6c178891d7e7fed2f186a6bfed119
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
6 years agodts: add defendkey function for G12A
Zhongfu Luo [Thu, 10 May 2018 12:16:00 +0000 (20:16 +0800)]
dts: add defendkey function for G12A

PD#164929: G12A need to support defendkey

add defendkey function in all G12A dts

Change-Id: Id269d4c14f2c2a6ad0674191aff353122a13d558
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
6 years agoethernet: fix wol_error when test eye_pattern
Zhuo Wang [Fri, 18 May 2018 09:56:11 +0000 (17:56 +0800)]
ethernet: fix wol_error when test eye_pattern

PD#166642: add eye pattern function for 4.9

Change-Id: If57f74262589c02e12cbff3f01745c70a687da9e
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
6 years agodefendkey: support secure upgrade check
Zhongfu Luo [Thu, 17 May 2018 11:50:11 +0000 (19:50 +0800)]
defendkey: support secure upgrade check

PD#164929: G12A need to support defendkey

Change-Id: I3c805c4dda03a39156fb91b53cc55ee8930f9e03
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
6 years agowifi: enable cfg80211 testmode for qca6174
libo [Thu, 17 May 2018 08:53:36 +0000 (16:53 +0800)]
wifi: enable cfg80211 testmode for qca6174

PD#166420: enable cfg80211 testmode for qca6174

Change-Id: I65f6fa499e02fdc48bc23f1e7541fd8e7fee4850
Signed-off-by: libo <bo.li@amlogic.com>
6 years agohdmitx: fix no display under frac_mode
Yi Zhou [Fri, 18 May 2018 04:41:38 +0000 (12:41 +0800)]
hdmitx: fix no display under frac_mode

PD#166241: hdmitx: fix no display under frac_mode

1.update pll parameters
2.4k60hz444/rgb8bit doesn't frac_mode

Change-Id: I45c8bade4cd8f83a7b4d36aadbdbbaa9dfca32f1
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agobacklight: ldim: add remap function restrictions by ldim_func [2/2]
Evoke Zhang [Thu, 17 May 2018 05:16:52 +0000 (13:16 +0800)]
backlight: ldim: add remap function restrictions by ldim_func [2/2]

PD#166583: backlight: ldim: add remap function restrictions by ldim_func
also optimize iw7027 driver

Change-Id: I2a863d17d3cef521b6d7af016f4c47e29ef5b44b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agovpp: fix the vskip overflow when playing interlace video
Brian Zhu [Sat, 5 May 2018 08:49:12 +0000 (16:49 +0800)]
vpp: fix the vskip overflow when playing interlace video

PD#164722: vpp: fix the vskip overflow when playing interlace video

Change-Id: Id65e8c58aedf35da4762280ae19cf933f08786f9
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agospicc: g12a: spicc0 pins_c debug
Sunny Luo [Fri, 18 May 2018 06:29:13 +0000 (14:29 +0800)]
spicc: g12a: spicc0 pins_c debug

PD#166556: spicc: g12a: spicc0 pins_c debug

Change-Id: I4f5f118410617cc3de8a1132100a1f7e21bc9f66
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
6 years agou221: disable cvbsout [2/2]
Evoke Zhang [Wed, 2 May 2018 09:34:00 +0000 (17:34 +0800)]
u221: disable cvbsout [2/2]

PD#165555: u221: disable cvbsout
s905y2 don't support cvbsout

Change-Id: If29a9c6e9fa38cafcbcf6e75f942fb03b2cd5e1b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agohdr: add hlg support
MingLiang Dong [Wed, 16 May 2018 09:24:32 +0000 (17:24 +0800)]
hdr: add hlg support

PD#166567: hdr: add hlg support

Change-Id: I00acc352ce534485c8950f979704f96880811faa
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agotsync: do not operate tsync_mode_switch before first video toggled.
shuanglong.wang [Mon, 14 May 2018 06:49:39 +0000 (14:49 +0800)]
tsync: do not operate tsync_mode_switch before first video toggled.

PD#165355: do not operate tsync_mode_switch before first video toggled.
Some stream in tunnel mode, first audio pts is large than
AV_DISCONTINUE_THREDHOLD_MAX(60s). In audio_hw it will check pcr and
apts diff, so large difference between pcr and apts will lead sync mode
from amster to vmaster
[ 2414.316223@3] vdec_init, dev_name:ammvdec_vp9,
vdec_type=VDEC_TYPE_STREAM_PARSER
[ 2414.326361@3] vp9: ver (201602101,0) decinfo: 1920x1080 rate=4000
[ 2414.326827@3] mem_start_virt failed
[ 2414.330600@3] init_pic_list ok, used_buf_num = 12
[ 2414.336555@2] set pts unstable
[ 2414.338121@2] success set parent hevc_p1_composite rate to 666666666
[ 2414.356287@0]
A-discontinue,pcr=1500,vpts=0,apts=1500,diff_pts=16209420,lugsp_5ts6
207920
[ 2414.359685@0] discontinue-tsync_mode:A->Vvptatr:S->adji
ffies=204004utsize 12179
[ 2414.366696@0] debugcnt=0x10,diff_pts=16209420,tsync_mode=0

Change-Id: I7e33abb5e6c27169ecec86fb6e4df33de6bd80cf
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
6 years agoavsync: av not sync problem cased by vp9 trig
shuanglong.wang [Mon, 14 May 2018 08:33:49 +0000 (16:33 +0800)]
avsync: av not sync problem cased by vp9 trig

PD#161895: av not sync problem cased by vp9 trig

1)vp9 initialization stream do not post VIDEO_START event,
so do not post VIDEO_STOP in unregister when not post
VIDEO_START which occured in vp9 tirg reset codec operation.
2)AV audio master adjust pcr according apts diff in
tsync tsync_set_apts need to reopen which was commented in
the begining tree of 4.9 codec
3)summit as Tim's patch

Change-Id: I9fb62aecb27f75d1ea9dff938452e0dd4f11b901
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
6 years agodi: fix nr4 param sys interface crash
kele bai [Tue, 15 May 2018 06:44:32 +0000 (14:44 +0800)]
di: fix nr4 param sys interface crash

PD#166354: di: fix nr4 param sys interface crash

1) nr4 param array access violation

Change-Id: Ia79bd0ef8118715c6f1a94c5427c2c4b715f8bf8
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agohdmirx: improve the snow noise issue during timing switching
Lei Yang [Wed, 16 May 2018 07:11:01 +0000 (15:11 +0800)]
hdmirx: improve the snow noise issue during timing switching

PD#166184: hdmirx: improve the snow noise issue during timing switching

Change-Id: If143d418758f3b0d4895a7ecab87cebe98d8c457
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
6 years agoosd: add afbc arb reset which caused screen blank
pengcheng chen [Sat, 12 May 2018 08:05:19 +0000 (16:05 +0800)]
osd: add afbc arb reset which caused screen blank

PD#166248: osd: afbc arb reset which caused screen blank

Change-Id: I35035a40a50d5123394d527c60df2abb58e10b9a
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
6 years agoaudio: codec: add suspend and resume for ad82584f
Xing Wang [Wed, 16 May 2018 03:33:41 +0000 (11:33 +0800)]
audio: codec: add suspend and resume for ad82584f

PD#165897: audio: codec: add suspend and resume for ad82584f

Change-Id: I5a98b4d19f4cc411ea2f94ab62bd323658fb1c25
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agolcd: add retry flow to ensure power on state
Evoke Zhang [Mon, 14 May 2018 12:24:25 +0000 (20:24 +0800)]
lcd: add retry flow to ensure power on state

PD#166330: mipi panel status is incorrect sometimes when lcd enable

Change-Id: Iace4963e576752208815d672befa4e215f860097
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agolcd: premote a common lcd_extern_i2c_probe
Weiming Liu [Fri, 13 Apr 2018 10:58:06 +0000 (18:58 +0800)]
lcd: premote a common lcd_extern_i2c_probe

PD#164139: lcd: premote a common lcd_extern_i2c_probe

premote a common lcd_extern_i2c_probe() function,
so it will be shared by various display controller IC

Change-Id: I47638520f32a0865829a1fd776c3a9ca626798ba
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
6 years agoamvecm: fix G12A eye protect function unused
MingLiang Dong [Fri, 11 May 2018 09:25:10 +0000 (17:25 +0800)]
amvecm: fix G12A eye protect function unused

PD#165151: amvecm: fix G12A eye protect function unused

1. G12A use post matrix as wb adjust module
2. fix 905x eye protect function bug

Change-Id: Ic161cafbb455cf278283d20ef9d93f18c07f5811
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agousb: phy2: analog tuning for aml-phy
Jianxin Qin [Thu, 10 May 2018 06:50:56 +0000 (14:50 +0800)]
usb: phy2: analog tuning for aml-phy

PD#164286: usb: phy2: analog tuning for aml-phy

Packet lost occures with high probability in High Speed mode, This patch
re-configurate PHY parameters for improving this issue.

Change-Id: If51d300a01d8c30dce27454ad887a0d14f2d1e52
Signed-off-by: Jianxin Qin <jianxin.qin@amlogic.com>
6 years agoscript: amlogic: add code scan script
Ao Xu [Tue, 15 May 2018 07:59:14 +0000 (15:59 +0800)]
script: amlogic: add code scan script

PD#166377: script: amlogic: add code scan script

Add code scan script.

Usage: ./script/amlogic/code_scan.sh [path]

Examples:
# scan all code
./script/amlogic/code_scan.sh

# scan specified directory
./script/amlogic/code_scan.sh drivers/amlogic

scan result is in src code's parent directory, named coverity_html

Change-Id: I069cd99d08014cc50a3bf127e199690649e196c8
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
6 years agohdmirx: fixed the pink screen issue when connect with roku box
yicheng shen [Fri, 4 May 2018 08:58:26 +0000 (16:58 +0800)]
hdmirx: fixed the pink screen issue when connect with roku box

PD#165686: hdmirx: fixed the pink screen issue when connect with roku box

Change-Id: Ia1723b9e88bcf7dd0773bc301301e682d35a9c5c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
6 years agocec: add err initiator int for cec error [2/3]
hongmin hua [Wed, 9 May 2018 09:17:55 +0000 (17:17 +0800)]
cec: add err initiator int for cec error [2/3]

PD#163965: cec: add err initiator int for cec error

Change-Id: I7a10f4d6a90d2e3a15ec3ed969735aadb230db43
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
6 years agohdmitx: update hdmi phsycial size during hotplug [1/1]
shuze.ma [Tue, 15 May 2018 10:52:28 +0000 (18:52 +0800)]
hdmitx: update hdmi phsycial size during hotplug [1/1]

PD#163001: update hdmi phsycial size during hotplug

Change-Id: I71e863c56abbe5ae8dd151de481b1465317cebf1
Signed-off-by: shuze.ma <shuze.ma@amlogic.com>