Commit Graph

700 Commits

Author SHA1 Message Date
jiebing chen 780a67fc6e Audio: disable audio clk when suspend for sc2 [1/1]
PD#SWPL-142871

Problem:
disable audio clk when suspend for sc2

Solution:
disable audio clk when suspend for sc2

Verify:
use sc2

Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: I493a5e7bf7ed826da76a4eb6cb6324314bc008ac
2023-11-13 19:46:50 +08:00
Lei Zhang 4e2bf1c9bf sysrq: enable sysrq function [1/1]
PD#SWPL-143851

Problem:
n/a

Solution:
enable sysrq function by default

Verify:
on sc2

Change-Id: Iff20f64ebc6736a6bbcbd7ff94eee1c83e435cc6
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-11-06 18:51:52 +08:00
zhou.han 64d81f220b hdmitx: use hdmitx log api instead of pr_info/pr_err [1/1]
PD#SWPL-141588

Problem:
5.15 code integration

Solution:
Delete log_level variables and nodes in tx20 and tx21 and
replace them with apis in hdmitx_log. Replace the pr_err
and pr_info of the tx module with the new API.

Verify:
ohm

Test:
print test

Change-Id: I7b4e7116cb009d0ff63f1868f801cb7e07bc9db0
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2023-10-30 18:56:51 +08:00
Pengcheng Chen aef84c9221 vpu: enable down vpu_clk when suspend with sc2 [1/1]
PD#SWPL-132992

Problem:
sc2 need down vpu_clk when suspend

Solution:
enable down vpu_clk when suspend with sc2

Verify:
sc2

Change-Id: I2d69d1de06acd05005c697f0c94b65b98ebf5631
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-17 15:34:47 +08:00
Jianxiong Pan 1f6599c5fd zapper: rename CONFIG_AMLOGIC_ZAPPER_CUT_C1A. [1/1]
PD#SWPL-140594

Problem:
rename CONFIG_AMLOGIC_ZAPPER_C1A.

Solution:
CONFIG_AMLOGIC_ZAPPER_CUT_C1A.

Verify:
build pass.

Test:
run on s1a board normally.

Change-Id: I3a8ab8d81af2c4d14b51c117ac16d75f3980adac
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-10-09 20:08:39 +08:00
Dezhi Kong bf7d2ffc12 gpu: update txhd2 gpu dvfs [1/1]
PD#SWPL-141553

Problem:
the fps is lower when test

Solution:
optimize the dfs of gpu

Verify:
txhd2

Change-Id: I7c0edb7979fbfe3c80bbce9d3f3be0fc4e623ec9
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-10-09 20:07:04 +08:00
Luan Yuan 56357b6ff2 fixed planck 32bit kernel error. [1/1]
Change-Id: I51b693958639371f0e98151546c8b0d7605fa6bd
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-10-08 14:38:02 +08:00
Liming Xue 172057d4b0 host driver: reconstruct dsp host driver [1/1]
PD#SWPL-99041

Problem:
reconstruct dsp host driver

Solution:
config CONFIG_AMLOGIC_MCU_DRIVER to enable mcu driver
the new driver support multiple dsp/m4 cores

Verify:
a1/c1/c2/sc2/t3/t3x/t7/t7c

Change-Id: Ib1e666e615260bb5b7377a18eeaaf8daa65de86f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-10-07 17:40:07 +08:00
wenlong.zhang 43ce41ecaa drm: support fbdev zorder adjustment [1/1]
PD#SWPL-135486

Problem:
support fbdev zorder adjustment

Solution:
support fbdev zorder adjustment

Verify:
S4

Test:
DRM-OSD-92

Change-Id: I523e5656d9ad050b584015bb50afbfebc40763b3
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2023-09-25 20:36:04 +08:00
qiankun.wang 554b6bc61b zapper: restore some debug function [1/1]
PD#SWPL-139867

Problem:
vendor_hooks/debug_atrace/vmap_stack can't work.

Solution:
modify the defconfig to support these functions.

Verify:
SC2

Change-Id: I9effe4e034efbfe08cd22f472862925750becfc8
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-09-22 19:37:10 +08:00
song.han e2ab106c2c iotrace: record module base on last start [1/1]
PD#SWPL-136207

Problem:
use kprobe to forbid free module init text

Solution:
record module base and use offset to parse
this module symbol

Verify:
SC2_AH212

Change-Id: I43bd306e94e9a6a5afe6411a9cd9e93db0342b7a
Signed-off-by: song.han <song.han@amlogic.com>
2023-09-19 20:09:48 +08:00
qianqian.cai 35ab697b97 deinterlace: update di dts number [1/1]
PD#SWPL-137618

Problem:
di post count not update

Solution:
add post number for dts update

Verify:
sc2

Change-Id: If57517c9b38df99edef837c2d2f7994607abc157
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-09-14 21:18:19 +08:00
rong.wang ee812b9da5 deinterlace: confirm post buffer size [1/1]
PD#SWPL-135526

Problem:
special test find post buffer size wrong

Solution:
add po_fmt = 0

Verify:
t5m

Change-Id: Iea19a0a3630800735c26e70d73c36892ad1e46d9
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2023-09-13 22:31:05 +08:00
Dezhen Wang 1bfff1f439 coverity: fix [1/1]
PD#SWPL-136722

Problem:
coverity errors

Solution:
fix the coverity errors

Verify:
local

Change-Id: I5b210b5c44ee6a0e34c1c8b9685fe2d38cd52b1b
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-09-13 20:37:08 +08:00
Dezhen Wang 2171a64790 scripts: optimize the config of upgrade project [1/1]
PD#SWPL-137455

Problem:
the upgrade config is repetitive

Solution:
delete the repetitive config in upgrade project

Verify:
local

Change-Id: I2ddd31350be328cb9ee6d288a68732324cc337a5
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-09-13 15:10:22 +08:00
Hangyu Li e95b3a850f tee: rename AML_TEE,AML_OPTEE to AMLOGIC_AMLTEE,AMLOGIC_OPTEE [1/1]
PD#SWPL-136287

Problem:
The configuration name in kernel 5.15 is starting with "AMLOGIC_",
in order to unify configuration name, modify AML_TEE,AML_OPTEE to
AMLOGIC_AMLTEE,AMLOGIC_OPTEE.

Solution:
rename AMLTEE,AMLOGIC_OPTEE to AMLOGIC_AMLTEE,AMLOGIC_OPTEE

Verify:
Android + Kernel 5.15

Change-Id: I25be69bb990b7e86026790a9a64f64a473e9adfc
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-09-13 15:09:04 +08:00
Jian Cao a9a44e3236 vpp: video lowlatency optimize [1/1]
PD#SWPL-132066

Problem:
need to support video lowlatency

Solution:
video lowlatency optimize

Verify:
s1a-bg201

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ie8a6f4c72314f9acf7202e7d86721403842d5499
2023-09-13 15:08:05 +08:00
qinglin.li fefbde4c6c dmc_monitor: dmc irq lose when ddr access quickly [1/1]
PD#SWPL-137431

Problem:
dmc irq lose when ddr access quickly

Solution:
modify irq trigger IRQ_TYPE_LEVEL_HIGH to IRQ_TYPE_LEVEL_HIGH

Verify:
txhd2 && s1a

Change-Id: I824ce32a040321148c0feeb52ad0da40edd7e519
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-23 01:58:50 -07:00
Yan Wang bcc4b5145a DTS: update S805C1A CPU node. [1/1]
PD#OTT-47803

Problem:
S805C1A system can not enter suspend mode.

Solution:
update CPU node for disabling non-boot cpus.

Verify:
BF201

Change-Id: If243e6ade536d17f293f09c3afa52e8ad5ebdf88
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2023-08-23 00:08:46 -07:00
Chengbing.wu 9fd75cb1da idle: txhd2 cpuidle tuning [1/1]
PD#SWPL-136572

Problem:
1. need to tuning idle parameter at txhd2 ;

Solution:
1. change latency and residency;

Verify:
BE319 #16 +corner CHIP #17

Change-Id: I87b48b79d3e3583ed1d92e348121cac08d569d4e
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2023-08-23 00:08:37 -07:00
gerrit autosubmit c665eda878 Merge "vq: txhd2 dts enable video_queue and enable drm. [1/2]" into amlogic-5.15-dev 2023-08-22 22:14:27 -07:00
hui.li 97b4c15fe7 vq: txhd2 dts enable video_queue and enable drm. [1/2]
PD#SWPL-134534

Problem:
txhd2 dts not enable video_queue and not enable drm
only android T need, android p no need.

Solution:
create a new android t txhd2 dts to enable video_queue and enable drm

Verify:
txhd2 + T

Change-Id: I590cf2095b3dc47ed58924d3c628407eaf5daed5
Signed-off-by: hui.li <hui.li@amlogic.com>
2023-08-22 22:14:23 -07:00
Xingxing Wang a3770e55bc thermal: add shutdown callback in sensor driver [1/1]
PD#SWPL-136383

Problem:
poweroff power current is high

Solution:
add shutdown callback in sensor driver

Verify:
TXHD2

Change-Id: Idd38c485b9458e3a9c7b27b959f48a17c59dc89b
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-08-22 22:14:11 -07:00
yongbing.he 9da7a6fdd4 dts: CF1 nbr swupdate support. [2/2]
PD#SWPL-134034

Problem:
nbr swupdate support

Solution:
Add aw409 recovery dts

Verify:
C308L-AW409

Change-Id: I7e9f2bdd360124e13b0ed758a8bd52ca76462582
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2023-08-22 04:23:39 -07:00
Liming Xue 45a6212840 dsp: a1 start failed [1/1]
PD#SWPL-137033

Problem:
a1 start failed

Solution:
add mailbox channel and change reserved memory

Verify:
a1

Change-Id: Ib2e1fab0162b868727e8121ae7cc9f6d05294943
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-08-21 22:54:14 -07:00
Chuan Liu ad568ac966 dvfs: s1a: change the cpu_clk freq from 1320M to 1296M [1/1]
PD#SWPL-136891

Problem:
If the cpu_clk frequency run to 1320M, eFuse related
functions may be affected

Solution:
change the cpu_clk freq from 1320M to 1296M

Verify:
s1a_bg209

Change-Id: I7af6604bf781a0229acc875aadf1dafe44896be9
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-21 00:09:06 -07:00
Dezhen Wang 5e98b5de96 configs: change configs for kernel 14 with 32bit for vts fail [1/1]
PD#SWPL-135501

Problem:
android u planck project vts fail because lose some configs

Solution:
add config CONFIG_CPU_FREQ_TIMES=y CONFIG_NET_ACT_MIRRED=y and
CONFIG_IFB=y

Verify:
planck

Change-Id: Ie78533a51f35b7db63f43d7942d621a92402d2d6
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-21 00:09:03 -07:00
jintao xu 6e5a389962 di_process: support di in display side [1/4]
PD#SWPL-136316

Problem:
support di backend

Solution:
support di backend

Verify:
ohm

Change-Id: Iad72c1ebc5e33bade4e6efb87167defd4bc405b6
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-08-19 18:08:44 -07:00
Doosan Baek b1a409e5d8 KL/KT: Bring-up S1A kernel driver [1/1]
PD#SWPL-136793

Problem:
Bring-up S1A kernel driver

Solution:
Bring-up S1A kernel driver

Verify:
S1A

Change-Id: Idf1b9813568a9be40a006d61ac55d96b3c4c524a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
(cherry picked from commit db751cfd26384bb39429ef7cbe0a32947531b955)
2023-08-18 04:04:22 -07:00
junyi.zhao f1b002217b LED: display: add LED display support [1/1]
PD#SWPL-136367

Problem:
there is no LED display driver

Solution:
support it

Verify:
s1a

Change-Id: I1232fa1d41d3c51b023ed08bcb9f4707011dcf91
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-08-18 04:04:19 -07:00
Shunzhou Jiang fb9f387423 mbox: fix s4 mbox id fail [1/1]
PD#SWPL-136454

Problem:
device tree not right

Solution:
fix device tree

Verify:
s4

Change-Id: I92c3c08de4ac4781ee793a99850d58f5eb70e6cc
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-18 04:04:16 -07:00
Bing Jiang 20822a9ed8 yocto: rename partition name ENV to ubootenv [1/1]
PD#SWPL-136721

Problem:
rename partition name ENV to ubootenv

Solution:
rename partition name ENV to ubootenv

Verify:
S4D_BF201

Change-Id: I3fdc0fc140348f93d045d969c64b8982797ecc42
Signed-off-by: Bing Jiang <bing.jiang@amlogic.com>
2023-08-17 22:10:02 -07:00
Wenjie Qiao afe813a207 hdmitx: s1a bringup [1/1]
PD#SWPL-133151

Problem:
s1a bringup

Solution:
s1a bringup

Verify:
s1a

Change-Id: I52aa5f53e5d119488717e06f5e50cbc161a51a21
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-08-17 22:09:57 -07:00
qing.zhang ed90a2b58e Audio: kernel support features for s1a [1/1]
PD#SWPL-134941

Problem:
1. can't adjust volume in userspace
2. cvbs out and hdmitx with tdma
3. suspend
4. codec crash

Solution:
1. change i2shdmi source
2. change samesoure
3. suspend control
4. delay t9015 analog
5. enable efuse for build in modules

Verify:
use s1a

Change-Id: Ieffdc7a4bda09ca9846589b9d71beeb8699e49c2
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-08-17 06:14:48 -07:00
Ao Xu 969e6f7afc Revert "drm: txhd2 dts enable drm [1/1]"
This reverts commit d7ade65a86.

Change-Id: I26765cd1a3df7a53145fe75aeddad4f7067814d6
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-08-17 20:20:04 +08:00
Ao Xu 118e8e557d dummy_venc: add dummy_l support for S1A [1/1]
PD#SWPL-134774

Problem:
s1a has no encl hw

Solution:
use encp to replace encl for suspend/resume

Verify:
s1a

Change-Id: I50a54b5bfdb76e2288f59b97586bc5bdc92c053f
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-08-17 02:29:08 -07:00
congyang.huang d7ade65a86 drm: txhd2 dts enable drm [1/1]
PD#SWPL-125828

Problem:
txhd2 dts not enable drm

Solution:
txhd2 dts enable drm

Verify:
txhd2

Test:
DRM-OSD-82

Change-Id: I0abb1b7d9524a35471e9c82591e530995017c60c
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-08-17 02:28:46 -07:00
junyi.zhao ce81cb3dc0 led: add gpio led support [1/1]
PD#SWPL-135182

Problem:
need support gpio led

Solution:
add led config

Verify:
s1a bg201

Change-Id: I9ac9ba9aa8a7f18f28308317dc4dec076af87efa
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-08-17 00:19:03 -07:00
nengwen.chen 22f78e3c98 dtv_demod: fix rda5815m bandwidth and dvbs iq swap config (V3.5.001) [1/1]
PD#SWPL-135516

Problem:
blind scan can not find TP with DUT signal.

Solution:
fix rda5815m bandwidth setting in blind scan.
add dvbs iq swap config to actual hardware.
AMLDTVDEMOD_VER "V3.5.001".

Verify:
S4D/BF201.

Change-Id: I430b3f45a52567bf7a6967d7090642627cbf679f
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-08-17 00:18:59 -07:00
Zhuo Wang 606f3965a6 eth: s1a bringup [1/1]
PD#SWPL-133130

Problem:
s1a ethernet bringup

Solution:
s1a ethernet bringup

Verify:
bg201

Change-Id: I0829cc0c7de381d2306d307d724024e8f83400d2
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-08-16 22:08:53 -07:00
shihong.zheng 32e993e376 dts: fix codec_mm alloc across low mem to high mem. [1/1]
PD#SWPL-132706

Problem:
codec_mm alloc across from low mem to
high mem in 32bit kernel.kernel crash
when access from low to high mem.

Solution:
set alloc range for codec_mm_cma.

Verify:
t982,s905y4

Change-Id: Ide9414d5609f5ccba9b8a69b20b51f1cacd1717f
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2023-08-16 02:28:41 -07:00
Jianxiong Pan b75016a67d zapper: remove c1a relate code. [1/1]
PD#SWPL-126879

Problem:
memory optimization.

Solution:
remove c1a relate code.

Verify:
s1a.

Test:
run on s1a board normally.

Change-Id: Idbd24a529666278295724f26d10f1a720877ca6a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-08-15 20:09:03 -07:00
Shunzhou Jiang 098bf7992e s1a: mbox driver bringup [1/1]
PD#SWPL-87115

Problem:
mbox driver bringup

Solution:
mbox driver bringup

Verify:
s1a

Change-Id: I99b5e45eea575cf133b8f8228916e5505936c473
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-15 20:08:59 -07:00
Shunzhou Jiang d60b05e839 mbox: add aocec mbox channel [1/1]
PD#SWPL-87115

Problem:
aocec mbox channel not added

Solution:
add aocec mbox channel

Verify:
s4d

Change-Id: I47b9bbd065a0472210815c75affa0e773b13c68e
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-15 20:08:51 -07:00
Bichao Zheng 474b6b0d3c spinand: c3 fixed clock source to fix div2 [1/1]
PD#SWPL-136279

Problem:
current clock source is not fixed and may switch to PLL

Solution:
1. fixed clock source to fix div2
2. set default clk to 83MHZ

Verify:
c3

Change-Id: I0cd26da7416884e6ad89033c023477e9c609f3a6
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-08-15 04:19:36 -07:00
mingyang.he a42c7fc9db drm: s1a bringup enable cvbs & dummy [1/1]
PD#SWPL-124778

Problem:
cvbs & dummy are disable

Solution:
enable cvbs & dummy in dts

Verify:
s1a

Change-Id: Ia0fe8223eee2a0357995a5f9d0d3b891941c3c90
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2023-08-15 10:37:52 +08:00
hongyu.chen 25883f81bd smartcard: s1a bringup. [1/1]
PD#SWPL-133167

Problem:
s1a bringup.

Solution:
s1a bringup.

Verify:
BG201/S805C1

Change-Id: If0a58359a43b2e2b9900869e53866446e6ed1c1e
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-08-15 10:37:51 +08:00
congyang.huang 8d032a2c39 drm: enable drm for s1a [1/1]
PD#SWPL-133179

Problem:
not enable drm

Solution:
1.remove afbc cfg and enable drm
2.move s1a driver to the zapper project

Verify:
s1a

Test:
DRM-OSD-87

Change-Id: I33a3c42108ac7722cf71074ae38191c87fc7f6ea
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-08-15 10:37:51 +08:00
hang cheng 209b99af8e cec: bringup for s1a [1/4]
PD#SWPL-134993

Problem:
need to bringup cec function for s1a

Solution:
bringup cec function for s1a

Verify:
bg201

Change-Id: I789b1c2ece4788b32d377b787ae0a7e3eaa3bb74
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-08-15 10:37:51 +08:00
hongyu.chen 2ea19a03a4 demux: fix demux config. [1/1]
PD#SWPL-133164

Problem:
fix demux config for S1A.

Solution:
fix demux config for S1A.

Verify:
BG201/S805C1

Change-Id: I0169c40b657493bd6136e796e92c8fc199c973ad
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-08-15 10:37:51 +08:00