Commit Graph

936 Commits

Author SHA1 Message Date
jie.dai c12976a050 lcd: lcd memory management [2/3]
PD#SWPL-160850

Problem:
need add driver to manage lcd memory

Solution:
1. add resman platform driver to manage lcd common resource
2. add reserved memory management driver

Verify:
t5m/t3x/t3/t5w/t5d/txhd2

Change-Id: Id92a3807a234a650d48645d35c8f445b24fbcf69
Signed-off-by: Jie Dai <jie.dai@amlogic.com>>
2024-06-18 23:40:55 -07:00
qing.zhang 8fc85981fc Audio: G12A kernel 5.15 need oe pin function [1/2]
PD#SWPL-158794

Problem:
oe pin can't work

Solution:
add oe pin control

Verify:
g12a

Change-Id: I43145d13958d9928eb839e8173e1b8fbd2dafbe2
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-06-18 05:51:44 -07:00
huijie.huang 91ed26090c lcd: support dccd parsing flow [2/3]
PD#SWPL-139062

Problem:
DCCD support

Solution:
Support load dccd

Verify:
T5M

Change-Id: I3f30b90b6e27fff1566902b9da848280fe6aa532
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-06-18 03:06:22 -07:00
xiang.wu1 3e99d70844 hdmitx: add soundbar switch API on hdmi tx driver [1/1]
PD#SWPL-172191

Problem:
[U] need add soundbar switch API on hdmi tx driver

Solution:
1.add sounbar_en node to control soundbar switch
write 1 is on, write 0 is off
2.if soundbar is on, not send hpd event to android
if soundbar is off, keep the original process

Verify:
T7

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82,DRM-TX-122

Change-Id: I4d2c78064a3d158eca038cbbae945a8331dac76d
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-06-17 06:03:18 -07:00
donghui.wang 32a15e6656 ambilight: add ioctl api for get data [1/1]
PD#SWPL-173586

Problem:
miss ioctl api for get data

Solution:
add ioctl api for get data

Verify:
t3x

Change-Id: Ia6f1f69f22ec8e5c68c23c766b5abc48a10c1d60
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-06-17 03:35:52 -07:00
shihong.zheng 8582af4d3a media: h266 format define. [1/1]
PD#SWPL-172885

Problem:
media_moduls h266 code depend on h266 format define.

Solution:
define h266 format for decoder

Verify:
s6 pxp

Change-Id: Ia001b35292691811425de6b7e8c98e9e3e65575d
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2024-06-16 20:05:14 -07:00
yaoyu.xu 11e6779c74 dsc: dsc flow modify [1/1]
PD#SWPL-165955

Problem:
some dsc format can not decode.

Solution:
adjust dsc settings.

Verify:
t3x

Change-Id: If89605bbaeed3f40b59d4c53a4721de2929f4f23
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-06-11 01:49:03 -07:00
huijie.huang a1431ff50f lcd: tcon support extern header [2/2]
PD#SWPL-171136

Problem:
Tcon need to support extern header

Solution:
Tcon add extern header analyser

Verify:
ay301

Change-Id: Ia360dc58801edeb82ecda0ae946bc13c33cb509b
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-06-07 03:57:56 -07:00
hongyu.chen1 edbb446892 S7D: power domain amfc config. [1/1]
PD#SWPL-164972

Problem:
1.The AMFC module is currently configured to always on.
In order to save power consumption, power can be
removed during suspend.
2.usb power domain naming is not standard

Solution:
1.Cancel the AMFC always on configuration.
2.Change the usb domain name

Verify:
S7D

Change-Id: Ib92ffee894f248f7edb2a358bddc548543c68719
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-06-07 01:03:24 -07:00
Jianxiong Pan b47e253023 mm: pagetrace: arm64 unable get _text and module_base parameters. [1/1]
PD#SWPL-161628

Problem:
arm64 unable get _text and module_base parameters via find symbal.

Solution:
use long type to store pagetrace information.

Verify:
sc2.

Change-Id: Id52bed43bbeed50a6d8ef0e32a54c5d9d9eab331
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-06-06 02:24:59 -07:00
lizhi.hu ee3e9b6639 lcd: tablet multi timing support 2 [1/1]
PD#SWPL-166373

Problem:
lcd meed support multi timing switch func

Solution:
1. connectorX_type based vout output control
2. outputmode no more have panel/panel1 indicator, now use timing
3. lcd list and lcd set func help to set lcd config

Verify:
t7_an400
t3x_bc302_multidisplay

Change-Id: I4881627ac083b62f26397f6d749adff2c867989e
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-06-05 04:01:40 -07:00
Xingxing Wang 562c6fc1b6 thermal: add indmc sensor driver to do thermal cooling [1/1]
PD#SWPL-166661

Problem:
DDR kernel refresh control patch list

Solution:
add indmc sensor driver to do ddr thermal cooling

Verify:
S7D

Change-Id: I5ba8d167f9ce83785f51af6d2809030147aaacde
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-06-05 04:00:52 -07:00
congyang.huang c5702cf190 drm: dummy connectors should only register corresponding vout_server [1/1]
PD#SWPL-166621

Problem:
dummy connectors should only register corresponding vout_server

Solution:
dummy connectors register vout_server by connector type env

Verify:
t7c t3x

Test:
DRM-OSD-26

Change-Id: Ibcecc573739cfefe92797fe562bcf1d04d3dfc93
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-06-05 04:00:27 -07:00
congyang.huang 82af31ee68 drm: drm supports a new connector type framework [1/1]
PD#SWPL-166619

Problem:
DRM needs to support mode switching for lcd tablet

Solution:
1.drm extend private connector type for hdmitx
2.modify the found connector flow in the logo
3.add connector type property for hwc to get private type
4.remove old lcd rate hint flow

Verify:
t7c, t3x

Test:
DRM-OSD-44, DRM-OSD-5

Change-Id: I192c29c9f2c8c2936810103407cd7cd219a85401
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-06-05 04:00:22 -07:00
Gaowei Zhao 2033694d10 hdmirx: add filmmaker flag to struct tvin_latency_s [1/1]
PD#SWPL-168888

Problem:
tvserver can not get filmmaker flag

Solution:
add filmmaker flag to struct tvin_latency_s

Verify:
t3x

Change-Id: Iebe041e02dcf1deea7a0a96f9681cd629fbbb50f
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-06-05 02:25:52 -07:00
Evoke Zhang 0518029b68 lcd: optimize debug information [2/2]
PD#SWPL-171280

Problem:
lcd debug information need optimized

Solution:
optimize lcd debug information

Verify:
ay301

Change-Id: I0ca030f2cdbd5c306cb229568138a155028059f3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-06-03 00:12:42 -07:00
Jie Dai 8bd77b0fc9 lcd: eliminate frame rate error caused by SS [1/1]
PD#SWPL-165366

Problem:
there is a vsync drift while open ss

Solution:
fix vsync drift by adjust frequence or vtotal

Verify:
t5d/t5m

Change-Id: I225c8ece65869d4607a3f75572ef160ccdce1adf
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2024-05-31 06:04:52 -07:00
Cheng Wang 674a647d35 frc: rectify the identified defects [3/3]
PD#SWPL-169168

Problem:
forced type conversion error

Solution:
rectify the identified defects

Verify:
master

Change-Id: Ia33867554bbdf85167338a325b959116d8757366
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-05-31 05:26:52 -07:00
Feng Chen cf7c866d33 spinor: update spi-nor layer [1/1]
PD#SWPL-164866

Problem:
update spi-nor layer.

Solution:
update spi-nor layer.

Verify:
C3_AW409

Change-Id: Ic93021b04cc0721d57c9c5c88e5f9e0abcdd090e
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-05-30 06:02:50 -07:00
lizhi.hu 03fe50f326 Revert "lcd: tablet mode multi timing support [1/1]"
This reverts commit a4994fbed5.

Change-Id: I34912d38a12ad8c21aceacb3e77e1c028cfee9d3
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-05-30 16:50:52 +08:00
lizhi.hu a4994fbed5 lcd: tablet mode multi timing support [1/1]
PD#SWPL-158383

Problem:
tablet mode need support multiple timing switch

Solution:
support cus_ctrl and vmode

Verify:
t7_an400

Change-Id: I64d2c6caeff914aa034f67e0d53a5b262d6c17c4
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-05-29 22:30:23 -07:00
congyang.huang b0de672bd4 vout: support connector type interface [1/1]
PD#SWPL-166618

Problem:
connectors can not get connector type

Solution:
add connector type interface for connectors to get value

Verify:
t7c txhd2

Test:
DRM-OSD-44

Change-Id: Ic6fe152d419bc1a9381ada21dfa9a808e4e2c84c
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-05-29 22:02:31 -07:00
dezhi kong f7cc250dbf uvm: add dummy buffer skip process [1/1]
PD#SWPL-167401

Problem:
uvm dummy data use too memory

Solution:
manage dummy buffer separate

Verify:
OHM-T

Change-Id: I0915573b4a0b75cc073aaa376381add8837d3381
Signed-off-by: dezhi kong <dezhi.kong@amlogic.com>
2024-05-28 08:02:36 -07:00
jinbing.zhu 05d50eaa10 amvecm: add colorimetry delivery method [1/1]
PD#SWPL-140663

Problem:
add ext signal type

Solution:
add ext signal type

Verify:
t965d4

Change-Id: Ibe681cdcef8194328282a31af09096f8cb961424
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-05-28 05:54:40 -07:00
zongdong.jiao c757911d43 hdmitx: add brr_duration in vinfo struct [1/1]
PD#SWPL-170855

Problem:
When QMS is enabled, the BRR may 120hz. When switches to lower rate,
video player will run under lower rate and display abnormal.

Solution:
Add brr_duration and video still run BRR rate to avoid abnormal display.

Verify:
s7

Test:
DRM-TX-38

Change-Id: I03f3588f89648145ae06b66fe4db4bb9701559b3
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-05-28 03:58:38 -07:00
qinghui.jiang 9025387ebf amvecm: sdr2hdr ioctl for pq server [1/1]
PD#SWPL-167174

Problem:
need new ioctl for sdr2hdr

Solution:
add new ioctl and flow for sdr2hdr

Verify:
t3x_revb

Change-Id: Ia479ae29cfd7c3552e87ca17fbda78ae2db3ad29
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-05-28 03:58:07 -07:00
Hao Shi b83a65e54e amvdec: optimize vdec_info and vframe_counter_s [1/1]
PD#SWPL-168978
PD#SWPL-169060

Problem:
The size of vdec_info and vframe_counter_s of
the kernel and player are out of sync causing
tsplayer AMSTREAM_IOC_GET_MVDECINFO to fail.

Solution:
force structures to be byte-aligned

Verify:
t5w s4d

Change-Id: I14f2388d82288cbaa97dbc309a486f908bf597db
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-05-28 03:57:23 -07:00
Evoke Zhang 7720858226 lcd: update ufr switch flow [1/1]
PD#SWPL-168193

Problem:
lcd ufr switch flow can be update

Solution:
1.update lcd ufr switch flow
2.update lcd process time record

Verify:
ay301

Change-Id: I59f1d55e06f0b449105c272c2fad34cc431cda76
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-05-27 05:59:12 -07:00
hai.cao e3a8158c8a video: add vd2 mute support for vdin [1/1]
PD#SWPL-162281

Problem:
vd2 can not mute

Solution:
add vd2 mute support according vdin channel

Verify:
t3x

Change-Id: I3d291d58fcdf9b171892f88513996dc63591a522
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-05-27 05:59:03 -07:00
Bin.Wang2 86d95dc4b4 vpp: add Dual channel display video mute function [1/2]
PD#SWPL-160856

Problem:
vd2 no video mute

Solution:
add dual channel display video mute function

Verify:
T3x

Change-Id: I7c68ace48e5af8870b69ca3e2a03f7b1bf62ff59
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2024-05-27 05:58:53 -07:00
jinbing.zhu 98863d138b amvecm: add ai color param ioctl [1/1]
PD#SWPL-165683

Problem:
add ai color param ioctl

Solution:
add ai color param ioctl

Verify:
T3X

Change-Id: I9103c45c8e8325183d9769ad814a67394458b029
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-05-27 01:53:00 -07:00
Long abdeb4129a eMMC: add sg-link descriptors for crypto. [1/1]
PD#SWPL-168640

Problem:
The old descriptor chain will cause dun to not be updated.

Solution:
add sg-link descriptors.

Verify:
S7

Change-Id: I50ccca0f441c4df4945a350cfdf9779497d9bba5
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-26 23:03:04 -07:00
Huijuan Xiao f6bf14f09c hdr: hdr core before osd blend [1/1]
PD#SWPL-157470

Problem:
bypass hdr mtx when osd blend after hdr core.

Solution:
bypass osd hdr mtx.

Verify:
t3x

Change-Id: I4ef0f736fe270cf52f91dcf09dc99ae0574e2c42
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-05-24 02:24:08 -07:00
Evoke Zhang 1a2c33a53e lcd_extern: support more option for tcon pmic usage [2/2]
PD#SWPL-164936

Problem:
need more option for tcon pmic usage

Solution:
support more option for tcon pmic usage
1.check i2c data by section
2.multi list bypass for power on default
3.wait gpio

Verify:
ay301

Change-Id: Ib0f849796f2d79931cd421a51fcf29d1132fd9b8
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-05-23 20:01:10 -07:00
Xiangyu Cai da1e33dcb4 vrr: vdin add vrr instead vlock [1/1]
PD#SWPL-168556

Problem:
not disable vrr when quit game mode

Solution:
disable vrr when quit game mode

Verify:
t5m

Change-Id: Ia4e4b6a6b9944ae576029e0aef58b8270f942d35
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-05-23 02:02:28 -07:00
Junyi Zhao 51a3007a16 pwm: fix hibernate clock reg [1/1]
PD#SWPL-170512

Problem:
clock config for hibernate

Solution:
add hibernate clock support

Verify:
T7C an400

Change-Id: I362522e91ea4e6f1aaa77216a686438d5876716e
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-05-23 02:02:20 -07:00
Xingxing Wang 46199b50cc thermal: ddr thermal param update of t5d&t5w [1/1]
PD#SWPL-169759

Problem:
align 20nm ddr thermal params to kernel5.4

Solution:
1. align 20nm ddr thermal params to kernel5.4
2. update ddr status when coolingdevice registerd

Verify:
t5d&t5w

Change-Id: Ib33b715e790a72f2969dc69c3dec159589ae0d3f
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-05-22 03:59:31 -07:00
Evoke Zhang cbbc251b91 lcd: driver resource sync for init on [1/1]
PD#SWPL-169761

Problem:
lcd driver resource not ready sometime when kernel init on

Solution:
add lcd driver resource sync function

Verify:
ay301

Change-Id: I98cece77e4f35911cea6deb191353078a6720189
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-05-21 23:59:55 -07:00
wenlong.zhang 86ad56769f drm: support yuv 10bit for video [1/1]
PD#SWPL-146801

Problem:
support yuv 10bit for video

Solution:
support yuv 10bit for video

Verify:
s7

Test:
DRM-OSD-63

Change-Id: I93d00a77cb6776bd430c2db9845e685ff059bddd
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-05-20 23:55:39 -07:00
jialong.jiang 4109c94ecc amdv: compilation failure problem. [1/1]
PD#SWPL-167603

Problem:
compilation failure problem.

Solution:
compilation failure problem.

Verify:
redi_wv4

Change-Id: Ia2077b1d4e2956a16a2c3a73d82bd5a0e20c78db
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-05-20 06:39:53 -07:00
Huijuan Xiao 0bca5b8708 hdr: hdr core before osd blend [1/1]
PD#SWPL-165938

Problem:
move rgb2yuv from hdr core to osd csc.

Solution:
move rgb2yuv from hdr core to osd csc.

Verify:
s7d

Change-Id: Ib52d37f9f9a72dad048ce3ed2512ed1208d1538f
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-05-20 06:39:47 -07:00
jialong.jiang 47b69b6702 amdv: add aisdk function for hw5. [1/1]
PD#SWPL-168075
PD#SWPL-168078

Problem:
add aisdk function for hw5.

Solution:
add aisdk function for hw5.

Verify:
t3x

Change-Id: I60b3d1e3488ae7442179a7f6974134141e2f4082
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-05-20 04:10:28 -07:00
Tao Zeng c2ce371c4a amfc: add amfc driver support [1/1]
PD#SWPL-137614
PD#SWPL-163213

Problem:
No amfc driver

Solution:
add it:
1, basic driver for AMFC
2, EROFS support
3, kernel compressed by ZSTD support

Verify:
pxp

Change-Id: I45d2e308d209e35edba626619072aae93c4d0f56
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-05-15 02:28:22 -07:00
Evoke Zhang a0968ba05f lcd: tcon: update ufr switch mode 3 flow [1/1]
PD#SWPL-168832

Problem:
some tconless panel maybe flash screen when ufr switch with scrb enabled

Solution:
update ufr switch mode 3 flow to avoid flash screen

Verify:
ay301, bc302

Change-Id: I4b2831af588927ef88813f99279693a28d1b0b1d
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-05-13 22:03:40 -07:00
zijie.lin 03b65068b0 ldim: ldim suspend/resume and spi fix [1/1]
PD#SWPL-165259

Problem:
1. T5W/T3 do not support SPI_LSB_FIRST.
2. T5W suspend/resume will reset the reg.
3. ldim_pwm_level is 0 when power on.

Solution:
1. ldim software implementation of big-endian
and little-endian data conversion.
2. ldim send mode base on spi controller.
3. When resume ldim_fw reset the reg value again.
4. Set ldim_set_duty_pwm after set pwm pinmux.

Verify:
T5W/T5M

Change-Id: I409c4d378fc972f7f643ee64a6588119e1494e1b
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2024-05-13 05:53:35 -07:00
ruofei.zhao 1cfe29b51a hdmitx: update hdmitx version [1/1]
PD#SWPL-168367

Problem:
update hdmitx version for release

Solution:
update hdmitx version

Verify:
S7D
SC2

Test:
DRM-TX-40

Change-Id: I6115555010b8303d44e2a4d422e1319cb436a79a
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-05-09 21:54:58 -07:00
yao liu 1cfc6caede amdv: SDK test case DMB fail [1/1]
PD#SWPL-167148
PD#SWPL-166753

Problem:
1.DMB level5 fail
2.PD ioctl fail

Solution:
1.correct error for reg compare
2.change ioctl parameter

Verify:
t3x

Change-Id: I74fee5fd9eca74fd2df02600d9b1a96cf00c7313
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-05-08 07:38:14 -07:00
Long 0697ee9bb3 eMMC: support inlinecrypt feature. [1/1]
PD#SWPL-166960

Problem:
need inlinecrypt for emmc

Solution:
support inlinecrypt feature

Verify:
S7

Change-Id: I1d328d527a714b1f4661b0d0c328ecedec30d0d4
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-07 04:04:59 -07:00
hang cheng fbb8083336 cvbs: add video mute test api [1/1]
PD#SWPL-167292

Problem:
need cvbs video mute api for special test

Solution:
add cvbs video mute api for drm: call
cvbs_video_mute(true / false) to mute/unmute
CVBS video output, it will keep video mute
even set cvbs output again, until drm call unmute.

Verify:
s1a

Test:
CVBS video mute/unmute + hotplug hdmitx and check cvbs mute

Change-Id: I5f6d5c28596f0cdf26c9356a2500b1fe8fe43fd7
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-04-30 02:35:40 -07:00
xing.xu ecb7e8f56c vdec: S5 Secure + no Secure play no smooth [2/3]
PD#SWPL-164404

Problem:
Back permissions are not separated from
front permissions.

Solution:
Separate back's permissions from front
and control them separately

Verify:
s5

Change-Id: I9e6465d5b8b45143a51c440d1a24160ad80087fb
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2024-04-29 21:55:35 -07:00