Commit Graph

302 Commits

Author SHA1 Message Date
Long 5ec6ff86a3 sdio: config autoclock for c3. [1/1]
PD#SWPL-115224

Problem:
don't config auto clock

Solution:
config auto clock

Verify:
c3

Change-Id: I5479d9c58e8365655b89d9b98a6213a74002755b
Signed-off-by: Long <long.yu@amlogic.com>
2023-04-10 06:14:03 -07:00
jialong.jiang 5333c3be01 hdr: android U support hdr output policy [1/1]
PD#SWPL-110886

Problem:
no hdr output policy

Solution:
add get_hdr_conversion_cap
add get_hdr_cur_output
add set_hdr_output
add attr protection in dv

Verify:
android U

Test:
self-test

Change-Id: Ieaa49f92cda0a6e053b0436d5217fe9e83a825e2
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-04-07 02:10:56 -07:00
xiang.wu1 53da4516c3 hdmitx: Extend the waiting time for the first boot hdcp authentication [1/1]
PD#SWPL-116717

Problem:
After the upgrade of aq2432 in yocto, it takes a long
time to start the service for the first time, lead hdcp
authentication failed

Solution:
Extend the waiting time for the first boot hdcp authentication

Verify:
aq2432

Change-Id: I13f541edd86b9f65fe8430fab59a4a8c266ecec2
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-04-06 22:17:24 -07:00
zhipeng.he ea2660a4d9 vdec: CF2 add dtv_amlvideo_amvideo pipeline [1/1]
PD#SWPL-109640

Problem:
no dtv_amlvideo_amvideo pipeline

Solution:
add dtv_amlvideo_amvideo pipeline

Verify:
AQ2432

Change-Id: If27dd75107bd5507d47a5f2a465d6cec30058772
Signed-off-by: zhipeng.he <zhipeng.he@amlogic.com>
2023-04-05 22:13:19 -07:00
haitao.liu bf1b5d3774 vdin: porting csi on kernel branch g12bsm1_1_20221128 [1/1]
PD#SWPL-112894

Problem:
k5.15 do not support csi in tvin

Solution:
1.porting csi on k5.4,from k4.9
2.enable power domain

Verify:
sm1

Change-Id: Ia455ae888e88490a4c558bfd3fd2b7af46d907cf
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-04-04 19:48:17 +08:00
junwei.ma 69cacc04bf ISP: G12B & SM1 Bringup - Kernel - Display - mipi camera of SM1 [1/1]
PD#SWPL-108141

Problem:
5. 15 no camera driver

Solution:
porting camera driver to kernel-5.15

Verify:
ok

Change-Id: I92789c946a8f2456f6bb68adc52ece77cd730f81
Signed-off-by: junwei.ma <junwei.ma@amlogic.com>
2023-04-04 19:48:16 +08:00
lizhi.hu 231b6c3c68 vpu: add vpu support for g12b/sm1 [1/1]
PD#SWPL-108052

Problem:
G12B & SM1 Bringup - Kernel - TV - vpu top

Solution:
add vpu support

Verify:
g12b-w400

Change-Id: I951a2dec84c5fa6b81f12ae601801b4ca2e4dcaa
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-04-04 19:37:02 +08:00
Yao Jie 2c5349ae4c m4: bringup m4 on sm1 [1/1]
PD#SWPL-104282

Problem:
bringup m4 on sm1

Solution:
add bl40 module driver and configuration to
bringup m4

Verify:
SM1-AC200-S905D3

Change-Id: I39afd0f91a49bd187e23cb29111f06e8c404419d
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-04-04 19:37:02 +08:00
Xiangyu Cai 1249676818 vrr: read and write in a reguar buffer [1/1]
PD#SWPL-114194

Problem:
latency have 1.5ms fluctuation read/write in 11 buffer

Solution:
read and wriye in a regular buffer

Verify:
t982_ar301

Change-Id: I9bdc274c8973e7cfd981cedb4e3996760b3028c1
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2023-03-30 06:24:48 -07:00
Lei Zhang df6af177d8 iotrace: __nocfi when read/write register [1/1]
PD#SWPL-115907

Problem:
read/write register cost more time

Solution:
__nocfi when read/write register

Verify:
on SC2 ah212

Change-Id: Id2737b3037f8ee2d57e11fbd195e853fe7c0541f
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-03-30 02:13:31 -07:00
MingLiang Dong a547ca9c9d hdr: fix hdr10+ packet send error issue [1/1]
PD#SWPL-116438

Problem:
hdr10+ packet send error on sc2
hdr10+ packet send delay 1 frame on s5

Solution:
1. hdr10+ packet send error
2. hdr10+ packet sent advance 1 frame

Verify:
verify on s5

Change-Id: I0e2c3a76877c8fbc092754650d56e57b6881e17d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-03-29 22:19:02 -07:00
xiang.wu1 2db3271ac6 hdmitx: optimise color depth for hdr output [1/2]
PD#SWPL-113996

Problem:
there's some case output Y444/rgb,8bit mode,
if start play HDR/HLG movie at this time, it
doesn't satisfy the requirement >= 10bit

Solution:
add interface to adjust cs/cd to Y422,12bit

Verify:
ah212

Test:
ah212

Change-Id: Ife68b4b83d0864909015cdf67d61abe692469db7
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-03-29 06:13:47 -07:00
Dezhi Kong be7cc61fb6 uvm: add valhall support for t5m [1/3]
PD#SWPL-113559

Problem:
valhall don't support lazy map process
t5m don't support video screencap
cts accuracy will fail on t5m

Solution:
add valhall support

Verify:
T5M

Change-Id: I3ade8ff97aad9d9cb03286ed7c0a788d1a640317
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-03-29 00:13:06 -07:00
qiang.liu 9d087c196d adc: add get adc status interface [1/1]
PD#SWPL-113351

Problem:
atv demod read adc register crash when tvafe reset adc module

Solution:
atv demod confirm adc work normal and then read adc register

Verify:
t5d

Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
Change-Id: I5fe8a7ddc7f57ee011c1dabe26feaffdba31a51a
2023-03-24 07:07:16 -07:00
Pengcheng Chen 6ed983774e vpp: vsync_notify_video_composer update for prevsync [1/1]
PD#SWPL-115301

Problem:
vsync_notify_video_composer update for prevsync

Solution:
vsync_notify_video_composer update for prevsync

Verify:
t5m

Change-Id: Ia2ccb9c8e1506cce825caee6eea143a86b7f4038
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-03-24 06:12:37 -07:00
wenlong.zhu aa19568bc4 AduioBridge: porting from 4.19 to 5.15 [1/1]
PD#SWPL-114902

Problem:
1.AudioBridge module needs to be added to kernel 5.15.

Solution:
1.Makefiles, Kconfig, and code need to be adjusted in AudioBridge.

Verify:
A113L AD403 Board

Change-Id: I47ef1f7c50836c6617969dc2c37d8d340fc15f19
Signed-off-by: wenlong.zhu <wenlong.zhu@amlogic.com>
2023-03-23 22:10:18 -07:00
Pengcheng Chen 7475a7bc08 vpp: separate pre vsync and post vsync for frc [1/1]
PD#SWPL-111973

Problem:
separate pre vsync and post vsync for frc

Solution:
add separate pre vsync and post vsync for frc

Verify:
t5m

Change-Id: I3eb811030cc28d63a531d9041f922a21d8b441b7
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-03-23 14:18:45 -07:00
dongfei.li 42bd894ab4 frc: frc add axi_crash_function [1/1]
PD#SWPL-107293

Problem:
t5m validation item

Solution:
t5m validation item

Verify:
T5M

Change-Id: Iffb970709760a7722be243e35f25af81329654c3
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-03-23 01:41:42 -07:00
jinbing.zhu 40facb7df6 amvecm: 5.15 add color matrix data [1/1]
PD#SWPL-116364

Problem:
add

Solution:
add

Verify:
adt4

Change-Id: I32475473d1397fca9937e38e2d7d670ccac4e89f
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-03-22 22:36:30 -07:00
Wentao.Sun 5d36c4597c tee: implement APIs with pta [1/1]
PD#RSP-1483

Problem:
APIs use fastcall

Solution:
implement APIs with pta

Verify:
Android T + AH212

Change-Id: I7374346374ec2840d95f5f6f6df4612918841928
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-03-21 06:09:35 -07:00
Wenjie Qiao 6f45850ee3 hdmitx21: emds pkt send for cuva [1/1]
PD#SWPL-113893

Problem:
tx21 lack send emds pkt for cuva

Solution:
tx21 send emds pkt for cuva

Verify:
t7

Change-Id: I357ae3dbbb0f8c514a9607049f9c8695bd4fe0cc
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-03-19 22:15:55 -07:00
qinghui.jiang 01cb6fbdf3 vpp: add gamma ioctl flow for t5m [1/1]
PD#SWPL-112921
PD#SWPL-110649

Problem:
drv can't receive gamma curve data of top layer.

Solution:
add more code flow for setting top data

Verify:
t5m

Change-Id: I4c3cf80ce1f00cf6d4fab281e3dc6bf0bfea9356
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2023-03-17 07:13:08 -07:00
Wenjie Qiao f77d1a3531 hdmitx21: colorimetry should be 601 [2/2]
PD#SWPL-114232

Problem:
colorimetry not same of 480p and 576p when uboot and kernel

Solution:
keep same 601 of 480p and 576p both uboot and kernel

Verify:
T7C

Change-Id: I9e9b1a32719116b3c61bdca1c1ce4a0ec2f568cf
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-03-16 21:03:50 -07:00
Jianxiong Pan 02b9290a75 dmc: change vendor hook to get pagetrace buffer. [1/1]
PD#SWPL-112306

Problem:
android u remove the rmqueue vendor hook.

Solution:
use cma_drain_all_pages_bypass instead.

Verify:
t5m_ay301.

Change-Id: I8f1c1634e9c72d15e9a1f7aac937b5fcc66f00be
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-03-16 21:03:42 -07:00
qiang.liu bfbd16c129 hdmirx & vdin: add avi ext_colorimetry callback api for vdin [1/1]
PD#SWPL-92090

Problem:
need hdmirx provide ext_colorimetry info to vdin

Solution:
add avi ext_colorimetry callback api for vdin

Verify:
t5w

Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
Change-Id: Ie73c82a0bb086befefdcb6cb02872d0b44cdb054
2023-03-16 08:16:39 -07:00
Wentao Sun 39f83d314f Revert "tee: implement APIs with pta [1/1]"
This reverts commit 3673e3e5ed.

Change-Id: I7283a2aef1988f1130be22954ea6f3f97511a1cb
2023-03-14 23:20:22 -07:00
Wentao.Sun 3673e3e5ed tee: implement APIs with pta [1/1]
PD#RSP-1483

Problem:
APIs use fastcall

Solution:
implement APIs with pta

Verify:
Android T + AH212

Change-Id: Icedcd4465163100e0f7e646c7359933cfe7c60ae
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-03-14 22:12:28 -07:00
Jianxiong Pan a783454143 mm: free reserved memory in ko. [1/1]
PD#SWPL-114938

Problem:
need free reserved memory in ko.

Solution:
export the free_reserved_mem func.

Verify:
t5m_ay301.

Change-Id: Ib086317c00ece3f6017bb3b3e0454915f924b28c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-03-14 04:16:28 -07:00
dongfei.li fdc44491ff frc: frc add var inform alg [1/1]
PD#SWPL-114012

Problem:
add var to inform alg

Solution:
add var to inform alg

Verify:
T5M

Change-Id: Ibc858b039cdaf05fce17f9d1bec6762abcd0b8b9
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-03-14 03:00:30 -07:00
miaohong chen 98b3b5414e v4ldec: CF2 scatter mem saving optimization [1/2]
PD#SWPL-113962

Problem:
For the surface -> no-surface scenario,
the surface holds the buffer and cannot be released,
resulting in excessive memory usage.

Solution:
For no-surface scenarios, recycle after the afbc buffer is output.
n addition, count the scatter mem allocated from the system.

Verify:
T5M

Change-Id: Ib35efd91ed315569753ca929e735680868aabc8e
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2023-03-12 23:13:30 -08:00
MingLiang Dong af74f83945 amvecm: update color tune code from 4.9 [1/1]
PD#SWPL-113434

Problem:
update color tune code from 4.9

Solution:
update color tune code from 4.9

Verify:
t3

Change-Id: I338c8639f1e1c2d080cdbfc4a1199942b8cac916
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-03-12 21:16:15 -08:00
hongyu.chen1 8b00688241 power domain: add feature in kernel5.15. [1/1]
PD#SWPL-112632

Problem:
1.Some domains are still open after kernel is started.
In fact, they are not needed
2.Enable partial domain without awlays on it

Solution:
add unused power domain feature check.

Verify:
s5_ax201

Change-Id: I6c61a4a6d9c56f10e4c043f5e15af509ec7d2a51
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-03-12 19:13:35 -08:00
xiang.wu1 19096e0ca4 hdmitx: fix y422 deep color check [1/1]
PD#SWPL-112839

Problem:
if deep color declaration in VSDB not
support 10/12bit, y422,10/12bit will
be masked in dc_cap sysfs node.

Solution:
not check color depth for y422

Verify:
S5

Change-Id: I8faeebedf2e66fd1a41ff0e65d925a9d3cdc38c2
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-03-09 21:21:13 -08:00
Evoke Zhang 43b3d1f831 lcd: fix hdmi mode 47hz & 95hz timing [2/2]
PD#SWPL-114216

Problem:
hdmi mode 47hz timing is incorrect

Solution:
fix hdmi mode 47hz & 95hz timing

Verify:
ar301

Change-Id: I0240e4e7b871cec86bfacedaa28f90f23a718cf3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-03-09 21:21:00 -08:00
qiang.liu 9a2ca619c2 vdin: screen capture modify [1/1]
PD#SWPL-56204

Problem:
1.set vdin1 port error cause crash
2.if not data input not reminder

Solution:
1.vdin1 port protect
2.will reminder information if not data input

Verify:
t5w

Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
Change-Id: I555ae90d7a51d0d79b4bdbdbb143e866f815d3d5
2023-03-09 01:12:25 -08:00
Xingxing Wang b3fa479621 thermal: align T5M thermal params to T3 [1/1]
PD#SWPL-112969

Problem:
t5m thermal params update

Solution:
align to t3

Verify:
t5m

Change-Id: I1e592cbd8e1ad39aa09fbef397b50ef919e07722
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-03-08 19:17:15 -08:00
jinbing.zhu 1fc9e2a290 dnlp: 5.15 dnlp modify variable [1/1]
PD#SWPL-109932

Problem:
modify

Solution:
modify

Verify:
t982

Change-Id: If90f74464e1ed1eea0c403b311ba6184e1739d74
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-03-08 03:13:58 -08:00
Zongdong Jiao 299b454066 hdmitx21 & audio: add 4 i2s channels select [1/1]
PD#SWPL-104214

Problem:
no i2s channels select

Solution:
1) add 4 i2s channels select
2) add i2s_ch_mask in struct aud_param
3) audio notify i2s channel mask to hdmitx

Verify:
t7 BDS

Change-Id: I6d2ee785baa7b92b9699746cf339936bba044486
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2023-03-07 23:10:30 -08:00
haitao.liu a9b8952a01 vdin: vdin0 support scatter memory [1/1]
PD#SWPL-94516

Problem:
new feature

Solution:
1.add vdin0 support scatter memory
2.enable this feature on t3 2G board

Verify:
t3

Change-Id: I73e07628a72d262179762636f346af176b3a7191
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-03-03 05:59:31 -08:00
xiang.wu1 484b0c6eda hdmitx: not send hdmi/audio uevent under suspend [1/1]
PD#SWPL-94511

Problem:
under suspend, if send hpd/audio uevent to uplayer
1.there may be mode setting from system
2.audio server and audio_hal will start run,
increase power consumption

Solution:
not send hdmi/audio uevent under suspend

Verify:
ah212

Change-Id: Id49edf49ea287871ca8f1b4e600a494cafa3958d
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-03-02 05:49:51 -08:00
Hangyu Li 02322b8dc5 tee: integrate tee linux driver 3.18 [1/1]
PD#SWPL-100078
PD#SWPL-100278

Problem:
need to change tdk_linuxdriver to linux kernel

Solution:
update tee driver from linaro-swg/linux upstream
https://github.com/linaro-swg/linux
upstream tag: optee-3.19.0
upstream commit: 29aee39cfa
optee-3.19.0 is almost same with optee-3.18.0

Verify:
Android T + ohm + Kernel 5.15

Change-Id: Ib58f53f50e7b4be3fb87f120a9eceaea0c5803f4
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-02-24 03:56:26 -08:00
Evoke Zhang a4c36bfb13 backlight: ldim: update reserved memory init method [1/1]
PD#SWPL-110462

Problem:
local dimming reserved memory can be optimized for 1M size

Solution:
update local dimming reserved memory init method:
flag=1, from ldc_reserved cma
flag=2, from system cma pool
flag=3, from kmalloc

Verify:
at301

Change-Id: I76da0e738dcbcca82ff7d9f51a23e9c79f8f8ed3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-02-23 01:50:28 -08:00
Bin.Wang2 bb3f8563a3 vlock: t5m vlock bringup [1/1]
PD#SWPL-107079

Problem:
t5m vlock pll bringup

Solution:
t5m vlock bringup

Verify:
verify on t5m

Change-Id: I6ac8ee5ecfc0a651482cc3b99a14344c314b074b
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2023-02-17 00:07:06 -08:00
jialong.jiang d624f802f5 dv: Kernel5.15 S5 dv. [1/1]
PD#SWPL-110685

Problem:
Kernel5.15 S5 dv.

Solution:
Kernel5.15 S5 dv.

Verify:
sc2.

Test:
dv test ok.

Change-Id: Icd0196dacef028f00157934e1f4ee737ae84ec23
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-02-15 06:10:03 -08:00
zehong.luo 2e2da8e1c9 media: s5 bringup decoder drivers. [1/1]
PD#SWPL-106566

Problem:
s5 media_modules 5.4 code porting to media_modules 5.15
- Kernel - Media driver

Solution:
add AVS3 format define

Verify:
s928x

Change-Id: Ib92699fafe1e4c7ef29275f7449a2e2166a89c43
Signed-off-by: zehong.luo <zehong.luo@amlogic.com>
2023-02-15 06:09:55 -08:00
chen.xu b1dc84744a video_processor: sync code from 5.4 to 5.15 [1/1]
PD#SWPL-110999

Problem:
video_processor need sync code from 5.4 to 5.15.

Solution:
1.sync code from 5.4 to 5.15 for video_processor.
2.sync video_processor 5.4 code to 5.15 start commit Ibc1cc32
and end commit I75b5c4.
3.sync vicp end commit I1afb897.
4.except I816b036 other already sync.

Verify:
T7C

Test:
sync code from 5.4 to 5.15 for video_processor

Change-Id: I75387e4e7874a139307a066cf9d24cbb2991e73d
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-02-14 19:52:51 -08:00
gerrit autosubmit 7828bc6c8a Merge "dvb_extern: add R856 tuner id (V1.11) [1/1]" into amlogic-5.15-dev 2023-02-13 04:14:37 -08:00
gerrit autosubmit e84311ffa5 Merge "tvp: add cma_mmu_op api for clear or set page pte. [1/1]" into amlogic-5.15-dev 2023-02-13 04:11:29 -08:00
jialong.jiang b70f6e94c6 hdr: Kernel5.15 S5 hdr. [1/1]
PD#SWPL-109811

Problem:
Kernel5.15 S5 hdr.

Solution:
Kernel5.15 S5 hdr

Verify:
sc2.

Change-Id: I60d70b18410bb9b26d21d4de53134ee116d1996f
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-02-12 23:41:21 -08:00
min.yang b10b39fdab dvb_extern: add R856 tuner id (V1.11) [1/1]
PD#SWPL-110885

Problem:
should support cxd2878 and R856.

Solution:
and R856 id.

Verify:
verified sc2.

Change-Id: Ib2da06445a5bf9b5efa44df616179ab7170a08fb
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-02-13 11:24:34 +08:00