Commit Graph

89 Commits

Author SHA1 Message Date
Hao Shi e39757a561 v4l2: clean vendor hooks [3/3]
PD#SWPL-92322

Problem:
No logner use vendor hooks.

Solution:
Remove v4l2 vendor hooks.

Verify:
local

Change-Id: I217d332f6283814dc9bff026f9d14244e4e67dd1
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2022-09-27 18:37:30 -07:00
song.han b7fc4f5f71 iotrace: add iotrace function [2/2]
PD#SWPL-92722

Problem:
iotrace miss function

Solution:
add function in iotrace driver,like smc/sched/clk/pw

Verify:
S4D_AP222

Change-Id: Ie59bac5863e5a4420b90d95a0ecae0bcb0584fb6
Signed-off-by: song.han <song.han@amlogic.com>
2022-09-22 22:54:00 -07:00
Hao Shi f8af7f4f9e V4L2: CF1 v4ldec supports ext ctrl to configure decoding parameters. [2/3]
PD#SWPL-92319

Problem:
supports ext ctrl to configure decoding parameters

Solution:
supports ext ctrl to configure decoding parameters.

Verify:
ah212

Signed-off-by: Hao Shi <hao.shi@amlogic.com>
Change-Id: Ie3bc9d67b020d43a2db6a85b6a3a1cf7d12c1be7
2022-09-22 19:19:58 -07:00
qi duan 69305b09c2 usb: move crg_otg_write_UDC from common to common_driver for gki [1/1]
PD#SWPL-94449

Problem:
for gki, put crg_otg_write_UDC in common_driver

Solution:
put crg_otg_write_UDC in common_driver

Verify:
ah212 aw419

Signed-off-by: qi duan <qi.duan@amlogic.com>
Change-Id: I74a8fefcca65fd0141182ea0be6fe53041905d5d
2022-09-22 02:10:58 -07:00
Wanwei Jiang 2d4f9741ef gki: rename to follow gki rule [1/1]
PD#SWPL-93926

Problem:
rename to follow gki rule

Solution:
rename to follow gki rule

Verify:
sc2

Change-Id: Ia01d7f6b94083fdb47392425847e0d150db010bc
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-09-13 18:20:11 +08:00
Wanwei Jiang bbf114354c gki: build fail [1/1]
PD#SWPL-93926

Problem:
./mk.sh --gki, build fail

Solution:
wrap with config

Verify:
sc2

Change-Id: Ib436e277df6d63258e378b85853fd5580ce41d8a
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-09-09 06:06:02 -07:00
Jiucheng Xu 8eeeeff400 fs: Add NTFS3 support [1/1]
PD#SWPL-90516

Problem:
NTFS3 is disable

Solution:
Set NTFS3 to module

Verify:
sc2

Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
Change-Id: Ia96d12f5b7777453d716aba81547d59948ea3b90
2022-09-07 20:06:44 +08:00
Wanwei Jiang a5977bd740 gki: modify configs to follow gki rule [1/1]
PD#SWPL-88872

Problem:
modify configs to follow gki rule

Solution:
1. remove annotated configs
2. remove invalid config: CONFIG_AMLOGIC_USB_HOST_ELECT_TEST
3. remove config CONFIG_MEDIA_SUBDRV_AUTOSELECT,
and configure tuner configs to not set
4. adjust symbols
5. keep modules.dep for viewing module dependencies

Verify:
sc2

Change-Id: I64ce960e81e7b8181b8f043dee48b23ebb2de8b2
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-09-07 20:06:44 +08:00
Bichao Zheng 7a3115037e mtd: remove unused config [1/1]
PD#SWPL-89127

Problem:
mtd need to meet GKI requirement.

Solution:
1. remove unused config

Verify:
SC2

Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Change-Id: I0cca1c94afa37b317c7a10b9008774f6b43a33e9
2022-09-07 20:06:43 +08:00
hao.shi eb76dc0089 v4l2: update v4l2 vendor hooks [3/3]
PD#SWPL-90257

Problem:
Update vendor hooks according to GKI.

Solution:
Update v4l2 vendor hooks and remove vendor data in vb2.

Verify:
SC2

Change-Id: I318883dc240dd996cdebe3a165a2f045f816e956
Signed-off-by: hao.shi <hao.shi@amlogic.com>
2022-09-07 20:06:43 +08:00
qinglin.li 63feb20c26 debug file: add debug file function [1/2]
PD#SWPL-88882

Problem:
kernel through to user space rw files

Solution:
add debug file function

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ia19a8b071fe63fbcd46ff1a2a8259274e40e805e
2022-09-07 20:06:43 +08:00
chuangcheng peng 7687f59168 dvb-core: use origion dvb-core in kernel [2/2]
PD#SWPL-89132

Problem:
use dvb-core to ko

Solution:
put aml modification to dvb-core

Verify:
not verified, compile pass

Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
Change-Id: If400a437e48a4e1c0f8193b56e2f54d06660e806
2022-09-07 20:06:43 +08:00
chen.xu b59e3ba991 video_processor: break GKI for video [1/1]
PD#SWPL-89213

Problem:
break GKI--video.

Solution:
1.delete ./video_processor/pic_dev/Kconfig:AM_PTSSERVER.
2.modify ./video_processor/video_dev/Kconfig:VIDEOBUF_GEN.
3.modify ./video_processor/utils/Kconfig:VIDEOBUF_GEN.

Verify:
AH212_S905X4

Signed-off-by: chen.xu <chen.xu@amlogic.com>
Change-Id: Ic857789fe942c5ba097ef7284c9f13ccb6b2ad65
2022-09-07 20:06:43 +08:00
qinglin.li 073082327a debug: add filp_open debug function [2/3]
PD#SWPL-88149

Problem:
add filp_open debug function used to relabel

Solution:
add filp_open debug function

Verify:
sc2

Change-Id: Iba99f9008ad475d2666cd25fac2c188c49b4a2dc
2022-09-07 20:06:43 +08:00
hai.cao 344af51030 kernel5.15: move osd_sw_sync.c to common/sw_sync/ [1/1]
PD#SWPL-89597

Problem:
CONFIG_FB break the rule of GKI

Solution:
move osd_sw_sync.c to common/sw_sync/
then add Kconfig and Makefile into this document

Verify:
SC2

Signed-off-by: hai.cao <hai.cao@amlogic.com>
Change-Id: I3e8872835de26849cbb05953c4ddb47204aae03c
2022-09-07 20:06:43 +08:00
Hanjie Lin 633ebc3bd1 gki: debug configs break [1/1]
PD#SWPL-89148

Problem:
debug configs break gki

Solution:
modify

Verify:
local compile

Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Change-Id: Ibec70a3c1ebe943a2cdda3daab42d386afe5e097
2022-09-07 20:06:43 +08:00
Bichao Zheng 24de14fcc5 mtd: changed to gki support [1/1]
PD#SWPL-89127

Problem:
mtd need to meet GKI requirement.

Solution:
1. modify the configs

Verify:
c3

Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Change-Id: I7f1fb0ba77a6b84f1fa5cc4ee0ea15c0dd924715
2022-09-07 20:06:42 +08:00
Jianxiong Pan b1de07e0e6 config: move memory configs to optimize file. [1/1]
PD#SWPL-89149

Problem:
need to meet GKI requirement.

Solution:
move memory configs to optimize file.

Verify:
c2_af400.

Change-Id: I2e1c6b6a225f28cc72c28a6523178e238c813347
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-09-07 20:06:42 +08:00
wanwei.jiang 6fdd315c48 config: config optimize [1/1]
PD#SWPL-88872

Problem:
follow gki 1.0

Solution:
config file is divided into three parts: base, optimize and debug

Verify:
sc2

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ibdd6e930f4acee7cfcfc06069240c7389ed6e77d
2022-09-07 20:06:42 +08:00
hao.shi 24d03d99c6 v4l2: support aml v4l2 [2/2]
PD#SWPL-87486

Problem:
porting v4l2

Solution:
add v4l2 vendor hooks abi symbol

Verify:
SC2

Signed-off-by: hao.shi <hao.shi@amlogic.com>
Change-Id: I2e37d475fd28dbbc8244ae5f7048a0e1642e00a7
2022-09-07 20:06:42 +08:00
libo 46e9a0db00 SC2: support wifi for sc2 in kernel5.15 gki [1/1]
PD#SWPL-87941

Problem:
need support wifi for sc2 in kernel5.15 gki

Solution:
support wifi for sc2 in kernel5.15 gki

Verify:
sc2

Signed-off-by: libo <bo.li@amlogic.com>
Change-Id: I5b78d847d97727b49a0010394cbe9229d2c59b88
2022-09-07 20:06:42 +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
min.yang 57756e2b3c Demod: porting from 5.4 to 5.15 [1/1]
PD#SWPL-77329

Problem:
s4d need porting demod and tuner.

Solution:
1.porting dtv-demod.
2.porting dvb-extern.

Verify:
compile pass, be normal on s905Y4.

Change-Id: I1533c15047089a1215e042b064770e11ff2ed21a
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-07 20:06:42 +08:00
Bichao Zheng e90766ec13 spinand: sc2 add spinand support [1/1]
PD#SWPL-83293

Problem:
Need to support sc2 spinand driver

Solution:
add spinand support.

Verify:
sc2_a219

Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Change-Id: I4abbbf5546b4097df903ff287255314ec7ab25b2
2022-09-07 20:06:42 +08:00
qinglin.li bc11590ecd cpuinfo: modify printf info [2/2]
PD#SWPL-90890

Problem:
add common_drivers release
rm cpuinfo vendor_hooks function.

Solution:
printf common_drivers release
rm cpuinfo vendor_hooks function

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I3d21d35465f28b3f4bd9e21189928f441032d0c4
2022-08-18 20:38:48 +08:00
Long 1b0b89a1c6 emmc : vendor hook change to timer func [1/1]
PD#SWPL-89620

Problem:
change way to add dtb key device

Solution:
revise code

Verify:
c2 af400

Change-Id: I186fbc477ce9215b8218f54f8a364dd029ea5822
Signed-off-by: Long <long.yu@amlogic.com>
2022-08-15 04:14:12 -07:00
Yue Wang c81866beb5 C3: usb: c3 usb driver [1/1]
PD#SWPL-83845

Problem:
c3 usb driver.

Solution:
c3 usb driver.

Verify:
aw419

Change-Id: I618b54a562d1d3a934f9b875fbd05f0a0f9ef720
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
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
chuangcheng peng 4c9422473c demux: optimize the ko output [1/1]
PD#SWPL-77327

Problem:
1.dvb-core output unused ko.
2.kconfig format

Solution:
1. add config to disable unused ko.
2. kconfig format

Verify:
not verified

Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
Change-Id: I9b9c1760b198d15dabf3036c3541a02d7b8b3529
2022-05-25 01:42:09 -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
wanwei.jiang 1482c873d7 script: optimization script [1/1]
PD#SWPL-80766

Problem:
1. need optimization script

Solution:
1. ./mk --check_defconfig
2. ./mk --modules_depend
3. use build.config.gki.aarch64
4. enable CONFIG_ARM64_MTE, otherwise it will be disable LTO and CFI

Verify:
s4d

Change-Id: I67969c1d52bd584e09885424fa4b51639d6ebfee
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-13 09:04:55 -07:00
qinglin.li 55bb211b03 upgrade: upgrade kernel [1/1]
PD#SWPL-80398

Problem:
upgrade kernel with version 5.15.35

Solution:
upgrade kernel with version 5.15.35

Verify:
c2 and s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ibc446d0d3f95c12aa46816cdf5376b04c050adc0
2022-05-10 02:59:41 -07:00
rui guo b56f38c8d8 kernel5.15: s4d TEE driver [1/1]
PD#SWPL-77316

Problem:
kernel5.15:s4d TEE driver

Solution:
add EXPORT_SYMBOL:
gen_pool_virt_to_phys
gen_pool_set_algo
gen_pool_best_fit
platform_device_register

Verify:
S905C3 + kernel 5.15

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ibad2190e9408c11fc7969684e07f5d57d361d8a9
2022-05-07 00:56:55 -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 af26eeaf9d media: enable the same config as kernel 5.4 [1/1]
PD#SWPL-77521

Problem:
enable the same config as kernel 5.4

Solution:
enable the same config as kernel 5.4

Verify:
s4d

Change-Id: I73f6eb8a896956337503477f32c218fe465cddda
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-11 20:57:12 +08:00
yuhua.lin 1c6c47f42a video_sink: add video_sink support [1/1]
PD#SWPL-73628

Problem:
add video_sink support

Solution:
add this support

Verify:
s4d

Change-Id: I2f2c6ce16ae33f25fcca02ecb35cf282b023c6a8
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-03-31 05:10:36 -07:00
yuhua.lin 5b18de53bf osd: add osd support [1/1]
PD#SWPL-73591

Problem:
add osd support

Solution:
add this support

Verify:
s4d

Change-Id: Iac032d2f5081fe2a41b00da492edf99ec8d37703
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-03-28 19:09:48 +08:00
yuhua.lin 331a2effc1 rdma: add rdma support [1/1]
PD#SWPL-73592

Problem:
add rdma support

Solution:
add this support

Verify:
s4d

Change-Id: I4414d4e3280d4db4c88408415aee940a422b49b8
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-03-28 18:24:46 +08:00
hao.shi f34460cb00 codec_mm: CF2 codec_mm & vfm [1/1]
PD#SWPL-72686

Problem:
add codec_mm & vfm

Solution:
add codec_mm & vfm

Verify:
s4d

Change-Id: Icecc654eaa7468a17da97d0513adae849651d456
Signed-off-by: hao.shi <hao.shi@amlogic.com>
2022-03-25 01:01:07 -07:00
jiabin.chen dc40ec99c3 wifi: wifi & bt bringup [1/1]
PD#SWPL-72086

Problem:
k5.15 not support wifi bt

Solution:
add wifi bt files

Verify:
c2

Change-Id: I2c003e4e1b8bbf9ea60b184c5070a90101d98eba
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2022-03-24 20:01:34 +08:00
Rong Chen 48bfc73a33 sdio: support sdio reset. [1/1]
PD#SWPL-74441

Problem:
not support sdio reset

Solution:
support reset

Verify:
s4d

Change-Id: Id9f91e492d7394cec0f715c83077e2b7863e53c8
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-03-23 02:13:34 -07:00
jian zhou 735dd18642 audio: porting audio driver for s4d [1/1]
PD#SWPL-74630

Problem:
porting audio driver

Solution:
porting audio driver from kernel 5.4

Verify:
s4d

Signed-off-by: jian zhou <jian.zhou@amlogic.com>
Change-Id: I2ba44665f506c42564eea2b5b40f8465a008e876
2022-03-21 06:16:16 -07:00
Yongjie Zhu d29984fd7c ion: add ion driver for kernel5.15 [1/1]
PD#SWPL-72034

Problem:
kernel5.15 c2 need ion driver

Solution:
add ion driver for kernel5.15

Verify:
s4d_ap222

Change-Id: I605871c76538364d3687d4ac25fbaf371f6711f8
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2022-03-10 03:25:52 -07:00
jian zhou 2363b88d46 audio: fix audio crash and use new audio function for daifmt parse [1/1]
PD#SWPL-72014

Problem:
1. audio crash
2. audio function for daifmt parse is changed

Solution:
1. use dai-link struct right member
2. use new audio function for daifmt parse

Verify:
s4d and C2 AF400

Change-Id: I03f04d55b87fcd691575ac8de85bf8160a7daed6
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2022-03-10 14:07:16 +08:00
he.he d75c5a75da usb: support USB [1/1]
PD#SWPL-74133

Problem:
support USB

Solution:
support USB

Verify:
S4D

Change-Id: I7865be8b43b6d442a550d05ec8175b82f39e4795
Signed-off-by: he.he <he.he@amlogic.com>
2022-03-09 22:55:59 -07:00
Jianxiong Pan 1100e5c44e mm: add user fault debug support. [2/2]
PD#SWPL-73676

Problem:
need user fault debug support.

Solution:
add user fault debug support.

Verify:
local.

Change-Id: I3741ef675c174b8e30f352f8d193aab0318cff9a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-07 09:50:41 +08:00
Jianxiong Pan 682148d7c2 kasan: fixed build error when enable kasan generic. [1/1]
PD#SWPL-73890

Problem:
build error in kasan generic mode.

Solution:
fix the error when enable kasan generic.

Verify:
local.

Change-Id: Iac0a11209921374a494dafb17c3d5fd56748b426
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-04 04:24:47 -07:00
ziyi 80f941e1fa emmc&SD: move dtb and key and revise SD CD err [1/2]
PD#SWPL-71939

Problem:
move dtb and key ,revice SD card CD status err.

Solution:
move dtb key
and delete cd_inverted setting

Verify:
Local

Change-Id: I29bf7826e7d87183d83570c24167cd331e54bd1b
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2022-03-04 01:23:57 -07:00
wanwei.jiang daefdc103d audio: porting audio driver [1/1]
PD#SWPL-72014

Problem:
porting audio driver from kernel5.10

Solution:
porting audio driver from kernel5.10

Verify:
s4d and C2 AF400

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ie69c274441619925df30ec20f85ae2b36e74bc6e
2022-03-04 11:13:37 +08:00
Mingyen Hung 1e8b4c307a crypto: bringup amlogic crypto driver [1/1]
PD#SWPL-71764

Problem:
Need to bringup amlogic crypto driver for
kernel 5.15.

Solution:
1. Bringup amlogic crypto driver
2. Enable SHA1, DES, and ECB if they are
disabled by default.
3. Merged from 5.4 and 5.10

Verify:
1. Built-in driver on C2_AF400
2. GKI driver on S4D AP_222

Change-Id: I62487e615930070233c3a6b4a41b66edddf6f783
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2022-03-03 04:13:47 -07:00