Commit Graph

43 Commits

Author SHA1 Message Date
Xingxing Wang 69025f28c9 thermal: load thermal ko before mmc ko [1/1]
PD#SWPL-177584

Problem:
mmc ko need to read temperature to init

Solution:
load thermal ko before mmc ko

Verify:
sc2

Change-Id: Ic61ea462045435985d76bfc6050b310f1f3e97f2
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-07-30 00:40:42 -07:00
Yu Tu 6a27313b4c pcie: s6 pcie bringup [1/1]
PD#SWPL-172979

Problem:
need support pcie on s6

Solution:
s6 pcie silicon bringup

Verify:
s6_s905x5_bl208

Change-Id: Id806003e2c49b3af7406de2f79cd565729069cd3
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-07-05 10:44:46 +08: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
yiting.deng f61d85fdf5 clk: clean scmi related config [1/1]
PD#SWPL-170472

Problem:
scmi macro configuration is improper. For 64-bit only
need to configure CONFIG_COMMON_CLK_SCMI and for 32-bit
need to configure CONFIG_ARM_SCMI_PROTOCOL=y to
a32_base_defconfig

Solution:
fix it

Verify:
s7

Change-Id: I2cd9750fc59a85b1fba1b561569400c812e2cd3d
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-05-23 08:05:54 -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
Huqiang Qin 6c878f646b saradc: s7d: support saradc [1/1]
PD#SWPL-163056

Problem:
S7D Silicon Bringup.

Solution:
Add a new SARADC driver.

Verify:
S7D/BM201

Change-Id: I5049a6f741bcc72691c931bc10830b30dc53913c
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-04-17 19:31:21 +08:00
Junyi Zhao e08b41e579 i2c: no i2c in recovery mode [1/1]
PD#SWPL-161849

Problem:
no i2c in recovery mode

Solution:
add ko to load in recovery mode

Verify:
T7c an400

Change-Id: I14ab19508a45da0d0538c9ed95b75d266ce98046
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-03-21 03:51:01 -07:00
Jianxiong Pan 53afcf70d1 mm: userfault ko early loading. [1/1]
PD#SWPL-154394

Problem:
userfault load too late to print info.

Solution:
userfault early loading.

Verify:
local.

Change-Id: Icc654e4810be34e9ead575515a68a8491ace46a8
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-17 22:35:46 -07:00
qinglin.li 67127b1b77 dmc: tm2 dmc bring up [1/1]
PD#SWPL-143634

Problem:
tm2 dmc bring up
cpu info modules need to load earlier due to get cpu version

Solution:
tm2 dmc bring up
cpu info modules load earlier

Verify:
local

Change-Id: I0ce73c49a9c0aefb1d3beac3151eac20eec2b166
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-12-22 16:08:59 +08:00
Zhigang Yu 1fd8aed24e recovery: add gpio-regulator.ko for tfcard [1/1]
PD#SWPL-145798

Problem:
recovery can not load tfcard.

Solution:
add gpio-regulator.ko for ftcard.

Verify:
t7c

Change-Id: I059968f72f9011ab1df50eac3c706f772e218a95
Signed-off-by: Zhigang Yu <zhigang.yu@amlogic.com>
2023-12-13 20:59:05 -07:00
Yu Tu 6c9238f81c pci: fixed fake smmu question [1/1]
PD#SWPL-142366

Problem:
fake smmu for GKI2.0 cause problems

Solution:
modified load modules_sequence_list

Verify:
S5 and Sc2

Change-Id: I74f81c48437a5fab4e99c158ac350b3d05c856ee
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-10-12 20:54:34 -07:00
donghui.wang 84674ae270 ldim: remove ldim_fw.ko from modules load list [1/1]
PD#SWPL-131721

Problem:
remove ko from modules load list

Solution:
remove ko from modules load list

Verify:
t3

Change-Id: Ib925b3c7b13c1d7e64de9946b0142b7a1f42e429
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-26 22:03:35 -07:00
donghui.wang 7e1e3fb48e ldim: add ldim panel type for linux dts [1/1]
PD#SWPL-131721

Problem:
miss ldim panel type

Solution:
add panel type for ldim

Verify:
t3

Change-Id: I1efb09c2e080297529aea351a474f36286d367bb
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-17 06:14:33 -07:00
qi duan bd99c3aa78 USBNET: config usbnet to m [1/1]
PD#SWPL-134706

Problem:
usbnet can not use

Solution:
android defconfig change CONFIG_USBNET to m
and ko need to add list

Verify:
an400

Change-Id: I4e2e03b93b6a6f4ef750d31249da38ec7502f90e
Signed-off-by: qi duan <qi.duan@amlogic.com>
2023-08-08 08:09:27 -07:00
Wanwei Jiang 7c582c0027 customer: support customized modules loading sequence [1/3]
PD#SWPL-132930

Problem:
support customized modules loading sequence

Solution:
1. priority of module loading order files:
${MODULES_SEQUENCE_LIST} > scripts/amlogic/modules_sequence_list
2. solving the problem of bazel output directory
3. export GKI_MODULES_LIST

Verify:
ohm planck

Change-Id: I31951289377e880017fd49b245641c14e001ffe3
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-27 23:05:10 -07:00
qinglin.li afa7927a1f upgrade: kernel upgrade by May [1/1]
PD#SWPL-124098

Problem:
kernel upgrade by May

Solution:
kernel upgrade by May

Verify:
local

Change-Id: I19aa4e7ca1d6e43703f1752e3e46f8bdcaf8c08b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-05-24 04:48:18 -07:00
hongyu.chen1 0da7333732 T3X: add hwspinlock. [3/3]
PD#SWPL-111606

Problem:
add hwspinlock driver

Solution:
add hwspinlock driver

Verify:
mimic

Change-Id: I517b1a2a9b8500d7131c48afe47332e0ea3f56e7
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-05-18 21:08:38 +08:00
Wanwei Jiang 475245b5b3 system_dlkm: gki modules white list [1/2]
PD#SWPL-122842

Problem:
support gki modules white list

Solution:
support gki modules white list

Verify:
sc2

Change-Id: Iaea1035136a4000189d2aac4316e01884d8d2d0e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-05-15 00:25:12 -07:00
Jian Hu 301e4276c1 scripts: let aoclk insmod earlier than saradc [1/1]
PD#SWPL-121025

Problem:
saradc deferred probe panic after insmod
amlogic-adc.ko

Solution:
let aoclk insmod earlier than saradc

Verify:
t5w at301

Change-Id: I8ba994cab0a9cc2a7d5f82f5ff551a86925fda6a
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-04-24 00:43:05 -07:00
song.han 29925ebc8a debug: iotrace driver follow gki 2.0 [2/2]
PD#SWPL-109963

Problem:
iotrace driver need follow gki 2.0

Solution:
iotrace driver build to ko

Verify:
sc2_ah212

Change-Id: I472bc63b6594c58d7c94f74e1bf1a070978b20fd
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-20 06:15:21 -07:00
Wentao.Sun df3426ef7e module sequence: change optee sequence [1/1]
PD#RSP-5169

Problem:
tee protect gpu memory failed

Solution:
change optee sequence

Verify:
Android T + sc2_ah212

Change-Id: Iac9d626383a87ee959815a9593440462240a4937
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-04-16 22:35:08 -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
Yu Tu 77b03370e5 pcie: pcie module name not match [1/1]
PD#SWPL-115979

Problem:
pcie module name not match

Solution:
modified to init name

Verify:
t7

Change-Id: I873fbc2215de21ed5d64f2ba26ae82e7ec26ff46
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-04-15 08:59:04 +08:00
Yu Tu 908927c13e pcie: add pcie driver for s5 [1/1]
PD#SWPL-108762

Problem:
need bringup s5 pcie

Solution:
add s5 pcie driver

Verify:
s5_208

Change-Id: Ifc3430a5b01486faab24ef4222fb74ccaa3fd0ec
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-04-15 08:59:03 +08:00
hongyu.chen1 8bdf6c54a3 S5: add hwspinlock. [1/1]
PD#SWPL-108727

Problem:
need hwspinlock.

Solution:
add hwspinlock.

Verify:
ax201

Change-Id: Ibb3970f9f4bbc325548d35e0401bd135dbf8da5a
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-04-15 08:55:56 +08:00
junwei.ma 69cacc04bf ISP: G12B & SM1 Bringup - Kernel - Display - mipi camera of SM1 [1/1]
PD#SWPL-108141

Problem:
5. 15 no camera driver

Solution:
porting camera driver to kernel-5.15

Verify:
ok

Change-Id: I92789c946a8f2456f6bb68adc52ece77cd730f81
Signed-off-by: junwei.ma <junwei.ma@amlogic.com>
2023-04-04 19:48:16 +08:00
hongyu.chen1 f38f2c2a81 sm1: add power domain. [1/1]
PD#SWPL-104278

Problem:
add power domain.

Solution:
add power domain.

Verify:
sm1

Change-Id: I0aab1e2e3b65d279a4194095ded67b063cdfb7f7
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-04-04 19:35:44 +08:00
Dezhen Wang 45dfcb0c98 Script: add function of insmod ko according to need of service loaded [2/11]
PD#SWPL-111103

Problem:
Need to add the function of insmod ko by service itself when it is loaded

Solution:
copy the files from service_module to modules to support the function.
adding new function in amlogic_utils.sh script and add the interface in
Android code

Verify:
sc2

Change-Id: Ifd5220abe93eae44d274ac7ab1678acf7b476f60
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-03-09 21:20:42 -08:00
qinglin.li dba324feb1 script: recovery mode load all module [1/1]
PD#SWPL-113626

Problem:
1.recovery mode load all module
2.t7c usb not work in fastboot

Solution:
1.add control when RECOVERY_MODULES_LOAD_LIST is NULL
2.t7c usb need dwc_otg driver

Verify:
local

Change-Id: Ie3165280d3d89c600f4c4d591b3f6fb4565d5da1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-03-03 04:12:57 -08:00
qinglin.li 77dd0867cb usb: load usb ko in first stage [1/1]
PD#SWPL-107415

Problem:
NTFS usb connect reboot

Solution:
load usb ko in first stage

Verify:
T3

Change-Id: Iea8c505a3ba5f3a9f31230676cf3f8fe0b44ea50
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-01-12 14:56:50 +08:00
qinglin.li 2f20b456a1 usb: load usb ko second stage first [1/1]
PD#SWPL-107415

Problem:
NTFS usb connect reboot

Solution:
load usb ko first in second stage

Verify:
T3

Change-Id: I6380d8c633b7d80858b3224b60b719a685808bd1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-01-11 03:29:21 -08:00
Ao Xu 739dc2ae9b drm: rename drm driver name to aml_drm [1/1]
PD#SWPL-106737

Problem:
5.4 module name is not same with 5.15
user app cannot find the module parameter file.

Solution:
rename drm driver name to aml_drm

Verify:
ah212

Test:
DRM-OSD-31

Change-Id: I71cf2a9c3e85157b63fc30b14702b8d3b640315a
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-01-04 20:11:38 -08:00
bo.li a5b52569c0 wifi: adjust the insmod order of pcie and wireless drivers [1/1]
PD#SWPL-106037

Problem:
w2 pcie enumeration failed

Solution:
adjust the insmod order of pcie and wireless drivers

Verify:
t210(s905x4+w2 Revb)

Change-Id: I6ed78f66a10de5314f7e7e272c77efb8cf3da1cb
Signed-off-by: bo.li <bo.li@amlogic.com>
2023-01-04 06:16:02 -08:00
Wanwei Jiang 571dde66c3 script: optimize android driver loading [1/2]
PD#SWPL-101063

Problem:
android starts slowly

Solution:
1. add the recovery driver array, and make recovery's modules.order
2. put the necessary drivers in the first stage, the android start faster

Verify:
sc2

Change-Id: I00276ff6b9d4e38b4bb31c5f5b09dfd76317c994
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-12-24 00:21:47 -08:00
qinglin.li 4cd82cccfc module: update module list [1/1]
PD#SWPL-95684

Problem:
module list should be update after module merge

Solution:
update module list

Verify:
sc2

Change-Id: I37fab9ca3d6701283af6d46321af9f65d2656e13
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-09 06:16:21 -07:00
Wanwei Jiang bf119d2c23 scripts: fix build error [1/1]
PD#SWPL-96062

Problem:
build error "depmod: WARNING:" when creating initramfs

Solution:
the data of system_dlkm_modules which from modules.order is error

Verify:
sc2

Change-Id: Iecd0452932ff36bd36580b7b2152bf6d24b59834
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-10-27 00:25:17 -07:00
Hanjie Lin e6d82ef16c debug: fix gki10 break issue [2/3]
PD#SWPL-94447

Problem:
debug break gki10

Solution:
1, support amlogic_debug build to module, amlogic_debug module
   includes debug_lockup, cpu_mhz and meson_atrace for now.
2, amlogic_debug some function still build in kernel but not break
   gki10, for example: irq_check function on builtin kernel code,
   module_debug, workqueue debug etc.
3, new config CONFIG_AMLOGIC_HARDLOCKUP_DETECTOR still builtin but
   not break gki.
4, other functions for example iotrace still under developing

Verify:
sc2

Signed-off-by: Hanje Lin <hanjie.lin@amlogic.com>
Change-Id: I9c11465e3e879f999ae6fd13dc12c044efd2417a
2022-10-14 16:53:03 -07:00
qinglin.li 6dbd19f6c4 module_list: optimization load list [1/1]
PD#SWPL-89845

Problem:
i2c need to before dvb-extern
rng load first can optimization 1.6s time

Solution:
fix i2c before dvb-extern
optimization time

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I058b9f75e90903ee0b0e2f61e0b85e5a2c329b53
2022-09-07 20:15:59 +08:00
qinglin.li 37caac235a scripts: fix fastboot update failed [1/1]
PD#SWPL-92909

Problem:
fastboot update failed

Solution:
add usb_otg.ko

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I070c2279f054a18f82f0e46c6b19c4aa9acbd67f
2022-09-07 20:06:44 +08:00
qinglin.li 4ea4809eb6 module: optimisation list of modules launched first [2/2]
PD#SWPL-89845

Problem:
optimisation list of modules launched first

Solution:
optimisation list of modules launched first

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I49fe2dc30588c5118540b378ae9ab26d6148f25e
2022-09-07 20:06:44 +08:00
wanwei.jiang 6ea233338e serial: change the build mode of serial driver [1/1]
PD#SWPL-89180

Problem:
change the build mode of serial driver

Solution:
1. --gki: don't build early console, build uart driver as module,
for android gki
2. --gi_user: buildin early console, build uart drvier as module,
for android
3. --gki_userdebug: buildin early console, buildin uart driver,
for fatloader

Verify:
sc2

Change-Id: I610c954d7b413265d7aa15f0ee5ca670895bacb5
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-09-07 20:06:43 +08:00
wanwei.jiang 50759e133a script: optimize output [1/1]
PD#SWPL-64232

Problem:
ramdisk and vendor related scripts and modules
are in the "modules" folder

Solution:
1. create a ramdisk and vendor folder
2. put the file in the corresponding path

Verify:
s4d and C2 AF400

Change-Id: Id65df11fb6ecd922904c4ea6bd3db2cbf1980c30
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-03-23 22:21:20 -07:00
wanwei.jiang 0a8d6ee32d script: modules sequence list [1/1]
PD#SWPL-64232

Problem:
ramdisk modules sequence list
vendor modules sequence list

Solution:
1. ramdisk modules sequence list
2. vendor modules sequence list
3. delete needn't modules
4. delete other chip modules

Verify:
s4d and C2 AF400

Change-Id: Ibb5aed6509b7b18a920e58d507337d3b56f5af32
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-03-23 05:22:35 -07:00