Commit Graph

92 Commits

Author SHA1 Message Date
Chuan Liu 0d479df10f c3: update clk tree code [2/2]
PD#SWPL-83827

Problem:
1 add clk_notifier
2 pll clock register is incorrectly configured
3 pwm clk source of pwm defined error

Solution:
1 update clk tree code
2 optimize pll timing(https://scgit.amlogic.com/#/c/231673/)

Verify:
AW419-C308L

Change-Id: I7e2f1cc9143b37a493bfaba3163f1a173c164935
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2022-06-30 18:09:28 +08: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
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
Yu Tu 1074bb057e clk: sc2: add sc2 clktree driver [1/1]
PD#SWPL-83300

Problem:
no sc2 clktree driver

Solution:
add sc2 clktree driver

Verify:
sc2_ah212

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: I952b347791abb42af87ab2dc5c72b89ce5f6e76a
2022-06-06 00:53:06 -07:00
Bin.Wang2 f12ba6b47c amvecm: porting amvecm kernel 5.15 for S4/A1 [1/1]
PD#SWPL-77462

Problem:
kernel5.15 for S4D/A1

Solution:
sync kernel5.15 amvecm file for S4D/A1

Verify:
S4D

Change-Id: I018445b78be3751c217ee779aac3b6c42e910afc
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2022-06-04 06:24:42 -07:00
yuhua.lin ca591b404a vpp: add c3 video support [1/1]
PD#SWPL-74316

Problem:
add video_sink support

Solution:
add this support

Verify:
c3

Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
Change-Id: Ib5b5517a680f50f1d702ed59313a18fd6c9fe9e0
2022-05-31 14:36:14 +08:00
yuhua.lin 254fb69f91 osd: add c3 osd support [1/1]
PD#SWPL-74294

Problem:
need add c3 osd support

Solution:
complete it

Verify:
c3

Change-Id: I016d207263f1c374f890e93b782e723b2a28aab5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-05-31 11:23:36 +08:00
yuhua.lin a6a5867b98 codec_io: c3 codec_io dts setting [1/1]
PD#SWPL-79103

Problem:
need modify c3 codec_io dts setting

Solution:
complete it

Verify:
s4d

Change-Id: I5980b719e33a1bc626ee8c09e7e01880be9115c7
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-05-31 11:16:20 +08:00
Jian Cao c570ac73a4 ge2d: add dma queue support [1/1]
PD#SWPL-74295

Problem:
implete the new feature driver

Solution:
add this support

Verify:
C3-PTM

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ica41e273ebe08ad6c28b1f2af74839ab667d57bc
2022-05-31 10:39:15 +08:00
Yongjie Zhu 78e99bfc22 ion: move ion.h to include [1/1]
PD#SWPL-78227

Problem:
drm driver need use ion function

Solution:
move ion.h to common_driver/include

Verify:
s4d

Change-Id: I06b800c9394a3337c7e44363768687ed917110f2
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2022-05-29 19:28:59 -07:00
hao.shi 04b1f3a147 register: dos_regiters managemant debug. [1/1]
PD#SWPL-78946

Problem:
Dosbus registers new management

Solution:
Dosbus registers new management

Verify:
s4

Signed-off-by: hao.shi <hao.shi@amlogic.com>
Change-Id: Id729a804b336c008cf378303b79f55bb3e245388
2022-05-29 19:10:18 -07:00
qinglin.li 5f0e9ae872 dts: bring up sc2 dts [1/1]
PD#SWPL-82995

Problem:
bring up sc2 dts

Solution:
bring up sc2 dts

Verify:
sc2-ah212

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I83d7bb3df417ca620b128ea8ac598af05792b89d
2022-05-27 02:16:33 -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
wanwei.jiang 423b97c4b8 upgrade: enable NDK_TRIPLE [1/2]
PD#SWPL-80398

Problem:
build fail with NDK_TRIPLE

Solution:
1. modify uapi directory
2. enable NDK_TRIPLE in common git

Verify:
s4d and c2

Change-Id: Ib294877d68b5b061aa8517558ccaf05a93d67cab
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-11 22:46:14 +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 310a61615c a1: aarch64 bring up to console [1/1]
PD#SWPL-77520

Problem:
aarch64 bring up to console

Solution:
aarch64 bring up to console

Verify:
a1 ad409

Change-Id: I8d75dfa555e488548c1ad2aed0c4915279cb91a1
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-14 22:29:19 +08:00
Tao Zeng aa59c4f6ac mm: enable vmap stack on 32bit arch [2/2]
PD#SWPL-70022

Problem:
vmap stack is not enabled on 32bit arm arch

Solution:
Enable it

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Ie3a9c349c737ec4171c0fe31d5fd201b2a195c63
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2022-04-14 11:52:09 +08: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
wanwei.jiang 15656eb157 media: porting media driver [1/1]
PD#SWPL-77521

Problem:
porting media driver from kernel 5.4

Solution:
porting media driver from kernel 5.4

Verify:
s4d and C2 AF400

Change-Id: I63bb8316e271db8b7d0e6e524399ebde9a1456a6
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-07 22:56:37 +08:00
Jian Cao 797048d865 media: add ge2d/dewarp support [1/1]
PD#SWPL-74296

Problem:
add ge2d/dewarp support

Solution:
add this support

Verify:
C3 PTM

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ib22534ce4fddc19866c645080003423f8b53924f
2022-04-01 01:40:06 -07: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 658c6c6125 decoder: add some headers to support media_modules [1/1]
PD#SWPL-72272

Problem:
some define is needed by media_modules

Solution:
add headers that needed

Verify:
s4

Change-Id: Ic5a24e6879d94c25db16a6328b98b812e94c55b5
Signed-off-by: hao.shi <hao.shi@amlogic.com>
2022-03-25 03:51:18 -07:00
Jianxiong Pan eda3eea39c mm: add watch point module. [2/2]
PD#SWPL-76021

Problem:
need add watch point driver.

Solution:
porting watch point driver.

Verify:
s4_ap222.

Change-Id: Ie4220735d607c8b865209d43f314eaad41a29a9a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-25 03:49:06 -07: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
Zelong Dong 24be12f4ac reset: c3: rename the reset signal macro [1/1]
PD#SWPL-74266

Problem:
rename the reset signal macro

Solution:
rename the reset signal macro

Verify:
c3_pxp

Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
Change-Id: I36fdabcc5c9d9599d417c19b1f0bad2f52abeb3d
2022-03-23 00:05:29 -07:00
Zelong Dong 97371ec8cd reset: c3: support reset driver [1/1]
PD#SWPL-74266

Problem:
need to support c3 reset driver

Solution:
add reset dt-bindings and dts node for c3

Verify:
c3_pxp

Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
Change-Id: I39f9dc7313002bf003cbc638d8835ef7ab5cbc4b
2022-03-22 04:07:26 -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
Shunzhou Jiang 1f6f790fd0 c3: add c3 clock tree [1/1]
PD#SWPL-74257

Problem:
add c3 clock tree

Solution:
add c3 clock tree

Verify:
pxp

Change-Id: I21b7921097ffb5bd91e3fad8f6a504b8912f13a5
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2022-03-20 04:29:24 -07:00
Shunzhou Jiang 0f8f7772eb c3: add c3 power domain [1/1]
PD#SWPL-74283

Problem:
c3 power status verify

Solution:
add c3 power status verify

Verify:
pxp

Change-Id: I4d2866c26bc0b9935a302bec3371ef580c84e8da
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2022-03-18 10:24:03 +08:00
Qianggui Song bd77a56278 pinctrl: add pinctrl driver for c3 [1/1]
PD#SWPL-74259

Problem:
1. need to support c3 pinctrl
2. KASAN error

Solution:
1. add c3 pinctrl driver
2. unmask name feature and add it later

Verify:
c3_ptm

Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Change-Id: I51069579fa5cc0bdda4aec3e3e690c903010f836
2022-03-17 00:28:05 -07:00
qinglin.li 99e0de0d10 printk: fix printk length and count Re-add [2/2]
PD#SWPL-70486

Problem:
printk length and count Re-add

Solution:
fix printk length and count Re-add

Verify:
c2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I5ca8b883b4dc931c4d3d61381793fb1917247d23
2022-03-11 01:31:49 -07:00
jian zhou 16215b0bf8 audio: porting amaudio audiodsp audioinfo [1/1]
PD#SWPL-74329

Problem:
porting amaudio audiodsp audioinfo for 5.15

Solution:
porting amaudio audiodsp audioinfo from kernel 5.4

Verify:
s4d and C2 AF400

Change-Id: I2e68d726437802e42dd2da879387955ea471a31c
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2022-03-11 00:18:11 -07:00
Jianxiong Pan 57ba3b1027 mm: arm32: add user fault debug support. [2/2]
PD#SWPL-73676

Problem:
need add user fault function.

Solution:
add user fault debug.

Verify:
local.

Change-Id: Iee06a7ca439673833662f9cc3c83010ad81121a3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-10 00:34:08 -07:00
binbin.wang 01e7c2aee7 PM: C2: Porting pm driver for C2 [1/1]
PD#SWPL-73763

Problem:
Porting pm driver

Solution:
Porting

Verify:
none

Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
Change-Id: I6801f5595a293bdb2e7940d020d7e75397c9b0d8
2022-03-06 19:22:04 -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 71008eab74 mm: save wasted memory by slab. [2/2]
PD#SWPL-73422

Problem:
When driver/kernel call kmalloc with large size, memory may waste
if size is not equal to 2^n. For example, driver call kmalloc with
size 129KB, kmalloc will allocate a 256KB memory block to caller.
Then 127kb memory will be wasted if this caller do not free it.

Solution:
Free tail of slab memory if size is not match to 2^n. This change
can save about 900KB memory after boot, and more than 100KB durning
runtime.

Verify:
local.

Change-Id: I19cfbdddc92b1c2050cbc17ea65feb4b01f0445d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-06 18:36:14 -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
he.he 4851cd2970 usb: support USB for C2 [1/1]
PD#SWPL-71865

Problem:
support USB for C2

Solution:
support USB for C2

Verify:
C2

Signed-off-by: he.he <he.he@amlogic.com>
Change-Id: I4e9b2823016e1296bf25281a38f69a8fe08e9b22
Signed-off-by: he.he <he.he@amlogic.com>
2022-03-03 01:05:46 -07: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
wanwei.jiang eb590ede93 freertos: add module to bring cpu1 to linux [1/2]
PD#SWPL-71741

Problem:
add module to bring cpu1 to linux

Solution:
add module to bring cpu1 to linux

Verify:
C2 AF400

Change-Id: Iac78df21a1edc46a158d78339be7bc0d394a658b
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-28 05:27:29 -07:00
Jianxiong Pan 5ff1e95368 mm: forward memory reclaim process. [1/2]
PD#SWPL-73189

Problem:
memory reclaim process is usually do when first allocate failed from buddy.
This will cause some process crash especially when memory is low, because
there is not enough time to do reclaim process.

Solution:
try to wake up kswapd process to reclaim memory if free memory is less
than high water mark. After apply this change, free memory is usually
keeps high than high_water mark.

Verify:
local.

Change-Id: I9c5f90bba778aacfe21aacb332ed19ad162b048b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-02-27 23:18:43 -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