Commit Graph

646374 Commits

Author SHA1 Message Date
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
Dezhi Kong
941b85f711 tvin: optimize for game mode
PD#165399: tvin: optimize for game mode

Change-Id: Ifcdb6ff8b88f433e4aa07c4b5692dff8ac6134ea
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-06-05 23:33:22 -07:00
Nian Jing
a599913220 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>
2018-06-05 23:21:37 -07:00
Nian Jing
39ecbd284f 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>
2018-06-05 23:18:16 -07:00
Dezhi Kong
61c81bc3d5 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>
2018-06-05 22:40:43 -07:00
Lei Qian
aecabfb3d0 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 998d78aa91.

Change-Id: I4ccd214c665f67ec549cea5bba326e4ad3fd680b
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2018-06-05 22:30:11 -07:00
Xingyu Chen
f0c191798e 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>
2018-06-05 19:48:59 -07:00
Lei Qian
998d78aa91 dts: txlx enable thermal [1/1]
PD#167790:

Change-Id: I933212d2c2a25a6f07f82ab3293c912a041a258a
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2018-06-05 03:20:20 -07:00
xuhua zhang
4a68f21cec 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>
2018-06-05 16:37:01 +08:00
tao zeng
a7cb2216f1 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>
2018-06-05 00:30:44 -07:00
Hang Cheng
8c3828fb51 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>
2018-06-04 22:48:14 -07:00
Evoke Zhang
51bd7f3f4d 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>
2018-06-04 21:04:44 -07:00
Sandy Luo
01915831be 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>
2018-06-04 04:17:34 -07:00
Evoke Zhang
4022870f26 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>
2018-06-04 02:00:20 -07:00
Bo Yang
f1d595ed14 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>
2018-06-04 01:23:27 -07:00
MingLiang Dong
cfe3685971 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>
2018-06-04 00:12:25 -07:00
Yi Zhou
751632f107 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>
2018-06-04 14:27:52 +08:00
nengwen.chen
33049edfb4 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>
2018-06-03 19:54:15 -07:00
tao zeng
9cbd99daf1 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>
2018-06-03 02:57:35 -07:00
Nian Jing
446ebd1696 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>
2018-06-01 01:33:59 -07:00
Dezhi Kong
c119759b78 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>
2018-06-01 00:46:18 -07:00
manhao liang
c1065e6c7d 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>
2018-05-31 21:34:14 -07:00
Yong Qin
1e75841e39 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>
2018-05-31 19:53:09 +08:00
Brian Zhu
64ae81e077 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>
2018-05-31 03:42:16 -07:00
rongrong zhou
45ed48e2ef 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>
2018-05-31 02:46:01 -07:00
Yi Zhou
6c6be9bcfa 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>
2018-05-30 22:35:33 -07:00
Kaifu Hu
c1149537a8 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>
2018-05-30 02:32:53 -07:00
Evoke Zhang
7ed9aace4a 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>
2018-05-30 01:30:55 -07:00
pengcheng chen
7633ab0e3b 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>
2018-05-30 00:19:25 -07:00
Jian Hu
22e8345f00 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>
2018-05-30 00:00:47 -07:00
Bo Yang
388c439cf3 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>
2018-05-29 23:49:47 -07:00
Sunny Luo
3f6d2c768f 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>
2018-05-29 23:10:28 -07:00
Larson Jiang
0dfaf2ae30 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>
2018-05-29 22:22:40 -07:00
tao zeng
4b607551d1 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>
2018-05-29 20:23:36 -07:00
wenfeng.guo
241dc9bb02 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>
2018-05-29 01:51:58 -07:00
Kaifu Hu
4db0efd03b 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>
2018-05-28 21:05:18 -07:00
Yue Wang
05bcd153b0 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>
2018-05-29 10:17:04 +08:00
binqi.zhang
4b623299e4 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>
2018-05-28 06:22:59 -07:00
manhao liang
b208d6cc7f 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>
2018-05-28 05:47:12 -07:00
Xing Wang
d409afc9a5 Audio: dts: disable pwrdet
PD#167203: Disable pwrdet for u200

Change-Id: Ied661fe8f578ef7a60ff9a9dda82408ad13a77ba
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
2018-05-28 17:12:33 +08:00
nengwen.chen
2a1926bbf9 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>
2018-05-27 22:39:48 -07:00
Evoke Zhang
23d9f454f8 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>
2018-05-27 20:23:03 -07:00
Jihong Sui
95a15520ca 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>
2018-05-27 18:35:01 -07:00
Zongdong Jiao
715a75cd69 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>
2018-05-26 16:25:57 +08:00