Commit Graph

169 Commits

Author SHA1 Message Date
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
song.han e898adea64 debug: move export symbol to correct file [1/1]
PD#SWPL-71728

Problem:
export symbol defined in common folder and common_driver
folder should declare in different abi file

Solution:
move export symbol to correct file

Verify:
s4d_ap222

Change-Id: Ib0aa63887a2112ab440edd75148e7a72b7383055
Signed-off-by: song.han <song.han@amlogic.com>
2022-03-02 19:53:06 +08:00
song.han 296e2ed788 iotrace: support iotrace driver [2/2]
PD#SWPL-71754

Problem:
support iotrace driver

Solution:
support iotrace driver

Verify:
on s4d_ap222 and c2_af400

Change-Id: Iefaa724c118a9310ce1b7121c6685dce580db0d5
Signed-off-by: song.han <song.han@amlogic.com>
2022-03-01 19:56:52 -07:00
yuhua.lin 1c432c7b92 gdc: add gdc support [1/1]
PD#SWPL-71875

Problem:
add gdc support

Solution:
add this support

Verify:
C2

Change-Id: I1c8b14ad5693599e538365f6f1e2f8f8dc267a03
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-02-27 19:51:58 -07:00
yuhua.lin ce6e72c033 ge2d: add ge2d support [1/1]
PD#SWPL-71874

Problem:
add ge2d support

Solution:
add this support

Verify:
C2

Change-Id: I3978f4284237104c14d4344f5716daf5963c9b87
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-02-27 19:51:43 -07:00
yuhua.lin e356b87269 canvas: add canvas support [1/1]
PD#SWPL-72032

Problem:
add canvas support

Solution:
add this support

Verify:
C2

Change-Id: Idbe0776fe5edaa2d2bb28a67df9aa94f009915d0
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-02-27 19:51:25 -07:00
Hanjie Lin 71de1a49bb debug_lockup: add support [2/2]
PD#SWPL-71728

Problem:
add debug_lockup support

Solution:
add debug_lockup support

Verify:
s4

Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Change-Id: I578f6c22b8a41aae861871249248618230f18859
2022-02-22 03:18:28 -07:00
Yu Tu 058a3bb589 clk: Not conforming to GKI specifications [1/2]
PD#SWPL-70783

Problem:
Not conforming to GKI specifications

Solution:
add this modified

Verify:
c2_af400

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: I6cd4bb2d0fa308eae4a6f7e6f39d60bc3cc47de8
2022-02-17 03:00:23 -07:00
wanwei.jiang 2ac4eb2a3d cpuinfo: print chipid [2/2]
PD#SWPL-71735

Problem:
print chipid when cat /proc/cpuinfo

Solution:
print chipid when cat /proc/cpuinfo

Verify:
s4d and C2 AF400

Change-Id: I447e9149f00ad4f4451813340c4e00dd42d4522e
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-16 13:35:50 +08:00
Tao Zeng 0a649a2a65 mm: add pagetrace driver [2/2]
PD#SWPL-70022

Problem:
No pagetrace function on 5.15 kernel

Solution:
porting it from 5.4

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I16874164b9238a5ee8f0449ecda05377d6761a2a
2022-02-15 00:24:39 -07:00
wanwei.jiang 08a2acfaea reboot: porting reboot driver [1/1]
PD#SWPL-70992

Problem:
porting reboot driver

Solution:
1. porting reboot driver
2. ptimizing log printing

Verify:
s4d

Change-Id: I51bf865af792c01e5be6c3a6d0bd069fa1b9f2fe
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-24 13:54:47 +08:00
Long Yu 0531d3b475 MMC: porting mmc driver [1/1]
PD#SWPL-68831

Problem:
porting mmc driver

Solution:
porting mmc driver

Verify:
s4d

Change-Id: If21f1e1300b1ee8393e24f8bc1f857497a3f975f
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-01-20 22:50:43 -07:00
Shunzhou Jiang df03c700db Power: power domain driver follow GKI standard [1/2]
PD#SWPL-66796

Problem:
Power domain driver not follow GKI

Solution:
follow GKI standard

Verify:
s4d

Change-Id: Id80f02e916c51f5a35a2d7299bd8a06c21700d29
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2022-01-19 19:31:13 -07:00
wanwei.jiang 82c658e68b thermal: porting thermal driver [1/1]
PD#SWPL-68630

Problem:
porting thermal driver

Solution:
1. porting thermal driver
2. modify the function type of the member of
struct thermal_cooling_device_ops
state2power
power2state
get_requested_power
3. modify the function(cpu_hotplug.c) interface
cpu_up() --> add_cpu()
cpu_down() --> remove_cpu()
4. modify config and move module_init from meson_cooldev.c to meson_tsensor.c
5. modify pr_info() --> pr_debug() when probe

Verify:
s4d

Change-Id: I5eead0120dbc826cbb4282d28d7531018c826025
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-14 18:39:57 +08:00
wanwei.jiang 1f3df6f810 gkitool: driver optimization [1/1]
PD#SWPL-68520

Problem:
driver optimization

Solution:
1. read command line from bootargs nor /proc/cmdline
2. parse command line to param and value
3. support early_param and __setup
4. support module_param
5. use pr_debug nor gki_tool_debug
because can't pass parameters to it from the command line

Verify:
s4d

Change-Id: Ib2d7915018e3c1a70284340b30bf929e6bb64b41
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-13 15:40:36 +08:00
wanwei.jiang 5b9119c59f irblaster: porting irblaster driver [1/1]
PD#SWPL-69666

Problem:
porting irblaster driver

Solution:
porting irblaster driver

Verify:
s4d

Change-Id: If15957c9c4072bb08bf5454cc3e81eac646eb1ad
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-11 20:46:44 +08:00
wanwei.jiang 22ba320f55 rng: porting rng driver [1/1]
PD#SWPL-69195

Problem:
porting rng driver

Solution:
porting rng driver

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: I26c40fa7e0e39ba0e2e647e6cabe26520adf076b
2022-01-07 12:37:54 +08:00
wanwei.jiang 788578ab2f adc: porting adc driver [1/1]
PD#SWPL-69192

Problem:
porting adc driver

Solution:
1. porting adc driver
2. move kfifo_buf.c from kernel to driver,
   becasue CONFIG_IIO_KFIFO_BUF is not set
3. modify code style
4. reduce print level when probe phase

Verify:
s4d

Change-Id: I4bca5ab1572402ab37100a64805482e3adc554b5
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-06 20:25:29 +08:00
wanwei.jiang d607696240 jtag: porting jtag driver [1/1]
PD#SWPL-69190

Problem:
porting jtag driver

Solution:
porting jtag driver

Verify:
s4d

Change-Id: Icf0b8be00045444e71c6779f9bf97d3f5c7756cb
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-05 17:07:20 +08:00
qinglin.li 7231e83d7f mailbox: porting mailbox driver [1/2]
PD#SWPL-65955

Problem:
porting mailbox driver

Solution:
porting mailbox driver

Verify:
s4d-ap222

Change-Id: I4dc5a60e588c54551f835af15b824bbb06877bb6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-01-04 18:10:30 +08:00
wanwei.jiang 17f72adc13 efuse_unifykey: porting efuse_unifykey driver [1/1]
PD#SWPL-69066

Problem:
porting efuse_unifykey driver

Solution:
1. porting efuse_unifykey driver
2. pfn_valid -> pfn_is_map_memory
3. use secmon driver interface in efuse_api.c
4. add <linux/compat.h> for compat_ptr
5. add <crypto/sha256_base.h> for SHA256_DIGEST_SIZE
6. reduce the print level in the probe function

Verify:
s4d

Change-Id: Ia9833a2ad0d0bc0f751624c65ccefd92bdc3276b
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-04 14:07:33 +08:00