Commit Graph

648169 Commits

Author SHA1 Message Date
shihong.zheng
d288cd6fc4 media: keep last normal frame before reset [2/2]
PD#OTT-71

Problem:
google cast display green lump when seek.
reset after seek opration.

Solution:
keep last normal frame before reset and buf free.

Verify:
U211, Atom

Change-Id: I02304998c9434f1055de1138700510f4c19f466f
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2018-10-30 06:43:22 -07:00
nengwen.chen
7ef827f5a8 atv_demod: switch channel with the script, the ATV shows no signal [1/1]
PD#SWPL-791

Problem:
Switch channel with the script lasts 14 hours, the ATV shows no signal.

Solution:
To avoid conflict, don't need to check the CLK
and PLL states in atv demod write and read function.

Verify:
verified by p321

Change-Id: I033c54f14541ed540dfce1b9c4e21d2b5a8b9487
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-10-30 04:39:20 -07:00
hongmin hua
7937762427 hdmirx: add hdmirx repeater function [1/6]
PD#SWPL-323:

Problem:
add hdmi repeater function

Solution:
1.add the edid receive and mix.
2.add the flow of repeater.

Verify:
R321

Change-Id: I9942c5f345e2fdfff110f01d4d0c2b4b23120c07
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
2018-10-30 04:37:06 -07:00
Zongdong Jiao
a850bfa4f5 hdmitx: add init code for repeater [2/6]
PD#SWPL-323

Problem:
For TXLX/T962E, it has both HDMI Rx and TX, and lacks of HDMI repeater
functions, including HDCP repeater function.

Solution:
Add the init code for hdmi repeater

Verify:
TXLX/T962E/R321

Change-Id: Iaf17ae62c590ff4f8478dd5556f3ed24b9ff3bb1
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-10-30 04:35:08 -07:00
yu.zhang
7d6a3282a1 dts: add ir cut control GPIO [1/1]
PD#SWPL-900

Problem:
add ir cut control

Solution:
add ir cut control GPIO

Verify:
g12b-skt

Change-Id: I16c7d03ed4cc1dd3842cab80a987dde1a83e5cbc
Signed-off-by: yu.zhang <yu.zhang@amlogic.com>
2018-10-30 04:19:19 -07:00
MingLiang Dong
4a2b94cf63 amvecm: pq: add amvecm support for tl1 [1/1]
PD#172587

Problem:
new feature, add amvecm support for tl1

Solution:
1. add cm hist for tl1
2. add 3dlut for tl1
3. add hdr support for tl1
4. add wb for tl1
5. add local contrast

Verify:
verify on tl1 ptm

Change-Id: I1c7ebb83a1fb72a4529415fb9bf4acfd134e6b11
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2018-10-30 02:53:56 -07:00
Jianxiong Pan
71e903656a dts: support 32bit for gxm_q201 [1/1]
PD#SWPL-1140

Problem:
add support 32bit for gxm_q201.

Solution:
add 32bit dts for gxm_q201.

Verify:
gxm_q201

Change-Id: I3c9a6ae72fad6575bd814818967d9ff80e62f5d4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-10-30 00:58:20 -07:00
he.he
c6f40e4f73 usb: adb reboot and then adb disconnect [1/1]
PD#174155

Problem:
complete_ep 0xffffffc05bed2858, ep->queue empty!
1. After adb process be killed, data buffer is freed and
this memory is allocated for the other. But the address
is hold by the controller.
2. Adbd in PC is running. So, the controller receive the
data and write to this memory.
3.The value of this memory is modified by the controller.
This could cause the memory problem.

Solution:
whenever io_data->aio equals 1, the data buffer is from a fixed array.

Verify:
Test: adb devices, adb shell, exit, adb push
in android8(p212) and android9(w400)
verified by he he

Change-Id: Idac755d3646639e2944a82f42abf9adb9aeaea8c
Signed-off-by: he.he <he.he@amlogic.com>
2018-10-30 00:14:17 -07:00
tao zeng
5d782cb057 mm: avoid pages migrated to different zone [1/1]
PD#SWPL-881

Problem:
Amlogic modified code when compatcion from normal case.
And side effect is that pages in normal zone maybe migrated to
highmem zone. Which caused page_address get a NULL value and
kernel panic occurred.

Solution:
Avoid pages migarte to different zone by adding forbid_to_cma
flags.

Verify:
P212

Change-Id: I1d9c6653dc1069562db3c1be3f53a3510a51f0d1
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2018-10-29 23:44:58 -07:00
Luan Yuan
de88721302 avb: avb enable need to translate more types [1/1]
PD#SWPL-1095

Problem:
avb need more command line size.

Solution:
change max size to 2048

Verify:
verify by ampere

Change-Id: I9c1089a3ea0888e8ccd82f16d2b1111b6d88922a
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2018-10-29 23:39:29 -07:00
tao zeng
68a4d449ed mm: reduce watermark if free cma is too large [1/1]
PD#SWPL-807

Problem:
Sometimes driver can't allocation memory under atomic environment.
And free pages is enough but they are nearly ALL CMA pages.

Solution:
Reduce watermark with harf of free cma pages even allocation support
CMA.

Verify:
P212

Change-Id: I8e49768d4384ed064775537754a2b7f09a5bbb7c
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2018-10-29 20:07:51 -07:00
tao zeng
8b2c5df07a ddr: fix bandwidth read result 0 on 32bit OS [1/1]
PD#SWPL-960

Problem:
Reading bandwidth of DDR from sysfs get all 0 result on 32
bit kernel

Solution:
Fix overflow when calculating bandwidth.

Verify:
P212

Change-Id: I35837db653bdc2d97ced98689546a9ffc0db21c7
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2018-10-29 18:42:53 -07:00
shuyu.li
d351b585a5 audio: codec: add tl1_acodec support for tl1 [1/1]
PD#172587

Problem:
Add aml_tl1_acodec driver support for tl1

Solution:
1.add files sound/soc/codecs/amlogic/aml_codec_tl1.acodec.c(.h)
2.update files sound/soc/codecs/amlogic/Kconfig(Makefile)

Verify:
kernel build passed, need verified after chipback

Change-Id: I19717a442f22f5b6844627475992ef7c8cc20a71
Signed-off-by: shuyu.li <shuyu.li@amlogic.com>
2018-10-29 04:21:59 -07:00
Yong Qin
4260c508f6 hdmirx: hdmirx driver for tl1 [1/1]
PD#172587

Problem:
hdmirx bringup for tl1

Solution:
1.modify write top api, add addr offset -qy
2.modify write edid api -qy
3.replace top hw reset api
4.add aocec access register idle -qy
5.for tl1 bypass sw eq -qy
6.replace pddq api -qy
7.modify arc control for tl1 -qy
8.add n/cts auto mode
9.add hdcp balance path
10.add sscp mode
11.optimize reg map(rm unused reg addr)
12.add recent commits from 4.9 trunk
13.modify top clk cntl bit definition
14.modify top offset addr handle(x4)
15.add audio pll setting -qy
16.update phy setting - qy
17.modify audio pll ctrl api for tl1 -qy
	-add clk monitor function
	-add clk stable api for tl1
18.add emp data to pfifo -qy
19.modify edid write and other function -qy
20.add emp data to ddr -qy
21.add tmds data to ddr -qy
22.add cec for tl1 -qy
	-fix ctc 7-1
	-add status register for cec a/b
23.add cec and hdmirx dts -qy
24.clean tl1 rx related clk measure
25.hdmirx and cec dts

Verify:
1.run PTM
2.need verify on chip

Change-Id: Ia7cc5a2d84925587bdfae825936ba763713926af
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2018-10-29 04:21:40 -07:00
xuhua zhang
831a14c310 vdin: add afbce function for tl1 [1/1]
PD#172587

Problem:
new added function for tl1

Solution:
add vdin afbce support for tl1

Verify:
verified on PTM

Change-Id: I5e3e2487b6cdbed2d2ca794a6a21ed885e4bf469
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
2018-10-29 04:21:10 -07:00
xuhua zhang
b61002d2d1 tvin: add vdin and viu support for tl1 [1/1]
PD#172587

Problem:
do not suppoert for tl1

Solution:
add vdin and viu support for fl1

Verify:
verified on PTM

Change-Id: If4e267356fa666541853cfc7b49008795f9ec301
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
2018-10-29 04:20:54 -07:00
Nian Jing
134bb7a085 avin: add avin detect support for tl1 [1/1]
PD#172587

Problem:
do not suppoert for tl1

Solution:
add avin detect support for fl1

Verify:
just coding for tl1 will test later

Change-Id: I809f7068c9d0a45c89bd7dc4e6615db99b11f015
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-10-29 04:20:34 -07:00
Nian Jing
4aab5676ad vdac: vdac: add vdac support for tl1 [1/1]
PD#172587

Problem:
do not suppoert for tl1

Solution:
add vdac support for fl1

Verify:
test pass on local

Change-Id: I7b3da34289dfe0638a24b812658db7e462ebdd4c
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-10-29 04:20:09 -07:00
Xing Wang
9c7a42844f audio: auge: add sound card support for tl1 [1/1]
PD#172587

Problem:
Bringup tl1 sound card.

Solution:
Add tl1 sound card.
Add external interface for audio input/output.

Verify:
Tested by PTM
Sound card is setup.
TDM and SPDIF internel loopback is ok

Change-Id: I60830ca44a62ee2a8e16343e91e7311152cab161
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-10-29 04:19:49 -07:00
Brian Zhu
63e22b6f69 amvideo: add amvideo support for tl1 [1/1]
PD#172587

Problem:
TL1 needs support amvideo driver.

Solution:
1. Add amvideo node into dts file, default enable.
2. Change the vd mif and sr reg offset.
3. Force bypass dolby vision function.
4. Change the register following hardware design.
5. Make amvideo afbc work for tl1.

Verify:
On PTM.

Change-Id: I0d857f8a707328383328daa23e6ba8e156c2e6e0
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-10-29 04:19:27 -07:00
pengcheng chen
bd51992eea osd: tl1: add osd support for tl1 [1/1]
PD#172587

Problem:
Bringup osd for TL1.

Solution:
Add osd support for TL1.
Add ge2d device tree node for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I3d20934f015108f545c3c72b979d1bd8187b282e
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-10-29 04:18:59 -07:00
pengcheng chen
b8b236a0dc rdma: add rdma support for tl1 [1/1]
PD#172587

Problem:
Bringup rdma for TL1.

Solution:
Add rdma support for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I425edc1e47db2ea834fcc5acb0e3d0ee1f30a9f7
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-10-29 04:18:12 -07:00
pengcheng chen
d7e69fb1bf media: add codec support for tl1 [1/1]
PD#172587

Problem:
Bringup codec for TL1.

Solution:
Add codec iomap device tree node for TL1.
Add canvas device tree node for TL1.

Verify:
Verified on PXP/PTM.

Change-Id: I8b9a6645f1f9fd7d4aa9cae6166895e61ddc3e36
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-10-29 04:17:36 -07:00
shihong.zheng
6f1e9e486b arm: dts: tl1: add decoder device tree [3/3]
PD#174543

PD#172587

Problem:
new added function for tl1

Solution:
add vdin afbce support for tl1

Verify:
verified on PTM

Change-Id: I42054b8228161713ac10446491ebdb50a71975ad
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2018-10-29 04:15:23 -07:00
Evoke Zhang
1312d98408 backlight: add support for tl1 [1/1]
PD#172587

Problem:
do not suppoert for tl1

Solution:
add backlight support for fl1

Verify:
verified on PTM

Change-Id: I052a7ef93ec9cb21a544e4823a4c9a339d38b5f9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-10-29 04:15:00 -07:00
Evoke Zhang
2ed9b74e98 lcd: add tl1 support [1/1]
PD#172587

Problem:
not support tl1

Solution:
add tl1 support

Verify:
test pass on PTM

Change-Id: I5a9073fc08a98ae95d4961297a7427864d92279b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-10-29 04:10:27 -07:00
Evoke Zhang
9600eab2ac vpu: add support for tl1 [1/1]
PD#172587

Problem:
Bringup vpu for TL1.

Solution:
Add vpu support for TL1.

Verify:
Verified on PTM/PXP.

Change-Id: Ic2fb7682ddc1b21840e1be1d8462d4c0902e739d
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-10-29 04:09:44 -07:00
Bencheng Jing
71ba3b2b3b amvecm: fix flicker when change between Launcher and Signal Source [1/1]
PD#SWPL-848

Problem:
ioctrl set the same gamma value again

Solution:
if the gamma value is same as the ioctrl userspace value, do not set again

Verify:
txlx

Change-Id: I6f17f5ff234513c5a886004aedea81b9945c5b98
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2018-10-28 22:09:55 -07:00
Xingyu Chen
e3666d7fe3 pinctrl: fix some mistakes [1/1]
PD#172438

Problem:
1. return a negative when parsing the dts property
"output-high/output-low"
2. the prefix "bt565" don't meet corepinmux document

Solution:
1. add break statement in case PIN_CONFIG_OUTPUT to avoid
returning a negative value.
2. rename the "bt565" to "bt656" according to corepinmux document

Verify:
test pass on U200

Change-Id: Ieeb98367e2269007a6774592abac86ef05ee8f64
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-10-28 22:09:32 -07:00
Xingyu Chen
dd4a0b513e irqchip: add a new gpio IRQ driver to support double-edge detection [1/1]
PD#SWPL-922

Problem:
the existing gpio IRQ driver(porting from the upstream) does not
double-edge detection

Solution:
add a new gpio IRQ driver to support the double-edge detection,
the new driver is with different software structure but compatible
with functions of the existing driver

Verify:
test pass on s400

Change-Id: Id69dd0b4459eef20a6755947c7d95a24d7b17fa9
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-10-28 19:40:06 -07:00
Tao Zeng
805261a0c2 Merge "audioinfo: fix kasan compile problem [1/1]" into amlogic-4.9-dev 2018-10-28 19:29:42 -07:00
MingLiang Dong
43f0f630e9 amvecm: hdr: add hdr10 plus support [1/2]
PD#SWPL-869

Problem:
new feature, add hdr10 plus support

Solution:
1. add hdr10 plus metadat parser
2. add hdr10 plus code support
3. add hdr10 plus bypass mode

Verify:
verify on U200

Change-Id: I957954ce148021882e17f2913dd2552e64f1298c
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2018-10-28 19:15:46 -07:00
Blance Tang
efa5e53610 buildroot: Enable fb memory allocation in g12b_skt dts [1/1]
PD#SWPL-802

Problem:
  Kernel crash when run GPU slt program

Solution:
  Enable meson fb memory allocation in g12b_skt dts

Verify:
  w400

Change-Id: I3074c2053cda06cf4ae237d24bad2c89d789f90d
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
2018-10-28 19:03:31 -07:00
Hanjie Lin
1e6c6118ec rlimits: increase memlock limit [1/1]
PD#SWPL-982

Problem:
CtsHostsideNetworkTests module 22 fail
netd can't create bpf map because of memlock limit

Solution:
increase memlock limit

Verify:
p212

Change-Id: Ia770fce7d826c639b171f8e8807425202de58320
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2018-10-27 08:28:25 -07:00
Long Yu
133c9560ef emmc: get emmc cmd-window for HS400 busmode
PD#169808: emmc: get emmc cmd-window for HS400 busmode

Change-Id: I88de1e9e5470bb6be7ad91e1ee58f5636f994923
Signed-off-by: Long Yu <long.yu@amlogic.com>
2018-10-26 08:39:27 -07:00
Yi Zhou
73c0a0b001 hdmitx: add hdr10+ mechanism in hdmitx [2/2]
PD#SWPL-869

Problem:
need support hdr10+

Solution:
1. parse hdr10+ vsvdb
2. add hdr10+ vsif

Verify:
U200(G12A)

Change-Id: I0761efa7cadcb73bd9394820b080c9a127d03382
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-10-26 05:35:55 -07:00
xianjun.liu
5d78760a78 mtd: nand: tl1: add support slc nand driver [1/1]
PD#172587

Problem:
Bringup slc nand for TL1.

Solution:
Add mtd driver for TL1.

Verify:
Just coding for tl1 and test later.

Change-Id: I910a8047394e0ff8fa7e617b90502910e1186c68
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2018-10-26 04:50:13 -07:00
Yi Zeng
2b3d5fef40 arm: dts: tl1: add spi-nor node for tl1 [1/1]
PD#172587

Problem:
Bringup spi-nor for TL1.

Solution:
Add spi-nor node into dts file, default disabled.

Verify:
Verified on PXP.

Change-Id: I9edd358d41b052b7ecae47a550dcacbc27353955
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2018-10-26 04:48:19 -07:00
Ruixuan Li
78027c0e6d emmc: meson: add sdcard support for tl1 [1/1]
PD#172587

Problem:
Bringup emmc for tl1.

Solution:
Add sdcard support for tl1.

Verify:
Verified on pxp.

Change-Id: I73503d36b671da8d88a3613b4d6fd17434ff1fbf
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2018-10-26 04:01:25 -07:00
Zhuo Wang
841e4fb4f1 ethernet: fix crash when not use gpioz14/15 [1/1]
PD#174843

Problem:
g12b will crash when not include internal_eth_pins

Solution:
continue when it null

Verify:
verified in w400 with liaomin

Change-Id: Ib636e307f0697fa4eab1d0784543af96641def2e
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2018-10-25 23:56:50 -07:00
Blance Tang
f5040dfe88 buildroot: Enable ppmgr in g12b_a113d_skt DTS [1/1]
PD#SWPL-802

Problem:
  Black screen when play video, due to ppmgr is not enabled in g12b_skt
dts

Solution:
  Enable ppmgr in g12b_a113d_skt DTS file

Verify:
  W400

Change-Id: Ibe94b113552d54d365775556807bdacb249f9a00
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
2018-10-25 19:50:16 -07:00
pengcheng chen
fd943af50c osd: fix osd get windows axis error [1/1]
PD#IPTV-31

Problem:
get sys class windows axis error

Solution:
fix osd get windows axis error

Verify:
u211

Change-Id: I5df5880bc43cb663255ecbf72d2b93b9c099b811
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-10-25 08:21:43 -07:00
Ruixuan Li
37c199da52 emmc: emmc: modify the memory allocation mode when operate dtb [1/1]
PD#SWPL-426

Problem:
black screen when OTA upgrade

Solution:
modify the memory allocation mode when operate dtb

Verify:
p212

Change-Id: Idf67edd44f5e9f1d88be1e552fae485e04a655c6
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2018-10-25 08:18:47 -07:00
Dezhi Kong
d0365ffe94 vpp: add video disable for g12 [1/1]
PD#174579

Problem:
osd shake once after quit local video play

Solution:
add video disable in advance for g12

Verify:
u211

Change-Id: Ic43693b25cf7bf8be24801a22ad36ac09c84a475
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-10-24 23:44:58 -07:00
Nan Li
050918ac85 emmc: add sd/sdio fixdiv calc support [1/1]
PD#SWPL-139

Problem:
	kernel sd card r/w error.

Solution:
	add fixdiv calculate supported.

Verify:
	verified in u200.

Change-Id: Ib454ffee5db26194631ae2e1c3d127bceab59bb7
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-10-24 17:46:44 +08:00
Zhuo Wang
3d481c04c2 ethernet: add g12a/b mac wol function [1/1]
PD#173550

Problem:
g12a no wol function in internal phy, we add this function in mac

Solution:
add wol function in MAC

Verify:
verified in u200 board with uboot patch from guohong

Change-Id: I0a8fa81fbfb81d79c471bbafe68174118e276a46
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2018-10-24 00:38:41 -07:00
live.li
4ea2c5aab0 tsync: tsync: fix av sync problem random [1/1]
PD#SWPL-906

Problem:
The video and audio did not synchronous randomly

Solution:
it seems system time increase not by vsync isr,
so change the system time get interface to make
sure system time increase by vsync isr when
amaster mode

Verify:
R311&P321 32bit&64bit version

Change-Id: Ib3a556ba097fc6f0c51fd4560ab8101c6e7f509c
Signed-off-by: live.li <live.li@amlogic.com>
2018-10-23 22:26:31 -07:00
Tao Zeng
f80f942eb6 Merge "debug: After reboot,the platform print a lot of logs Frequency [1/1]" into amlogic-4.9-dev 2018-10-23 02:47:34 -07:00
Tao Zeng
5afbb4d83c Merge "dv: fix the flickered problem [1/1]" into amlogic-4.9-dev 2018-10-23 01:54:35 -07:00
Lianlian Zhu
e8614f100f audio: solve 32bit system hdmi in mute issue [1/1]
PD#SWPL-813

Problem:
audio_iomap read audin reg 2800 error

Solution:
register val read from aml_read_cbus
maybe not positive number in 32bit system,
so change *val == -1 to judge mistake.

Verify:
verified by p321

Change-Id: Ie87001fa1daa621cadc2ce329d8dd863f39dcdb6
Signed-off-by: Lianlian Zhu <lianlian.zhu@amlogic.com>
2018-10-23 01:43:05 -07:00