Commit Graph

649022 Commits

Author SHA1 Message Date
Yue Wang
8955d4a275 usb: bringup TM2 usb [1/1]
PD#SWPL-5609

Problem:
bringup TM2 usb.

Solution:
bringup TM2 usb.

Verify:
TM2

Change-Id: I61f388a516442064af5b21f4688f6787e9e358e9
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-04-11 10:59:18 +08:00
pan.yang
3ed5bb274c dts: modified t962ex_ab311 319 and t962x3_a309,pxp dts [1/1]
PD#SWPL-6560

Problem:
Need to change dts

Solution:
modified ab311 ab319 and ab309 and pxp

Verify:
test pass at skt_tm2

Change-Id: Iabc21582910f66b321b55928ce86d0958cb83503
Signed-off-by: pan yang<pan.yang@amlogic.com>
2019-04-11 10:59:09 +08:00
Jianxin Pan
92961bb25f dts: add t962ex_ab311 319 and t962x3_a309 [1/1]
PD#SWPL-6559

Problem:
Need more DTB support

Solution:
add ab311 ab319 and ab309
ab311 is from tl1_x301
ab319 and ab309 are from tl1_skt

Verify:
Build pass

Change-Id: Ie8a8bec03107d4c4d0328dcd8deab916bd7f63f2
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-04-11 10:59:01 +08:00
pan.yang
a957a78967 power: tm2: add power control dts config [1/1]
PD#SWPL-5648

Problem:
need power control dts

Solution:
add power control dts

Verify:
tm2_skt

Change-Id: Ia677567dec5bb9ca8ea0cf067d8885d3005d32c2
Signed-off-by: pan yang<pan.yang@amlogic.com>
2019-04-11 10:58:47 +08:00
pan.yang
6d6d0e018d tm2: change tm2 mailbox dts config [1/1]
PD#SWPL-5639

Problem:
tm2 mailbox config has been changed

Solution:
change tm2 mailbox dts config

Verify:
tm2_skt

Change-Id: I1e3fb569464826304f46276668ed359ad5cc2718
Signed-off-by: pan yang<pan.yang@amlogic.com>
2019-04-11 10:58:38 +08:00
Jian Cao
5b7f01bd41 dts: tm2: add ge2d support [1/1]
PD#SWPL-6552

Problem:
add ge2d support

Solution:
add ge2d support

Verify:
verified on TM2 skt board

Change-Id: Idba0f97ea1596a4f579530fb86829f5ede307e52
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-04-11 10:58:30 +08:00
Qianggui Song
20fe541c42 pinctrl: support tm2 pinctrl [1/1]
PD#SWPL-5656

Problem:
tm2 need a static data pinctrl file to depict pins

Solution:
add relative codes to support tm2

Verify:
T962E2_ab319

Change-Id: I55206f9b3df6390e8821fd777d329ddf05dd8386
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-04-11 10:58:02 +08:00
shanghai engineers
df65f1ff75 TM2: add chip id and name for tm2 [1/1]
PD#SWPL-6157

Problem:
TM2 bring up need to update chip version name and id

Solution:
add the chipid and chip version name at dts and help file

Verify:
on ptm board4

Change-Id: I37e44828db1821c7fd2921c3e4271a27bd715b88
Signed-off-by: pan yang <pan.yang@amlogic.com>
2019-04-11 10:41:31 +08:00
shanghai engineers
b73f974f2c tm2: add tm2_pxp dts at amlogic for ptm bringup [1/1]
PD#SWPL-6157

Problem:
Current branch need tm2_pxp dts at amlogic system

Solution:
Create tm2_pxp dts at tm2 kernel branch, and modified scripts

Verify:
on ptm board4

Change-Id: I83204db07462729861a59d322fa99e4370c09dea
Signed-off-by: pan yang <pan.yang@amlogic.com>
2019-04-11 10:40:39 +08:00
Bencheng Jing
5052fcf375 amvecm: fix lc enable/disable not follow pq.db [1/1]
PD#TV-4358

Problem:
lc enable/disable not follow pq.db

Solution:
check the db reg vlaue,then adjust lc_en

Verify:
TL1

Change-Id: I0bf652eff96d75355c8fb1329291d1611e226b96
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-04-10 18:55:27 -07:00
Shuai Li
27c68d02b0 audio: add codec trigger mute for depop [1/1]
PD#SWPL-6944

Problem:
TV-3381
Speaker sometimes has clicking noise when playing DTV program.

Solution:
add codec trigger mute for depop

Verify:
Local verified.

Change-Id: Ib15a6b90bd3a6cdda2255afaf86daeab68ba07e2
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-04-10 04:05:29 -07:00
Zongdong Jiao
35eb57d7df hdmitx: add audio ATMOS parsing [1/1]
PD#SWPL-4085

Problem:
Need audio ATMOS information in RX EDID

Solution:
Add parsing audio ATMOS information

Verify:
GXL/P212

Change-Id: I882b817a4d7621833bb7e4b85231d7a42e426382
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-04-10 04:02:54 -07:00
Zongdong Jiao
5b21b90d8b hdmitx: adjust PHY parameter with 5.1 ohm resistor [2/2]
PD#SWPL-2927

Problem:
No enough eye diagram when adding TMDS 5.1 ohm resistor

Solution:
adjust PHY parameter with 5.1 ohm resistor

Verify:
G12/U212

Change-Id: Ib5518613c556f9b04eb0aa374193c7a6046a7ba9
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-04-10 15:56:56 +08:00
Evoke Zhang
5a825f14bd vdin: config vdin mif/afbc path directly [1/1]
PD#SWPL-6277

Problem:
switch hdmi port maybe display green screen

Solution:
1.optimize vdin stop sequence, reduce afbc state polling interval,
  and rest afbc to get a clean state
2.change vdin mif/afbc patch directly, not rdma method,
  for vdin0/1 rdma are independent

Verify:
x301

Change-Id: I0ddf5d27dcfc0fd930eeb681f876c4c5e92e8d70
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-09 20:58:31 -07:00
Pengcheng Chen
6913eaacf9 osd: osd display color abnormal when run drm [1/1]
PD#SWPL-6867

Problem:
osd dispaly color abnormal because osd enable not update.

Solution:
update osd enalbe flag in drm process.

Verify:
Verified u212

Change-Id: I1c2e8b62d9d5af203c95d3d0ac940fb512dd8e5e
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-04-09 18:44:36 -07:00
Yong Qin
4041b84987 vlock: phase lock sometime lose effect [1/1]
PD#SWPL-6723

Problem:
phase lock sometime effect vlock

Solution:
disable phase lock function now

Verify:
tl1

Change-Id: I4cfe1e0153084717967309e832b028691ab44c88
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-09 02:35:24 -07:00
Xing Wang
f3f2d60287 audio: codec: un-mute ad82584 in default [1/1]
PD#SWPL-6810

Problem:
android version, no sound for spk
ad82584 is mute in default.

Solution:
un-mute ad82584, and add delay for de-pop

Verify:
ac200

Change-Id: Id78eb77b5e1a0ebed0a16a9b97992c6a07f78cde
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
2019-04-09 02:14:02 -07:00
Jiamin Ma
043ae971bf time: fix fail to read generic timer's counter value correctly [1/1]
PD#SWPL-6837

Problem:
The return value of arch_counter_get_cntvct is always abnormal
when it is in irq stack. In this case, arch_counter_get_cntvct
trys to access a variable in 8Bytes via a 4Bytes aligned addr-
ess, which vialates the rule: The address that is accessed
should be aligned to the size of the data element being
accessed

Solution:
after switching to irq stack, force the base sp value to be
16Bytes aligned. Since the address of variable in irq stack is
based on the base sp and arranged automatically, all the data
accessing in irq stack will be aligned.

Verify:
Ampere

Change-Id: I3b30a56491dd0720d1c885bfaf2ca98d1b103fdd
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-04-09 01:59:41 -07:00
Yong Qin
c75a783c42 di: change clkb frq from 500 to 667 [1/1]
PD#SWPL-6762

Problem:
di clkb frq is not right

Solution:
change from 500 to 667

Verify:
tl1

Change-Id: I9c62bb9936630937f19d8a6b490a8266d73a268c
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-04-09 01:55:23 -07:00
Jianxin Pan
0b352e3e35 Merge "media_module: h264/mpeg2/h265 [2/2]" into amlogic-4.9-dev 2019-04-08 23:54:33 -07:00
Rong Zhang
166b30a5e6 media_module: h264/mpeg2/h265 [2/2]
PD#SWPL-3654

Problem:
provide aspect_ratio information by AMSTREAM_IOC_VDECSTAT

Solution:
add ration_control information in vdec_status function for
h264/mh264/vh265/mpeg12/mmpeg12, and normalized it for
aspect_ratio in AMSTREAM_IOC_VDECSTAT message.

Verify:
Verified U212

Change-Id: Icd9270eb8f2ce2f6f7455ec28780d26ac6c56348
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
2019-04-08 23:54:18 -07:00
Rong Zhang
97e1613e7c media_module: mh264/h265/avs2 [1/2]
PD#SWPL-6607

Problem:
	Not support QOS information for mh264.h265,avs2

Solution:
	Support QOS information picking for mh264,h265,avs2
	Support QOS information access interface by ioctl

Verify:
	Verified franklin

Change-Id: I4e6f85392007bc78a274726aba510c39088018e3
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
2019-04-08 02:00:57 -07:00
Luan Yuan
cca7d53392 dts: disabled pcie [1/1]
PD#SWPL-6662

Problem:
bootup spend 25s

Solution:
disable pcie and enable usb 3.0

Verify:
verify by w400

Change-Id: I5ea3526989b4d89cffb4e875487e2b80b5d15f0b
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-04-07 22:35:38 -07:00
Jianxin Pan
55856a2886 dts: debug: enable ftrace_ramoops for new dts [1/1]
PD#SWPL-6028

Problem:
enable ftrce in ramoops for new dtbs

Solution:
enable ftrce in ramoops for new dtbs

Verify:
X301

Change-Id: I0643329a873a310d1078ebd898fec2d3cb75d43c
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-04-04 20:07:31 +08:00
Renjun Xu
d415bb552f audio: fixed the issue of PDM 16 channel capture. [1/1]
PD#SWPL-5551

Problem:
cannot capture 8PDM + 8LOOPBACK.

Solution:
PDM cannot support 8PDM + 8LOOPBACK.

Verify:
s420/s400, verify pass

Change-Id: Iaf38bdcb218ebfc024666312162569cab93a76a9
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2019-04-04 04:35:41 -07:00
Evoke Zhang
3cb951733a vdin: sync vdin0 & vdin1 buffer for afbc mode to avoid garbage screen [1/1]
PD#SWPL-3431

Problem:
enter hdmi 4k port will flash garbage screen with afbc mode

Solution:
sync vdin0 & vdin1 buffer for afbc mode

Verify:
x301

Change-Id: I443a9be2ed619a5cd2b6229f15814d8b856c5535
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-04-04 02:39:59 -07:00
yicheng shen
6b0dd621b8 hdmirx: update phy setting [1/1]
PD#SWPL-5900

Problem:
Connect PS4PRO,plug out than in,the audio will show faster than video.

Solution:
1.update CDR lock logic;
2.add sw_reset_align and sw_reset_chan;
3.update phy init sequence;

Verify:
TL1

Change-Id: I0ef259502579a7edd2c61708c81983ce07124c9f
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-04-04 02:32:12 -07:00
Peng Yixin
c524489caf video: set pcrscr after 2 frames ready [2/3]
PD#SWPL-795

Problem:

Solution:
add a sysfs to get vframe ready count

Verify:
Verified p212

Change-Id: I92171f57d336063e4a3af751e808b4a778184fe0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
2019-04-04 02:12:25 -07:00
Tao Zeng
a459b9444e ramdump: write compressed data [2/2]
PD#SWPL-6193

Problem:
ramdump need write compressed data to persist storage device.
But if we write it under uboot, it may cause journal and block
bitmap mismatch due to different version of file system. This
caused kernel panic after ramdump finished.

Solution:
Write compressed data under kernel.
This change also removed some extern function of ramdump since
we use sticky register to store ramdump information.

Verify:
p212

Change-Id: Idd83ec6ead4783918b90a39cf716fd3117402278
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-04-03 22:38:27 -07:00
Jianxiong Pan
a098693b5f paddr16: add paddr16 to get register values for 16-bits aligned address. [1/1]
PD#SWPL-6718

Problem:
paddr just can get register and memory values for 32-bits aligned address.

Solution:
add paddr16 to get register or memory values for 16-bits aligned address.

Verify:
g12b w400_a

Change-Id: Ic7f32dcc6c2a24d0ac1e8c3ed60acc27e81887e0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-04-03 22:09:43 -07:00
Nanxin Qin
d1f81490a2 vdin: fixed the issue of mem mapping from vmap. [1/1]
PD#SWPL-6196

Problem:
the memory issue cause to kernel crash.

Solution:
1. add flush cache when the mem oper end.
2. unmap addr which from vmap in vdin driver.

Verify:
X301

Change-Id: Id6efe2b009fe64ad753d51eb06784bd4e66f5e87
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-04-03 19:24:36 -07:00
Jianxin Pan
325a18ae9c debug: enable ftrace_ramoops [1/2]
PD#SWPL-6028

Problem:
enable ftrce in ramoops

Solution:
enable ftrce in ramoops

Verify:
u200

Change-Id: I2403bf82c342416b7c34f2115b14dce623406997
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-04-03 18:59:03 +08:00
Xingyu Chen
2f278c55ca iio: adc: try to get flag again after the first failure [2/2]
PD#SH-451

Problem:
to get flag maybe occasionally fail

Solution:
try to get flag again after the first failure

Verify:
test pass on s400

Change-Id: Ibf430c9c331c7740864e797047962ad45e6698e3
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2019-04-03 02:18:14 -07:00
huijie.huang
b2cdbd0668 memory: tl1 compatible with 1G and 2G memory [3/4]
PD#SWPL-6343

Problem:
Compatible 1G and 2G platform in one suite code

Solution:
Kernel add 1G and 2G config for TL1

Verify:
test pass on TL1-X301

Change-Id: Ic906c6b62cc6ae15166baf666d5823687359f823
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-04-03 01:49:19 -07:00
renjiang.han
4edc749535 ppmgr: The cut table caused a crash. [1/1]
PD#SWPL-6557

Problem:
The cut table caused a crash.

Solution:
modify dma flag

Verify:
on X301

Change-Id: Ic0ced1f4934d1125c56a79d1e102de9d2e02a528
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-04-03 00:13:08 -07:00
Peng Yixin
494bde0769 media_module: add double cache in codec_mm_scatter [1/1]
PD#SWPL-6677

Problem:
    Decocder allocation and free mmu memory spend a long time.

Solution:
    Add double cache to solve this problem.

Verify:
    Verified P212

Change-Id: I393ad47b921631a49f551b32e31fd776ff4dfeea
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
2019-04-02 23:10:41 -07:00
Huan Biao
f2789c9a47 thermal: move thermal dts for sm1 [1/1]
PD#SWPL-6675

Problem:
sm1 thermal dts issue

Solution:
move thermal dts for dtsi to board dts

Verify:
test pass on sm1_ac200

Change-Id: I3fa5f2f4b15bc78d322d94402b8d0894fd8cbd35
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-04-02 22:53:01 -07:00
Zhe Wang
6e71db4f03 audio: support 16ch i2s playback for SM1 [1/1]
PD#SWPL-5430

Problem:
new function lane 6 and lane 8

Solution:
support max 16 channel playback

Verify:
sm1_ac200, verify pass

Change-Id: I3af42a0b68bca8804afa042ad4a506a379b9bf86
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-04-02 22:43:22 -07:00
Zhuo Wang
867ae48973 ethernet: reset ethernet when resume [1/1]
PD#SWPL-6608

Problem:
system will report tx error somethime after resume

Solution:
reset ethernet when resume

Verify:
verify on u200 board

Change-Id: I9863a8a50c08addd4e2d8c024f46a2e7568c28b4
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-04-02 19:54:56 -07:00
changqing.gao
5e47d3792b fs: KASAN error in nls uniname cmp [1/1]
PD#SWPL-6404

Problem:
KASAN error:global-out-of-bounds in nls_uniname_cmp

Solution:
Append "\0\0" to the string of UNI_CUR_DIR_NAME and UNI_PAR_DIR_NAME

Verify:
x301

Change-Id: Ic94e837ed7874d337207c31eedfc966b46ab8ecd
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
2019-04-02 19:06:42 -07:00
Brian Zhu
e8a3758855 vpp: 3d: disable crop when 3d playback or hdmi in [1/1]
PD#TV-3962

Problem:
3D mode does not support crop function

Solution:
Remove crop when 3D display.

Verify:
Verified on x301

Change-Id: Id35dd662886be24e3ec78d070e3a70f513f89b16
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-04-02 18:15:41 -07:00
Pengcheng Chen
6862fb2e96 osd: add viu2 fence support [1/1]
PD#SWPL-6384

Problem:
viu2 not support fence

Solution:
add viu2 fence support.

Verify:
test pass on tl1

Change-Id: I94a5e483c88cace79b7386bb918c203ada6b8274
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-04-02 05:12:32 -07:00
Hang Cheng
867de9cdfb cec: remove func that may cause deadlock [1/1]
PD#SWPL-5836

Problem:
kernel panic when read cec reg

Solution:
remove func that might cause sleep in spinlock,
so as to avoid deadlock

Verify:
S805X-P241

Change-Id: I8394f69bdbeff6673c795a221c08ef76164c5bdb
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-04-02 04:48:54 -07:00
Yeping Miao
74d7d4a92e dts: GVA on SBR platform [1/1]
PD#SWPL-4760

Problem:
  Port GVA on S400 SBR platform

Solution:
  Port GVA on S400 SBR platform

Verify:
  S400_SBR A113D

Change-Id: I615e9457ba83df1c30829aa8ce01b6bc6072929f
Signed-off-by: Yeping Miao <yeping.miao@amlogic.com>
2019-04-02 03:02:04 -07:00
MingLiang Dong
09849e0f33 amvecm: remove driver lc setting by timing [1/1]
PD#SWPL-5248

Problem:
lc setting load from db

Solution:
remove driver lc setting by timing

Verify:
verify on TL1

Change-Id: I7dac2429220d31f7930087ffb01176863cd74453
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-02 00:48:42 -07:00
MingLiang Dong
f37e79b2d7 hdr: TL1 HDR gamut bug fix [1/1]
PD#SWPL-5248

Problem:
1. finetune TL1 HDR.
2. workaround fix ootf overwrite
3. workaround fix gamut bug

Solution:
TL1 HDR gamut bug fix

Verify:
verify on TL1

Change-Id: Iaf9535f3b6d096967f67ba118ff54eeb2c5c01c5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-04-02 00:48:15 -07:00
deng.liu
aa2d12379f common: NN API implementation,upload 64bit dts [1/1]
PD#SWPL-86

Problem:
Android tensorflow lite ,NN API implementation

Solution:
NN API implementation

Verify:
Local on galilei

Change-Id: I7c1a3a68005218544d0a3c7a7360c9ee38fc53de
Signed-off-by: deng.liu <deng.liu@amlogic.com>
2019-04-02 00:26:20 -07:00
shuanglong.wang
cc688651c3 video: hold frame for non-tunnel mode [1/1]
PD#SWPL-6179

Problem:
PLAY-AL1-30FPS-HEAAC exist multi short frame every 16.6s

Solution:
Hold one frame in case occur pattern broken. Problem occur as this,
for non-tunnel mode, amlvideo vidioc_dqbuf  in omx so fast, then lead
decoder buffer quickly pushed to amlvideo queue with only current frame,
without next frame. Hold one frame we need next frame and next frame pts
after next frame, here we use next frame pts and a crease with duraion
as next next frame pts.

Verify:
verify by u212

Change-Id: Ie98c30791e785abb886aa19a7e930d191f5c2b3e
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-04-01 05:16:04 -07:00
Xingyu Chen
21cf6aea22 iio: adc: disable software calibration for txlx and later platform [1/1]
PD#SWPL-6483

Problem:
the txlx and later platform use the VDDA as vref by default, and we
can use directly the adc sampling value, so it is unnecessary to
recalculate calibration factor through ch7.

Solution:
add new variable to judge whether enabling the software calibration

Verify:
test pass on u200

Change-Id: I611b4d8b76c95d8fdbdf23a96801bf6d9e5eb1f7
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2019-04-01 05:15:16 -07:00
Liang Ji
e908649b08 avb_ab: add avb check for product product [1/2]
PD#SWPL-6168

Problem:
avb+abupdate with care map.txt cann't boot up
because of check product partition

Solution:
add avb for product partition in dts

Verify:
ampere

Change-Id: I0310853965340d9b810a89cbf1719f9ba002261d
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
2019-04-01 05:11:56 -07:00