Commit Graph

94 Commits

Author SHA1 Message Date
Liqiang Jin 335b683bbd REE Watermark driver: add REE Watermark driver [1/1]
PD#SWPL-162669

Problem:
1) if Verimatrix Watermark enable, OSD flicker when the TV station changes
2) if screen resolution changes, NexGuard Watermark display is abnormal

Solution:
add Watermark flush mechanism

Verify:
Android U + S7D

Change-Id: I09f0b2473a2dbcb5646bfa3cd59178c7d04afeb2
Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
2024-07-11 00:45:15 -07:00
Tao Zeng 1ca8311a90 amfc: add aml erofs ko to suppor hardware [1/2]
PD#SWPL-173093

Problem:
build in erofs do not support amfc hardware

Solution:
add aml erofs ko to support it

Verify:
s7d bm201

Change-Id: I89ef060fabaca2f4d7cbaf26b552ba147c73f539
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-06-24 20:04:09 -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
Liming Xue 816c9d52aa host driver: m4 reconstruction [1/1]
PD#SWPL-163428

Problem:
1.kernel5.15 M4 reconstruction
2.bl40/mfh start smc uses different cmd
3.dsp start/suspend/remap smc uses different cmd
but there are dsp functions, so need to use the same cmd together

Solution:
1.kernel5.15 M4 reconstruction
2.bl40 and mfh smc cmd uses the same
3.dsp start/suspend/remap smc cmd uses the same

Verify:
a1/a5/c1/c2/sc2/sm1/g12a/t3/t3x/t7/t7c/

Change-Id: I103e6c8d1df824188dfa8e1d4ba443551ce1265c
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-05-27 07:32:42 -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
junyi.zhao f79a3664fb pwm: add pwm tee driver for s7 [1/2]
PD#SWPL-135758

Problem:
there is no s7 pwm tee driver

Solution:
add pwm tee  driver

Verify:
s7 pxp

Change-Id: If1ec9b943340687173827e114df1207001ec2daa
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2024-01-22 12:48:43 +08:00
guoqing.sun 073e8a7480 usbcam: CB2 USBCAM Driver in kernel5.15. [1/1]
PD#SWPL-134049

Problem:
USB CAM Driver

Solution:
usb cam Driver

Verify:
android-u T5m

Change-Id: I9897ab68d35e0d9db337c1703101505f2e57c668
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2023-11-28 02:15:26 -07:00
Liming Xue d70741d666 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>
2023-09-25 00:13:42 -07:00
Hangyu Li 7b2cc121ec 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-08-25 01:54:11 -07:00
Mingyen Hung 536bc754e2 FBE: add aml_trusted_key for kernel 5.15 [1/1]
PD#SWPL-130061

Problem:
Need to poring FBE from kernel 5.4 to 5.15

Solution:
1. Poring FBE from kernel 5.4 to 5.15
2. Use allocate shm as a workaround, since register shm
sometimes fails.

Verify:
1. SC2 + ah212 + RDK kernel 5.15

Change-Id: I69b2723bafca0cbe8cc9e26010a20dc33860fc54
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2023-07-09 15:08:00 -07:00
Doosan Baek a88ffafa68 KL/KT: Add a new seckey driver [1/1]
PD#SWPL-124965

Problem:
Need key ladder/table driver for kernel5.15
The KT driver needs to be separated from the descrambler.
New APIs are needed for the KT driver.

Solution:
Create a seckey driver.

Verify:
S5 KT/KL with DMA
T3 METACAS with Descramble
T5W

Change-Id: Id058e64f99918b66e79d24647880f999f55ca13a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-05-31 20:54:04 -07:00
Jianxiong Pan 253ac2b0ba mm: port lowmemorykiller for 5.15+P. [2/2]
PD#SWPL-124928

Problem:
Android P no LMKD.

Solution:
port the lowmemorykiller from 4.9.

Verify:
local.

Change-Id: Ib9ed5d9ff1e29f3fa1e5a522255f2153b37a0d5a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-05-25 01:21:49 -07:00
Huqiang Qin 2718a1b7e4 timestamp: porting timestamp driver to kernel 5.15 [1/1]
PD#SWPL-85472

Problem:
Project used timestamp driver on kernel 4.19,
but kernel 5.15 can't find this driver.

Solution:
Porting from: amlogic-4.19-dev

Verify:
A1/C2

Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
Change-Id: I6c03e1bbf0406b430cb0cf51b0bf09dd51abd31a
2023-05-11 01:54:46 -07:00
Yao Jie 5487f7db5a m4: fix m4 host driver code form issue [1/1]
PD#SWPL-123076

Problem:
M4 host driver code has formal issue

Solution:
Fix formal issue

Verify:
Local build success

Change-Id: Ifc0a341497890511b59d50c06e9ec7370c23fc4a
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-05-09 03:36:23 -07:00
Jianxiong Pan 0ae39db470 mm: enable page trace for gki2.0. [1/1]
PD#SWPL-118782

Problem:
pagetrace not enable for gki2.0

Solution:
remove dependencies.

Verify:
adt4.

Change-Id: I7ea233bc7d29ece259805e43d550bffefd562464
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-04-27 21:24:27 -07:00
chengbing.wu 29655631ae pmic: a1 k5.15 pmic and sub driver porting [1/1]
PD#SWPL-112358

Problem:
ad403 is missing pmic6b driver in kernel5.15.

Solution:
base Yu Tu 76117 and 78726;
base Jian yi 189702 and 192916,216774;
and yao jie 216898;

Verify:
A113L-AD401 #1 +Battery.
all driver use ko;

Change-Id: I911ca92dbe6f8c0f623e32fd14bdcf23a6318861
Signed-off-by: chengbing wu <chengbing.wu@amlogic.com>
2023-04-16 22:32:09 -07: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
jinbing.zhu 3da7363ac1 updata: 5.15 algorithm path [1/1]
PD#SWPL-115900

Problem:
updata

Solution:
updata

Verify:
ohm

Change-Id: Iddb8b53a9de4d1b326d398a3d749cdbe52ffa856
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-03-30 22:15:21 -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
jinbing.zhu 4deafd2566 revert: 5.15 algorithm makefile and kconfig new paths [1/1]
PD#SWPL-96505

Problem:
fix path

Solution:
fix path

Verify:
A311D2-AN400

Change-Id: I2b167a0cefb9582fd4e7078e9db663a60e939789
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-03-15 05:30:55 -07:00
Jiucheng Xu e9d1b749fa Revert "md: dm bow for kernel 5.15 [2/2]"
This reverts commit f4ba55d9f3.

PD#SWPL-114099

Problem:
bow code has been integrated in kernel/common

Solution:
revert common_driver bow driver.

Verify:
sc2

Change-Id: I1380897831c2753601c97767ca4ace0c23f2d8ba
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2023-03-13 03:15:20 -08:00
Jiucheng Xu 4319298d2f Revert "dm: fix dm bow build issue [1/1]"
This reverts commit c141ad0ad7.

PD#SWPL-114099

Problem:
bow code has been integrated in kernel/common.

Solution:
revert commit

Verify:
sc2

Change-Id: I164b6dc0c61134d3e03360eaad270dd459d97c88
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2023-03-13 03:15:17 -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
Jiucheng Xu ab34a18fda fs: port yaffs2 from 5.4 [1/1]
PD#SWPL-110877

Problem:
yaffs2 is needed by low-end platform.

Solution:
port it from 5.4

Verify:
SD4

Change-Id: I78336ab8ef94ea20e845149db59a42cf6a746bb2
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2023-02-21 19:48:52 -08:00
yanmei.yang ef591da407 yocto: CF2 add logger in kernel 5.15 [1/1]
PD#SWPL-105337

Problem:
android logger not support in kernel 5.15

Solution:
add logger into kernel 515

Verify:
Local

Signed-off-by: yanmei.yang <yanmei.yang@amlogic.com>
Change-Id: I2445c494eaae3c74f8053bb6caeea3e98825a901
2023-02-17 02:16:17 -08:00
jinbing.zhu 25cdf9fca1 kernel: 5.15 algorithm makefile and kconfig new paths [1/1]
PD#SWPL-96505

Problem:
fix path

Solution:
fix path

Verify:
A311D2-AN400

Change-Id: I61c72c28ea165d6e91c5105d72c1a7593ca09a1e
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-01-12 22:37:13 -08:00
hongyu.chen1 ced68011a7 T5M: add hwspinlock. [3/3]
PD#SWPL-104753

Problem:
add hwspinlock driver

Solution:
add hwspinlock driver

Verify:
ay301

Change-Id: I00fe24c4e1557efbe9357f0c88c8aded28d9d7f9
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-01-04 01:07:19 -08:00
Jiucheng Xu c141ad0ad7 dm: fix dm bow build issue [1/1]
PD#SWPL-102756

Problem:
Wrong MACRO for common_driver

Solution:
Fix the MACRO

Verify:
sc2

Change-Id: I1a1d5274db3115cf6c7b919bac023af5fcfe96a6
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2022-12-27 04:33:12 -08:00
Jiucheng Xu f4ba55d9f3 md: dm bow for kernel 5.15 [2/2]
PD#SWPL-102756

Problem:
Upgrade project need dm bow for ota

Solution:
Port it from 5.4 code

Verify:
sc2

Change-Id: I5ec3f30840fe61b9e002477b00d111853bb48ef8
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2022-12-19 22:30:12 -08:00
qinglin.li 7a994a0bea module: add none gki build option [1/1]
PD#SWPL-104098

Problem:
add none gki build option

Solution:
add none gki build option

Verify:
sc2

Change-Id: I6e7d660c3fea43de789627201b114592366b71bf
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-12-13 06:16:57 -08:00
hongyu.chen 935383a3c2 dvb_ci: t3 bringup. [1/1]
PD#SWPL-97829

Problem:
cam card bringup.

Solution:
Add cam card support.

Verify:
AR321/T965D4

Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
Change-Id: I18faf33c97a3d2c7c358b945e2b915b3971f87b0
2022-12-02 14:04:55 +08:00
qinglin.li d42ffc9882 dvb: combine dvb module [1/1]
PD#SWPL-95684

Problem:
combine dvb module

Solution:
result:
	amlogic-dvb.ko
	amlogic-dvb-demux.ko
original:
	aml_dvb_extern.ko
	amlogic-aucpu.ko
	amlogic-dvb-demux.ko
	aml_dsm.ko
	amlogic-smartcard-sc2.ko

Verify:
sc2

Change-Id: I293381ecad230dc821a94f8d2440df1f2c24582a
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:32:02 +08:00
Wanwei Jiang c780df0b08 memory: combine memory_ext addr_tool and reg_access modules [1/1]
PD#SWPL-95684

Problem:
combine memory_ext addr_tool and reg_access modules

Solution:
result: amlogic-memory-debug.ko
original:
	file_cache.ko
	watch_point.ko
	amlogic-reg.ko
	amlogic-ddr.ko

Verify:
sc2/s4d

Change-Id: Id143e085dd26c0b57631dbab4c003534905d0661
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:31:14 +08:00
qinglin.li 55312c58ed wireless: combine wifi and bluetooth modules [1/1]
PD#SWPL-95684

Problem:
combine wifi and bluetooth modules

Solution:
result: amlogic-wireless.ko
original: amlogic-wifi.ko bt_device.ko

Verify:
sc2

Change-Id: I2b8ff4c2471407e419772e22920434c5c74b843e
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:30:53 +08:00
qinglin.li 32645d804f gpio: combine gpiolib irqchip and pinctrl modules [1/1]
PD#SWPL-95684

Problem:
combine gpiolib irqchip and pinctrl modules

Solution:
result:
	amlogic-gpio.ko
original:
	amlogic-irqchip.ko
	amlogic-pinctrl.ko
	amlogic-gpiolib.ko

Verify:
sc2

Change-Id: I6d47bb5a0007c26b8ebc922b1cdd31863d9e6454
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:07:34 +08:00
Wanwei Jiang 24ec321ee7 secmon: combine secmon and dolbyfw modules [1/1]
PD#SWPL-95684

Problem:
combine secmon and dolbyfw modules

Solution:
result: amlogic-secmon.ko
original:
	amlogic-secmon.ko
	amlogic-dolbyfw.ko

Verify:
sc2

Change-Id: Ibc809a6f9ec1850b050a2aca0660f0607afbd5b4
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:06:46 +08:00
Wanwei Jiang 812361a4e9 pm: combine pm and reboot modules [1/1]
PD#SWPL-95684

Problem:
combine pm and reboot modules

Solution:
result: amlogic-pm.ko
original: amlogic-pm.ko amlogic-reboot.ko

Verify:
sc2

Change-Id: I25366f4413a7e7ec84131321e9b686b337358d70
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:06:33 +08:00
song.han 5c1df2adb9 scrambler: enable scrambler func in normal reboot [2/2]
PD#SWPL-94581

Problem:
need disable ddr scrambler func for debug

Solution:
only enable scrambler func in normal reboot

Verify:
SC2_AH212

Signed-off-by: song.han <song.han@amlogic.com>
Change-Id: I17fcfcc4b0ef0df195c6464bd742b23758422dfc
2022-09-26 19:47:22 -07:00
junyi.zhao 82e39409d1 leds: add tlc and aw driver [1/1]
PD#SWPL-91800

Problem:
there is no ledIc driver

Solution:
porting driver

Verify:
s4 ah212

Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
Change-Id: Id7e22d21b3378c56bdf2d0f00e55083f0830d94b
2022-09-07 20:06:45 +08:00
song.han b44f186fcc ddr_scrambler: build ddr_scrambler func in module [2/2]
PD#SWPL-89148

Problem:
ddr scrambler key refresh that cause lastk miss

Solution:
enable ddr scrambler key preserve when pstore init
build this function as module

Verify:
SC2_AH212

Signed-off-by: song.han <song.han@amlogic.com>
Change-Id: Iae0848df26de4387075edcdcb7652173c89d2468
2022-09-07 20:06:43 +08:00
Yu Tu d4e08c3c15 pcie: add pcie driver [1/1]
PD#SWPL-83304

Problem:
need pcie driver for sc2

Solution:
add pcie driver

Verify:
sc2

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: Ie2b31847791904ce03e81af8992b0ddcd77b1042
2022-09-07 20:06:42 +08:00
Bichao Zheng 7b68997a51 spinand: C3 add spinand support [1/1]
PD#SWPL-83836

Problem:
need add spinand support

Solution:
1. enabled spinand default
2. disabled emmc
3. add new partition
4. enabled ubifs support

Verify:
c3_aw419

Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Change-Id: Ic1e679d30f5bd23cb30115fe380b9a08e60b18f3
2022-06-30 18:09:28 +08:00
yujun.zhang 54bd40dae9 drm: add drm driver support [1/1]
PD#SWPL-82197

Problem:
no drm driver support

Solution:
add drm driver support

Verify:
ap222

Change-Id: I331a75afe6087278ebf9de27ae36a346539d09a8
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2022-06-07 04:47:30 -07:00
wanwei.jiang 3eab75fcab script: compatible android kernel build [2/2]
PD#SWPL-80766

Problem:
compatible android kernel build

Solution:
1. modify the Kconfig and Makefile of sound to avoid the "../" directory,
which leads to failure in building the ramdisk.
2. support build dtbo
3. support build system_dlkm and vendor_dlkm, and import rootfs's modules loading sequence

Verify:
s4d and a1

Change-Id: I98e6852e2603bb259839567316a0ba53a87f696e
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-25 01:14:27 +08:00
Bichao Zheng 6b2572b772 nand: support driver for s4d [1/1]
PD#SWPL-79112

Problem:
need support nand driver for s4d

Solution:
add s4d support

Verify:
s4d

Change-Id: Ife2638781da946f0527ff00546ca5a8cb97b293f
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2022-05-19 07:27:20 -07:00
chuangcheng peng 455212b1b9 dvb: add dvb module [1/1]
PD#SWPL-77327

Problem:
need dvb feature

Solution:
add dvb feature

Verify:
compile pass, no verify

Change-Id: I6ae02c2685a09b31a53926ef341c1dbd65b98241
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2022-05-15 22:41:36 -07:00
Bichao Zheng 0d4c1967ad spinand: add spi nand support [1/1]
PD#SWPL-77466

Problem:
need to support spi nand

Solution:
1. add spi nand support
2. add spifc v2 support

Verify:
A1

Change-Id: I183e52931a3b87b7d13ce6b7d930c2e16a6e0a25
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2022-05-12 17:50:20 +08:00
chuangcheng peng 5c2db001ae smc: bringup [1/1]
PD#SWPL-77328

Problem:
bringup

Solution:
bringup

Verify:
not verified

Change-Id: I958f77eb2cd5629dd5ea2643d19e3a6344ae0cc7
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2022-05-10 02:11:08 -07:00
Zhuo Wang 486030f422 eth: gki bringup [2/2]
PD#SWPL-77313

Problem:
bringup eth

Solution:
bringup eth

Verify:
Verified on AP222_S905Y4#005

Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Change-Id: I39ce9e905790c8a62ce8b5705a6443e0c56c81b5
2022-04-26 05:03:35 -07:00
wanwei.jiang 5c861ae1c1 script: support ext module [1/1]
PD#SWPL-64232

Problem:
support ext module

Solution:
support ext module

Verify:
s4d c2 local build

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ie4630b795fe0364e96cd07ed9c2a28f4630a31a8
2022-04-25 00:39:18 -07:00