Commit Graph

816 Commits

Author SHA1 Message Date
hualing chen f473d32d48 media_proxy: CB2 move proxy to kernel common for 5.15. [1/8]
PD#SWPL-177051

Problem:
1  Di module can not call proxy api for 5.15.

Solution:
1  Move MediaProxy to kernel common for 5.15.

Verify:
t5m

Change-Id: I573f51392c809b77bf6a2e8194a4a3a451f1cc35
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
2024-08-06 01:42:22 -07:00
Junyi Zhao 38ff5910ca pwm: s7: add double channel and normal channel in tee env [1/2]
PD#SWPL-176719

Problem:
when pwm's clk be locked by tee, all pwm should follow tee.
so, should support wifi 32K on pwm tee module.
in case of clk of wifi's pwm channel being locked.

Solution:
add  double channel to match wifi 32K legacy used.

Verify:
s7

Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
Change-Id: I343be31d409cf1480b5681acc1ec83fd7a7fad5c
2024-08-05 21:46:19 -07:00
Evoke Zhang e30676fc8e lcd: update ufr mute control [1/1]
PD#SWPL-175916

Problem:
need support different unmute time for upper layer UI switch

Solution:
support different unmute time for upper layer UI switch

Verify:
bc302

Change-Id: I2018f8380ba186f2a232adfb8a24c734bf95bdc3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-08-02 03:52:42 -07:00
dian.shao fa8e67605c usb: s6 power optimise & misc [1/1]
PD#SWPL-177679

Problem:
S6 usb high power.
speed-drop usb devices.
u2phy disconnect, squelch & edgedrv cali

Solution:
Optimise suspend logic by holding usb controller reset bit,
usb controller comb reset bit, usb2_phy_reset_bit, usb3_phy_reset_bit
.Besides:
1. reset usb3_apb_reset_bit and leave it set then modify corresponding
static regs for low power.
2. off unused usb3phy digital 100M clk.
3. Some quirky devices take >2s to turn on Rterm and begin polling
after resume, which is seen in the new clean usb3 phy. This leads
to wait_for_connected timeout when resuming. Add XHCI_MISSING_CAS
for xHC to workaround by asserting warm reset at resume.

The speed-drop usb devices TX maybe unstable at insertion, leading to
CDR KI overload. Delay freq tracking start point by modifying fr_en
delay 1us->300us.

Modify params in driver & dts.

Verify:
BL201.

Change-Id: I4d6139ecad79e8582ada818338fcf53a1d66b131
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-08-02 01:00:02 -07:00
Long 1622e39ea9 eMMC: optimizing the data tuning process of HS400ES. [1/1]
PD#SWPL-175417

Problem:
if any cmd resp timeout error in HS400es will not
continue to send the stop command.

Solution:
if there is cmd resp timeout error, we need to
send stop command additionally.

Verify:
txhd2

Change-Id: Id6652ab18e8e7b4281e06d8ff537986bdf60a31e
Signed-off-by: Long <long.yu@amlogic.com>
2024-08-01 06:25:56 -07:00
ruofei.zhao 2fcea7e589 hdmitx: optimized hdmitx logs [2/2]
PD#SWPL-178894

Problem:
hdmitx logs non-normative

Solution:
optimized hdmitx logs

Verify:
S7D

Test:
DRM-TX-78

Change-Id: I49bf8a82fc34e12594f823843aa705d992a96640
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-08-01 03:00:20 -07:00
Sunny Luo 12ceda73f6 spisg: fix mutex lock panic of dirspi_async [1/1]
PD#SWPL-179542

Problem:
dirspi_async is designed for the ldim isr. Unfortunately, the
clk_set_rate and clk_get_rate it calls use a mutex lock, which
will lead to a mutex lock panic.

Solution:
Set spi speed in spi_setup only when controller_data use_dirspi=1
Pre-save the spi speed to avoid calling clk_get_rate

Verify:
t5m

Change-Id: I4fdf9d3be687901a5e8cffa1f838f99551b7d94a
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-07-31 01:52:43 -07:00
zongdong.jiao 9ca532cf80 hdmitx: add external plugin/out handler for eARC hpd [1/2]
PD#SWPL-177527
PD#SWPL-173088
PD#SWPL-173090

Problem:
The HPD signal may be come from HDMI HPD, but eARC has HPD
status from status bits

Solution:
Add reading EDID data in external plugin handler with mutex
No external plugout handler

Verify:
sc2, t7c

Test:
DRM-TX-38

Change-Id: I443e69aa6c8949a0d49df476108414431fd067d7
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-07-31 01:52:03 -07:00
xiangyang.yan 6d63338baa S6: ethernet: googlecast wakeup [1/1]
PD#SWPL-179266

Problem:
googlecast wakeup

Solution:
add function googlecast wakeup

Verify:
bl201

Change-Id: I92b40055453e65df0a7735769acb590dc41f009c
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2024-07-30 23:54:41 -07:00
qiyao.zhou df13c445fb vicp: add shutdown flow for vicp. [1/1]
PD#SWPL-179050

Problem:
poweroff dissipation for VICP clk.

Solution:
1.Implement function in vicp for shutdown.
2.cherry pick 20baea19c687c86f559e02fcd4e10184f14c409f.

Verify:
s5

Change-Id: I0e6fcd59176172d13f70e02661f7e0da182c0677
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-07-30 00:41:28 -07:00
Pengcheng Chen c4de7d4562 vpp: add lcevc support [1/1]
PD#SWPL-164381

Problem:
add lcevc support

Solution:
add lcevc support

Verify:
s7d

Change-Id: Ieb6a24902b687d16faec2399bcde6a72c9a13ef8
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-07-30 09:46:47 +08:00
jinbing.zhu d0acf9b51b amvecm: s6 osd sharpness add load reg case type . [1/1]
PD#SWPL-176250

Problem:
osd sharpness add load reg case type

Solution:
osd sharpness add load reg case type

Verify:
s6

Change-Id: Ia3d12b9b859af62b5b94056bb16f44399e5681e9
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-07-26 06:06:01 -07:00
chen.xu 69d5a31bca video_process: di do rotate pipeline adaption [1/1]
PD#SWPL-171638

Problem:
di do rotate pipeline adaption.

Solution:
support.

Verify:
T982

Change-Id: Ic149b5a2562792a27ce959c0849306d4448a8613
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-07-24 06:19:40 -07:00
Sunny Luo dd0bf6be0a spicc: add a hw interface dirspi_xfer for ldim [1/1]
PD#SWPL-174974

Problem:
ldim require a hw interface dirspi_xfer to run in interrupt handle

Solution:
add a hw interface dirspi_xfer for ldim

Verify:
t5m ay301

Change-Id: I26e1a9890cc45ac0420d15ebea5e0a4bf2f18a56
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-07-19 00:15:16 -07:00
zhenteng.tian 3cdcecabeb vc: add lcevc data path for pipeline. [1/1]
PD#SWPL-168205

Problem:
lcevc data cannot be passed backward to vpp.

Solution:
add lcevc data path for pipeline.

Verify:
S7D

Change-Id: I656baa444025f4aaebfea67e19a011c152961c5f
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-07-18 20:03:23 -07:00
Zhongfu Luo 07a3857d46 efuse: S6: support read cali data [1/1]
PD#SWPL-176790

Problem:
S6: support read cali data

Solution:
S6: support read cali data

Verify:
S6 BL208

Change-Id: I3c3d7ba9f6b9ad619141ef0496b74c6648007d4a
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2024-07-18 03:26:38 -07:00
zijie.lin 5c1227f01e ldim: add hw_init_on stable delay [1/1]
PD#SWPL-177015

Problem:
recovery mode ldim not work;
different mcu have different init times.

Solution:
add ini parameter to set
hw init on stable delay.

Verify:
t3x

Change-Id: Ia74161c5f541a84ed820e72a3a78e769b63a13e7
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2024-07-17 23:58:14 -07:00
wenlong.zhang d30cc6178f drm: add rdma table for drm osd registers [1/1]
PD#SWPL-101847

Problem:
drm write registers to rdma table one by one, due to rdma table update
and rdma manager flush to real register are out of sync, so we want to
creat a fake table, the fake table will copy to rdma table after
pipeline register write done, and then config rdma vsync

Solution:
add rdma table for drm osd registers, and it can dynamic switching by
this node /sys/class/drm/card0/crtc0/rdma_table_switch.
echo 1 > /sys/class/drm/card0/crtc0/rdma_table_switch switch off
echo 0 > /sys/class/drm/card0/crtc0/rdma_table_switch switch on

Verify:
T3x s7 s5

Test:
DRM-OSD-33

Change-Id: I053daa7daaab672f8b1e9fc2c38a2d60552d6288
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-07-17 23:57:23 -07:00
jinbing.zhu c7d190ce78 amvecm: add matrix to lcevc support. [1/1]
PD#SWPL-164384

Problem:
lcevc support

Solution:
lcevc support

Verify:
s7d

Change-Id: I81d196cc1f06ea63de57962412e25ff68faee075
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-07-17 03:57:28 -07:00
Jihong Sui 47d22c7219 deinterlace: add rotation feature [1/1]
PD#SWPL-166466

Problem:
add rotation feature for T3

Solution:
add rotation feature for T3

Verify:
t3

Change-Id: I5865ff4843c3acdada755f1529fd0c41a0da972a
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2024-07-17 03:57:21 -07:00
zhikui.cui 6d366b548c NAND: adjust the mechanism of register partition and get rsv parameter [1/1]
PD#SWPL-177473

Problem:
1.uboot pass partitions by cmdline in default
2.uboot pass rsv parameter by kernel dtb

Solution:
1.first register partitions from cmdline rather than dts
2.first parse rsv parameter from dts rsv part table

Verify:
AW419-C308L-Socket #020

Change-Id: Id7cb010d012768d54602be37d35940efed367d6e
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-07-16 03:55:17 -07:00
Zhao Yi e13b97d3c7 uvm: add lcevc metadata [1/1]
PD#SWPL-166447

Problem:
LCEVC codec support

Solution:
LCEVC codec support

Verify:
AndroidU

Change-Id: Id78c411408da4a72cd5f8bc49ccc3b21c1afd0a8
Signed-off-by: Zhao Yi <zhao.yi@amlogic.com>
2024-07-16 03:55:13 -07:00
yao.zhou 6ee59b4ec8 camera: using v4l2 vdin [2/5]
PD#SWPL-176110

Problem:
bring up mipi sensor in s6

Solution:
1.add csi camera dts config
2.add csi driver support
3.the fe of mipi csi configure TVIN_SIG_STATUS_STABLE status defaultly
4.fix cfmt error
5.add VDIN_WORK_MD_V4L conditional statement
6.only modify s6_s905d5_bq201.dts s6_s905d5_bq208.dts s6_s905d5_bq209.dts
s6_s905x5_bl201.dts s6_s905x5_bl208.dts s6_s905x5_bl209.dts this time

Verify:
local

Change-Id: Ia54b8bf80dcbf26b3576e6eacc43b8f0082374b6
Signed-off-by: yao.zhou <yao.zhou@amlogic.com>
2024-07-16 01:01:07 -07:00
Hao Shi 4a443340db codec_mm: scatter owner register [1/1]
PD#SWPL-176775

Problem:
scatter keep size need expand for vdin

Solution:
scatter user can set scatter keep size
by register scatter owner.

Verify:
ohm

Change-Id: I4be8af6dff0454cda9191666ec48cd1e03464127
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-07-15 02:11:29 -07:00
ruofei.zhao 3f6e4635c3 module: update hdmitx version to 20240712 [1/1]
PD#SWPL-176541

Problem:
update hdmitx version for release

Solution:
update hdmitx version to 20240712

Verify:
S6

Test:
DRM-TX-40

Change-Id: I113108804c58904be373d9bd4f264227b0d1b247
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-07-15 00:05:22 -07:00
yao liu 6bf8cf9fca amdv: blank screen when osd3 on/off [1/1]
PD#SWPL-168620

Problem:
when osd3 on/off, core2a and core2c reset, but lut
updated fail; drm enable osd3 is one vsync earlier
then dv core2c

Solution:
1.drm set core2c lut when osd3 off->on
2.add force_toggle_once debug

Verify:
s5

Test:
s5

Change-Id: I5fe2a7abd1f4b887da5f32a655a24418fee86b64
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-07-15 00:04:56 -07:00
zhou.han d871967cda hdmitx: autotest fix [1/1]
PD#SWPL-161339

Problem:
EDID auto test fail

Solution:
print Source Physical Address

Verify:
ohm

Test:
autotest

Change-Id: I23cffa299418a7c79becfabb37c545baca4c6bda
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-07-11 02:05:11 -07:00
ruofei.zhao f7f1e76909 hdmitx21: s6 need to support 1080p120hz [2/2]
PD#SWPL-176326

Problem:
s6 need to support 1080p120hz

Solution:
s6 need to support 1080p120hz

Verify:
S6

Test:
DRM-TX-130

Change-Id: I594f9671b36d3ea27c838bcf349a06cdcf2c707c
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-07-10 03:57:14 -07:00
yao liu 54f6b192cc amdv: display error when resume in DLG mode [1/1]
PD#SWPL-175926

Problem:
In DLG mode, display size is 3840x1080, aoi reg
is updated to 3840x1080, if disable/enable video
with no toggle, aoi reg will continue to be halved

Solution:
record the ori and updated AOI with new variables

Verify:
t5m

Change-Id: Idbc479a1d157fb35be131b7b9896e5cbf0ee3b67
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-07-10 03:57:05 -07:00
dongfei.li 53d7b90d24 frc: frc chg t5m n2m setting [1/1]
PD#SWPL-171634

Problem:
chg n2m setting

Solution:
chg n2m setting

Verify:
T5M

Change-Id: I77f7bf82912d7fc216aee6ebd646bb32b2c119c2
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2024-07-09 21:52:52 -07:00
dian.shao 378f02428b usb: u3phy trim [1/1]
PD#SWPL-172978

Problem:
The u3phy needs trimming.

Solution:
Add driver codes.

Verify:
S6.

Change-Id: I159f6c74f78c8dbde2e180514f8ca215bab2ffa5
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-07-09 08:02:48 -07:00
lizhi.hu c2f5aacc61 lcd: s6 bringup [1/1]
PD#SWPL-173021

Problem:
s6 bringup

Solution:
add support for s6

Verify:
s6_bq201

Change-Id: I3363de352ae5b29e2b27e32bf281e0def506bb44
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-07-09 06:05:03 -07:00
Pengcheng Chen 8c9fbe53ee vpp: add dejaggy enable when input is interlaced [1/1]
PD#SWPL-176085

Problem:
s6 inline aisr quality is poor

Solution:
vpp: add dejaggy enable when input is interlaced

Verify:
s6

Change-Id: I734869c0a38d101922f92ff0857f1077d717334b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-07-09 05:11:08 -07:00
lukang.jia 18df5f6c62 frc: frc add crc debug method [1/1]
PD#SWPL-175641

Problem:
add crc debug method

Solution:
add crc debug method

Verify:
T5M

Change-Id: I51e9c0c51c5349bc60b598d981830ccfd45a3461
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-07-09 02:06:50 -07:00
shipeng sun e49480a2f7 dmabuf_manage: CB1 Remove unused code [1/1]
PD#SWPL-176200

Problem:
Remove dmabuf_manage and secure vdec heap's unused code

Solution:
Remove dmabuf_manage and secure vdec heap's unused code

Verify:
ohm_wv4

Change-Id: Ib88ff7393c41767e275a4db26035bdc00ba2d4db
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-07-08 05:57:10 -07:00
hang cheng d9c2487367 hdmitx: add hdcp1.4 key validation method [2/2]
PD#SWPL-175733

Problem:
need method to validate hdcp1.4 key

Solution:
add hdcp1.4 key validation method, check
aksv loaded from tee contains 20 zeros and 20 ones

Verify:
s7

Test:
DRM-TX-137

Change-Id: I46c6f38d74c61f3edccbb819da0c98f3f9085018
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-07-07 20:13:35 -07:00
zhenteng.tian 5d51f3adf9 vc: screen anomaly when using vf and dma buf for compositing.. [1/1]
PD#SWPL-174021

Problem:
screen anomaly in dma_buf and vf frame data composition using composer.

Solution:
1.clear src_vf after completing the composition of a frame of data.
2.fix the issue vicp cannot perform compositing on dma_buf.

Verify:
T3X

Change-Id: Ibf5492d823a1f1e8540feae7d8e275487a83710c
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-07-05 21:44:44 -07:00
qiyao.zhou cf807c8e91 vicp: add enhanced security support for S6 [1/1]
PD#SWPL-174883

Problem:
add enhanced security support for S6

Solution:
add enhanced security support for S6

Verify:
s6

Change-Id: If4c88fecc4f0224402292c12a731494bda520499
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-07-05 10:44:48 +08:00
dian.shao b600110bfc usb: usb3.0 phy cfg update [1/1]
PD#SWPL-175043

Problem:
usb3.0 phy cfg update.

Solution:
update driver.

Verify:
bl201 & bl208

Change-Id: I72bde2600870859b4a2aa3f4c448f1f553890ee7
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-07-05 10:44:48 +08:00
jinbing.zhu 22154d4249 amvecm: s6 osd sharpness bringup. [1/1]
PD#SWPL-173016

Problem:
s6 osd sharpness bringup

Solution:
s6 osd sharpness bringup

Verify:
s6

Change-Id: Ia15a81fee3bbad1302ce0253a6034ecf64555e6d
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-07-05 10:44:47 +08:00
zhiwei.zhang 51257246f0 camera: camera bringup on s6 [1/1]
PD#SWPL-173326

Problem:
add camera code for s6

Solution:
1. driver compatible for sm1 & s6;
2. for s6, add dts setting for squlech and deskew.
3. ov5640 add 640x480 rgb setting
4. 2 lanes & 4 lanes setting
5. enable mclk 24M using ioremap;

Verify:
local

Change-Id: I81dbaea3ddf46a4078d925ed64d230f6261a3f75
Signed-off-by: zhiwei.zhang <zhiwei.zhang@amlogic.com>
2024-07-05 10:44:47 +08:00
Doosan Baek e69174d9bf kt: s6 kl/kt bringup [1/1]
PD#SWPL-169992

Problem:
s6 kt/kl kernel bringup
need multi2 algo type

Solution:
s6 kt/kl kernel bringup
add multi2 algo type

Verify:
s6

Change-Id: I0622e86c05194784934f08aa0dd5d38b1239857e
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2024-07-05 10:44:46 +08:00
dian.shao ac3a75e803 usb: s6 bringup usb3.0 & misc [1/1]
PD#SWPL-172978

Problem:
S6 Silicon Bringup
- Kernel
- High speed peripheral driver
- USB
- usb3.0 & misc

Solution:
Dts&driver.

Verify:
s6

Change-Id: If7cdf1af5dc6c21a91eb89869bf9e6ca32be9d00
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-07-05 10:44:45 +08:00
jinbing.zhu 2918237026 amvecm: s6 kernel bringup [1/1]
PD#SWPL-173016

Problem:
s6 kernel bringup

Solution:
s6 kernel bringup

Verify:
s6

Change-Id: Ibeefcf768f79e5e9e86caf9a37f30d8151fec223
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-07-05 10:44:45 +08:00
dian.shao 46361691a0 usb: s6 bringup [1/1]
PD#SWPL-172978

Problem:
S6 Silicon Bringup
- Kernel
- High speed peripheral driver
- USB

Solution:
Dts&driver.

Verify:
s6

Change-Id: If41c5d1fa45be1eeb9453b1c9c435cf0b05042a5
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-07-05 10:40:49 +08:00
yuhua.lin 4ed34b9179 s6: add codec_io/canvas/rdma support for s6 [1/1]
PD#SWPL-156543

Problem:
s6 codec_io/canvas/rdma bringup

Solution:
complete it

Verify:
pxp

Change-Id: Ic9facdff23c43b330d8203744d9ca6a3a0172b8f
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-07-05 10:40:48 +08:00
song.han a14fb05934 iotrace: call stack support [1/1]
PD#SWPL-175591

Problem:
5.15-u scs can't work
arm 32bit caller_addr can't work

Solution:
arm64 use CALLER_ADDR micro
arm32 support find stack operation

Verify:
SC2

Change-Id: Ic8142284af335f22cf5fe0aceb438e2119ec7373
Signed-off-by: song.han <song.han@amlogic.com>
2024-07-03 23:11:16 -07:00
qiyao.zhou 2c4572ef31 vc: bypass di according to compression ratio [1/1]
PD#SWPL-172361

Problem:
bypass di according to compression ratio.

Solution:
Modify vc flow to implement this requirement.

Verify:
t5m

Change-Id: Iace3aec5f202369882793a42c66a6b590211cf29
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-07-03 00:13:18 -07:00
Tao Zeng c8d8b493d3 amfc: add support for s7d revb [1/1]
PD#SWPL-175588

Problem:
Need support s7d revb

Solution:
1, add clk set for revb;
2, use clk interface for clk set

Verify:
S7D bm201

Change-Id: I168a942f6796208dd4dff67a13f065be14a40f0c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-07-02 21:10:48 -07:00
Cheng Wang d812c13867 frc: frc cursor control debug [1/1]
PD#SWPL-174725

Problem:
frc cursor control debug

Solution:
frc cursor control debug

Verify:
T3X

Change-Id: I0e42149990f0160fd385fe3b8b5d341847ba0949
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-07-01 05:39:12 -07:00