Commit Graph

2039 Commits

Author SHA1 Message Date
yiting.deng 5eba435db6 clk: synchronize fixed code from kernel5.15 [1/1]
PD#SWPL-192113

Problem:
need synchronize fixed code from kernel5.15 to kernel6.12

Solution:
fix code

Verify:
mk.sh check

Change-Id: I6d14893bf361dbb7215134adff5b1b5c1ca28c63
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-11-08 00:07:57 -08:00
Chuan Liu 7dd773f23c cpufreq: a5/sc2/sm1: Adapts to aml_cpufreq driver [1/1]
PD#SWPL-188365

Problem:
meson_cpufreq.c(v1) is amlogic's older cpufreq driver, and
aml_cpufreq.c(v2) is used uniformly on kernel6.6.

Solution:
aml_cpufreq.c(v2) is already used on A5/SC2/SM1.

Verify:
sc2_ah212

Change-Id: Ieab8bd4b6b229051724bedee1e16a657673f39ca
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-11-08 00:07:44 -08:00
Yao Jie 5f868c9719 mailbox: bringup g12a mailbox on new mailbox architecture [1/1]
PD#SWPL-192182

Problem:
The g12a mailbox dtsi configuration does not
accommodate the new mailbox driver architecture

Solution:
Change g12a mailbox dtsi to accommodate the new
mailbox driver architecture

Verify:
G12A

Change-Id: I0e6b34a2ea8529ea22aed8afcb5e8107bc7d93e3
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-11-07 19:50:07 -08:00
hongyu.chen1 b899550204 T3X S5: dynamic-power-coefficient optimize. [1/1]
PD#SWPL-192039

Problem:
dynamic power coefficient parameter have problem.

Solution:
Adjust this parameter.

Verify:
Compiled successfully

Change-Id: Iddb6cf2156e0e51b400a10345c7c906337d2d445
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-11-07 03:54:11 -08:00
Shunzhou Jiang 3166aa0972 t3x: fix mbox compatible issue [1/1]
PD#SWPL-177424

Problem:
t3x mbox compatible not right

Solution:
fix it

Verify:
t3x

Change-Id: I57fd115f1f0bda10abe87d615c032f1cb6bd4ea2
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
(cherry picked from commit 5bbe17a45b)
2024-11-06 03:55:45 -08:00
hualing chen bce7e35cc0 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-11-04 23:35:46 -07:00
Liming Xue d64c1cade0 thermal: kernel6.12 add ddr thermal control driver [1/1]
PD#SWPL-185025

Problem:
refactoring ddr control driver

Solution:
add ddr control driver

Verify:
sc2

Change-Id: I4a04a49064d88aff0cd90784dcdc6e5b05a53920
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-11-01 00:50:36 -07:00
Zelong Dong 88399d0c0f ir: support multi wakeup key event [3/3]
PD#SWPL-182441

Problem:
only support power key and one custom key

Solution:
support multi wakeup key event, kernel ir drivers
gets framecode from bl30 by mbox

Verify:
t6d

Change-Id: I0f118bbbec12a9e86d3cc8e37128fb906bc22f12
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 17:10:42 +08:00
Zelong Dong 24bfe1a19b ir: support hibernate mode for ir [1/1]
PD#SWPL-145760

Problem:
support hibernate mode for ir

Solution:
support hibernate mode for ir

Verify:
s4

Change-Id: Ied8d29fc620b6650583b10b7bb30b309e697fcc3
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 15:49:19 +08:00
yiting.deng 5afc832897 clk: optimize pll driver to adapts 32bit and 64bit [1/1]
PD#SWPL-188367

Problem:
1. Optimized pll clk_ops for 32bit and 64bit compatibility
2. use the integrated pll clk_ops to adapt supported chips

Solution:
1. already integrated into pll clk_ops
2. supported chips already adapted.

Verify:
sc2

Change-Id: Ie202432ea962135c000d63eb254e9a5e100d2ab0
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-27 23:09:23 -07:00
qinglin.li 382ae522a9 ddr_tool: porting to kernel6.12 [1/1]
PD#SWPL-188342

Problem:
porting to kernel6.12

Solution:
1. porting to kernel6.12
2. remove print slab information

Verify:
local

Change-Id: Ia1e46e29146e37bf0040f29a2113949c72ddf2b2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-10-25 07:31:31 -07:00
dongqing.li 71fc39c31f ramdump: support arm32/arm64 for ker6.12 [1/1]
PD#SWPL-188348

Problem:
ker6.12 souce code is old. And ramdump
is not working properly.

Solution:
1. sync ramdump.c from ker5.15.
2. enable CONFIG_AMLOGIC_RAMDUMP
3. modify TEXTOFFSET=0X0200800 for ker 32bit

Verify:
SC2_AH212

Change-Id: Id19ba0ef1302e9cf4cdf379d10c625519a8eef36
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-10-25 02:08:07 -07:00
Haotian Guo befb8cde09 tvafe: tvafe sc2 bringup [1/1]
PD#SWPL-188545

Problem:
tvafe sc2 bringup

Solution:
tvafe sc2 bringup

Verify:
sc2

Change-Id: Ic2e4bc7d43cc0075df9dbf36524f9e6493e0bc97
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-10-24 20:21:52 -07:00
Jianxiong Pan 450465a0a7 mm: aml_smmu: move aml_smmu ko to memory_ext directory. [1/1]
PD#SWPL-188508

Problem:
optee depends to aml_smmu ko.

Solution:
make aml_smmu independent.

Verify:
sc2.

Change-Id: Ief77a87d7862ebfacacaaa92e971b19b0e5e9ba0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-24 00:27:10 -07:00
Jianxiong Pan c4058b76a5 mm: 32bit: add filecache function. [1/1]
PD#SWPL-188508

Problem:
print filechche info.

Solution:
add filecache debug tool.

Verify:
sc2.

Change-Id: I0008db0adc16bab64d72e5154fac46f749e66630
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 23:37:22 -07:00
Jianxiong Pan 9f37825749 mm: 32bit: enable memory extend. [1/1]
PD#SWPL-188508

Problem:
add more debug and optimizate info.

Solution:
enable memory extend.

Verify:
sc2.

Change-Id: I2fda707321363f33a5f9c5f99f9f91173ebbc023
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 22:59:13 -07:00
Jianxiong Pan 1a858d562b mm: 32bit: add slabtrace function. [1/1]
PD#SWPL-188508

Problem:
trace kmalloc and kfree info.

Solution:
add slabtrace function.

Verify:
sc2.

Change-Id: If4205b376e22974be80b289be6d6740b710eb761
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 19:32:51 +08:00
Jianxiong Pan 2e3b0ba666 mm: 32bit: add pagetrace function. [1/1]
PD#SWPL-188508

Problem:
add pagetrace debug tool

Solution:
track page alloc and free info.

Verify:
sc2.

Change-Id: I7efc3d90fc1fbfe8df1b5c2a051623ae3354d0f1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 19:23:46 +08:00
Jianxiong Pan daf7531fc9 mm: 32bit: enable amlogic cma. [1/1]
PD#SWPL-188508

Problem:
add amlogic cma.

Solution:
boost cma alloc.
add more debug info.

Verify:
sc2.

Change-Id: Id9e7d96e635d7c4ebb2fe7c55859855377305f06
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 01:45:08 -07:00
qiyao.zhou a603db809e video_process: Fix compilation errors [1/1]
PD#SWPL-188435

Problem:
video_process failed to compile

Solution:
Fixed

Verify:
sc2_ah212

Change-Id: I0d6da53f3b48691ec2103486daf82593ddb74adc
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-10-21 04:39:22 -07:00
jian zhou b9fd28aa56 audio: config acodec reg base [1/1]
PD#SWPL-188427

Problem:
There is no to acode reg base.

Solution:
config acodec reg base

Verify:
sc2

Change-Id: I482700464e248f4f4218d9c604acdc182f3f74b8
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-10-21 16:50:17 +08:00
Feng Chen c1b4430b13 spinand: SC2 bringup [1/1]
PD#SWPL-189392

Problem:
SC2 SPINAND module verification.

Solution:
Test PASS.

Verify:
SC2_AH219

Change-Id: I5f16af431cc563e3e082d783d1c3c9f0ce9ee5d5
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-10-18 16:50:10 +08:00
Long 57446eb8bd mmc: support eMMC and sdio on sc2. [1/1]
PD#SWPL-188384

Problem:
1. need to enable MMC_CAP2_FULL_PWR_CYCLE.
2. need to remove useless code.

Solution:
1. Enable MMC_CAP2_FULL_PWR_CYCLE.
2. Remove useless code.

Verify:
SC2

Change-Id: I5d1af45d09f0a2606659509fe29b6ed0896b88d0
Signed-off-by: Long <long.yu@amlogic.com>
2024-10-18 00:02:24 -07:00
zijie.hong 59b9677893 vdin: vdin sc2 k6.12 bringup [1/1]
PD#SWPL-188547

Problem:
vdin sc2 k6.12 bringup

Solution:
added

Verify:
sc2

Change-Id: I38dc0ec5adc0912ae3e1d54171e547b5f1689520
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2024-10-17 19:13:12 -07:00
ruofei.zhao dd4188cef2 hdmitx: fix hdmitx startup ioremap warning [1/1]
PD#SWPL-189311

Problem:
there is ioremap warning during hdmitx driver startup process

Solution:
removed all-0 address segment ioremap operation

Verify:
SC2

Test:
DRM-TX-5

Change-Id: Iec472bac2c4373e7c77bf618c72e013d1018b023
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-10-17 01:17:45 -07:00
xiangyang.yan 2a74363d78 eth: sync code from original stmmac driver [1/1]
PD#SWPL-188389

Problem:
sync code from original stmmac driver

Solution:
sync code from original stmmac driver

Verify:
HW

Change-Id: I82c210e697ebb682cedebc480dee1320d7f187ec
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2024-10-16 22:54:23 -07:00
Zelong Dong 451d896a1a reset: support meson reset [1/1]
PD#SWPL-188372

Problem:
need to support meson reset

Solution:
support meson reset

Verify:
sc2_ah212

Change-Id: I702960b88d45c0c827f890b61b4fee22c2dc4392
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-16 05:39:26 -07:00
Yu Tu 75d44dfe97 pcie: sc2 pcie bringup kernel6.12 [1/1]
PD#SWPL-188391

Problem:
sc2 pcie bringup kernel6.12

Solution:
sc2 pcie bringup kernel6.12

Verify:
sc2_ah212

Change-Id: Ie220eb341e98bf27f51b7311afa0c06eaa9b00ee
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-16 04:58:46 -07:00
jiabin.chen 9100870660 wifi: fix wireless crash in 6.12 [1/1]
PD#SWPL-188510

Problem:
32bit build wifi fail

Solution:
config wifi & dts

Verify:
ohm

Change-Id: I6a613458f28871eca11dba2945b14d722be78df2
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2024-10-16 16:36:03 +08:00
Lei Zhang 0dabda8673 DEBUG: bring up basic debug function [2/4]
PD#SWPL-185970

Problem:
N/A

Solution:
N/A

Verify:
on SC2

Change-Id: Ie4c90d8be99231ef0272309351ef8defd99e850a
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2024-10-15 04:29:17 -07:00
ruofei.zhao 81d299f688 cvbs: sync kernel 5.15 code to kernel 6.12 [1/1]
PD#SWPL-188407

Problem:
sync kernel 5.15 code to kernel 6.12

Solution:
sync kernel 5.15 code to kernel 6.12

Verify:
SC2

Test:
DRM-CVBS-3

Change-Id: I4718bc933eadabbaef5880f03e99b51cd086de75
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-10-15 00:42:47 -07:00
he.he e148bae334 usb: move xhci and dwc3 to common_drivers [1/1]
PD#SWPL-188390

Problem:
move xhci and dwc3 to common_drivers

Solution:
move xhci and dwc3 to common_drivers

Verify:
sc2

Change-Id: Ie40bf88170c03820ae7cd2746172536d5e947ff7
Signed-off-by: he.he <he.he@amlogic.com>
2024-10-15 00:00:01 -07:00
ruofei.zhao 5bf8f3d774 hdmitx: sync kernel 5.15 code to kernel 6.12 [1/1]
PD#SWPL-188403

Problem:
sync kernel 5.15 code to kernel 6.12

Solution:
sync kernel 5.15 code to kernel 6.12

Verify:
SC2

Test:
DRM-TX-5

Change-Id: Ie0be7d1be5cf2f5fd197fc77441b5f9d2eff8a1a
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
(cherry picked from commit 8e6c3c05d52f2aad51382d8f51938e647f09b6e4)
2024-10-15 12:25:49 +08:00
Chengbing.wu 26c7d0417b regulator: sc2 bringup for k6.12 [1/1]
PD#SWPL-188358

Problem:
1. need to support regulator at sc2 k6.12;

Solution:
1. add regulator at kernel-6.12 sc2 32bit dts;
2. 64bit default ok, base k6.6:410572;

Verify:
32bit & 64bit at ah212

Change-Id: I9649c112ccb8bd09975120a8c6071386f493f9ea
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2024-10-14 19:48:32 -07:00
shufei.zhao b0d48b78b9 PMU: support pmu for kernel6.12 [1/1]
PD#SWPL-188345

Problem:
support pmu for kernel6.12

Solution:
change dts

Verify:
sc2

Change-Id: Ie00d25445f6946106079c2204e35ac56320f5d98
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-10-14 04:12:41 -07:00
Xingxing Wang c54ece12be thermal: Kernel6.12: sc2 bring up-Power-Thermal/Sensor [1/1]
PD#SWPL-188364

Problem:
thermal bringup of sc2 kernel612

Solution:
adjust driver code for kernel upgrade

Verify:
SC2

Change-Id: I4d60b9f55036d3e371f60eb43452eba943799d87
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-10-14 01:05:59 -07:00
Chuan Liu 0e362aacaa cpufreq: Fix compilation errors [1/1]
PD#SWPL-188480

Problem:
cpufreq failed to compile

Solution:
Fixed

Verify:
sc2_ah212

Change-Id: I486da6f0ac946ccbe32bc432840ca3a4f666117d
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-10-12 05:44:58 -07:00
yiting.deng 7642a13591 mbox: sc2: kernel6.12 mbox 32bit bringup [1/1]
PD#SWPL-188363

Problem:
32bit mbox insmod failed

Solution:
fix mbox_sec dts reg config to adaptive 32bit

Verify:
sc2_ah212

Change-Id: I8a12e4ee3889993a417ca09cd4dac0077c2c14c1
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-11 23:58:39 -07:00
Dezhen Wang 51790a2f04 bringup: arm32bit on kernel6.12 [1/1]
PD#SWPL-188330

Problem:
arm32bit on kernel6.12

Solution:
1. modify build script
2. save defconfig for a32_base_defconfig
3. sync amlogic_gki.fragment to amlogic_a32.fragment
4. disable below configs:
CONFIG_AMLOGIC_FILE_CACHE
CONFIG_AMLOGIC_WIRELESS
CONFIG_AMLOGIC_MEMORY_EXTEND
CONFIG_AMLOGIC_PAGE_TRACE
CONFIG_AMLOGIC_SLAB_TRACE
CONFIG_AMLOGIC_CMA
CONFIG_AMLOGIC_VMAP

Verify:
local

Change-Id: I59089de925535a9999e808d0c98f7b49d9f86b82
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-10-10 21:22:47 -07:00
Jianxiong Pan b09ac4c011 mm: add page trace. [1/1]
PD#SWPL-185599

Problem:
add page trace debug tool.

Solution:
add track info about allocate and free pages.

Verify:
sc2.

Change-Id: I9d9212dfc9d5d06ded3179502b1e02fe6accad05
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-29 16:38:52 +08:00
Wanwei Jiang 5b4ccd2e6a bringup: porting media dvb and audio modules [1/1]
PD#SWPL-183292

Problem:
porting media dvb and audio modules

Solution:
1. porting dvb auto patches
2. modify strlcpy() to strscpy()
3. remove the flag DRM_UNLOCKED, need owner to check
4. modify the code due to the change of
the remove function in struct platform_driver
5. add the header file of linux/vmalloc.h for vmalloc() and vfree()
6. modify files_lookup_fd_rcu() to task_lookup_next_fdget_rcu()
7. use shrinker_alloc() to alloc memory and initialize
8. modify __assign_str(dst, src) to __assign_str(dst)
9. modify asoc_rtd_to_cpu() to snd_soc_rtd_to_cpu()
10. modify pwm_apply_state() to pwm_apply_might_sleep()

Verify:
local

Test:
probe success

Change-Id: I6105f65f79ee4a2c197fd6305f59fa064b583d6b
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-26 19:20:48 +08:00
Junyi Zhao 9fe0727ebb pwm: sc2 bringup pwm on kernel6.12 [1/1]
PD#SWPL-185502

Problem:
sc2 bringup pwm on kernel6.12

Solution:
Suitable for the pwm driver

Verify:
sc2_ah21

Change-Id: Ic12b347e91969136938011890b4e5babe72deca1
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-09-25 15:27:50 +08:00
Wanwei Jiang 621ac2f55c bringup: porting usb and wireless modules [1/1]
PD#SWPL-183292

Problem:
porting usb and wireless modules

Solution:
1. porting usb and wireless modules
2. setting the default value of CONFIG_AMLOGIC_KERNEL_VERSION as 16612
3. modify the reset Makefile

Verify:
local

Change-Id: Ie3c99a75a1f3f439ebaa8d5cc852a654465fb379
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-14 19:27:18 -07:00
Feng Chen 4fb1e346d7 spi: updates from tag spi-v6.11 [1/1]
PD#SWPL-185086

Problem:
spi building error.

Solution:
porting changes from spi-v6.11 core:
- spi_device
1.Single chipselect -> Array of physical chipselect
2.Single gpio_desc -> Array of GPIO descriptors
3.GPIO cs only use gpio_desc relate interface

- spi_message
1.delete is_dma_mapped flag

- spi_transfer
1.add tx/rx sg dma mapped flag

- remove Compatibility layer
1.spi_master -> spi_controller
2.spi_master_get_devdata -> spi_controller_get_devdata
3.spi_master_get -> spi_controller_get
...

Verify:
Local.

Change-Id: I7d2ee96cd9a09c67892ba9a2233580cf258e6813
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-09-14 11:56:35 +08:00
Junyi Zhao f8d6b8d921 pwm: sc2 bringup pwm on kernel6.12 [1/1]
PD#SWPL-185502

Problem:
sc2 bringup pwm on kernel6.12

Solution:
Suitable for the pwm driver

Verify:
sc2_ah212

Change-Id: I8ce577d3659f73f6c844f4229f68dc51bcc99ec8
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-09-13 04:38:58 -07:00
Jianxiong Pan d193aaf4b7 mm: add aml_cma. [1/1]
PD#SWPL-185599

Problem:
add aml cma module.

Solution:
cma multi-core allocation
add more debugging information

Verify:
sc2.

Change-Id: I019b56395206404478eaf3c53581c3fb709bb0f8
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-13 03:52:37 -07:00
Jianxiong Pan e7f50e0dae mm: add aml memory debug tools. [1/1]
PD#SWPL-185599

Problem:
add aml memory debug tools

Solution:
enable aml smmu for pcie white list.
enable filecache, watchpoint, userfault, mem_debug, reg_access.

Verify:
sc2.

Change-Id: I2549778560672bc66dcdfe767b5f81f8585293d5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-13 14:39:16 +08:00
Wanwei Jiang 73604c9f07 bringup: porting basic modules [1/1]
PD#SWPL-183292

Problem:
porting basic modules

Solution:
1. porting basic modules(build pass)
2. porting common patches

Verify:
local

Change-Id: I2941231c1c3a4225adea7133d9a7d0eb8f438a73
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-11 15:17:02 +08:00
Yu Tu e7bd982098 serial: sc2 bringup uart on kernel6.12 [1/1]
PD#SWPL-185209

Problem:
sc2 bringup uart on kernel6.12

Solution:
Suitable for the uart driver

Verify:
sc2_ah212

Change-Id: I76cc91e6cb750f0ecbd7d03a1be586c7703d1e71
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-09-10 16:44:27 +08:00
Wanwei Jiang 19a065f4cf bringup: setup development environment for the common15-6.12 kernel [1/1]
PD#SWPL-183292

Problem:
setup development environment for the common15-6.12 kernel

Solution:
1. porting 01_env patches
2. modify build script
3. porting tools patches
4. porting serial driver
5. enter console

Verify:
sc2

Change-Id: Id90b05130f2d3d200cfd788de348259249e76379
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-09 19:31:31 +08:00