Commit Graph

20 Commits

Author SHA1 Message Date
Yu Tu aeef87475b uart: clean coverity [1/1]
PD#SWPL-190834

Problem:
clean coverity

Solution:
modified code

Verify:
sc2

Change-Id: I401efec8dcdee6f0c0dae6a5e4d6117eae231c3a
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-30 19:01:47 -07:00
Dezhen Wang 51790a2f04 bringup: arm32bit on kernel6.12 [1/1]
PD#SWPL-188330

Problem:
arm32bit on kernel6.12

Solution:
1. modify build script
2. save defconfig for a32_base_defconfig
3. sync amlogic_gki.fragment to amlogic_a32.fragment
4. disable below configs:
CONFIG_AMLOGIC_FILE_CACHE
CONFIG_AMLOGIC_WIRELESS
CONFIG_AMLOGIC_MEMORY_EXTEND
CONFIG_AMLOGIC_PAGE_TRACE
CONFIG_AMLOGIC_SLAB_TRACE
CONFIG_AMLOGIC_CMA
CONFIG_AMLOGIC_VMAP

Verify:
local

Change-Id: I59089de925535a9999e808d0c98f7b49d9f86b82
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-10-10 21:22:47 -07:00
Wanwei Jiang 911eeadc02 bringup: upgrade kernel from 6.6.10 to 6.6.11 [1/1]
PD#SWPL-183292

Problem:
upgrade kernel from 6.6.10 to 6.6.11

Solution:
1. modify auto patches
2. modify the code due to the change of
the remove function in struct platform_driver
3. modify the code due to the change of
the match function in struct bus_type
4. modify some page function to folio function
5. modify spi module due to some functions changed

Verify:
local

Change-Id: I92c266b6a1bbae363abd0ff50d7f3037e90bc624
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-26 15:05:50 +08:00
Yu Tu e7bd982098 serial: sc2 bringup uart on kernel6.12 [1/1]
PD#SWPL-185209

Problem:
sc2 bringup uart on kernel6.12

Solution:
Suitable for the uart driver

Verify:
sc2_ah212

Change-Id: I76cc91e6cb750f0ecbd7d03a1be586c7703d1e71
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-09-10 16:44:27 +08:00
Wanwei Jiang 19a065f4cf bringup: setup development environment for the common15-6.12 kernel [1/1]
PD#SWPL-183292

Problem:
setup development environment for the common15-6.12 kernel

Solution:
1. porting 01_env patches
2. modify build script
3. porting tools patches
4. porting serial driver
5. enter console

Verify:
sc2

Change-Id: Id90b05130f2d3d200cfd788de348259249e76379
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-09 19:31:31 +08:00
qiankun.wang 39148c4643 iotrace: iotrace vendor hooks and optimization [1/1]
PD#SWPL-149337

Problem:
iotrace read/write use vendor hooks.
iotrace optimization

Solution:
iotrace read/write use vendor hooks.
iotrace optimization

Verify:
sc2_ah212

Change-Id: If69ed5dce03ffa53f1c4819659fb80dfcad767c5
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-01-29 04:02:16 -07:00
Dezhen Wang bcfa0ee2e4 bring up: revert compatibility code for kernel 6.6 [1/1]
PD#SWPL-151245

Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.

Solution:
revert compatibility code for kernel 6.6.

Verify:
local

Test:
local

Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-11 18:46:45 -07:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08:00
qiankun.wang a384b208bd sysrq: sysrq can be triggered by keyboard. [1/1]
PD#SWPL-117073

Problem:
sysrq can't be triggered by keyboard at T7C.

Solution:
fix the dtsi and the uart to support sysrq.

Verify:
T7C

Change-Id: I5ab7d7873e19d35ab3653e84ae4dd60deddf6d93
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-04-05 20:14:14 -07:00
Yu Tu 0779acf192 uart: add uart config for g12b and sm1 [1/1]
PD#SWPL-104284

Problem:
need add g12b and sm1 uart support

Solution:
add uart config for g12b and sm1

Verify:
g12b

Change-Id: Ic96c0fab5925188fb2f746a0d610223fadb675d7
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-04-04 19:35:44 +08:00
Yu Tu aeed0f6d77 uart: add uart driver for t7 [1/1]
PD#SWPL-94190

Problem:
check t7 uart driver

Solution:
add uart driver support

Verify:
t7

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: I05daa103f5fdbe4fcfe680cce44c78b4cea244d4
2022-12-02 14:04:52 +08: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
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
Yu Tu 92321736b9 uart: C3: add config in dts [1/1]
PD#SWPL-84754

Problem:
C3 uart not config

Solution:
add correct config in dts

Verify:
AW419-C308L

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: I2234309f7bb781214ae195143b46ead8ece0c389
2022-06-30 18:20:41 +08:00
Yu Tu 360439985e uart: rename ttyAML to ttyS [1/1]
PD#SWPL-71726

Problem:
need rename ttyAML to ttyS

Solution:
rename ttyAML to ttyS

Verify:
s4d and C2 AF400

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Change-Id: Ic20db91a89574de8b4f51f771f98e172721ad332
2022-02-25 00:31:33 -07:00
wanwei.jiang 7ef5fd4983 build: directory customization [1/3]
PD#SWPL-72631

Problem:
common, build and common_drivers directories are not under the same directory

Solution:
common, build and common_drivers directories customization

Verify:
s4d and C2 AF400

Change-Id: I8e29737a0a791d58454691e922dda949098595bb
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-22 11:00:37 +08:00
qinglin.li 7c6316bebd printk : printk optimization [2/2]
PD#SWPL-70486

Problem:
use common tag in driver when printf

Solution:
set common pr_fmt in driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2
2022-02-14 19:55:32 -07:00
qinglin.li afe35bdd7f printk : printk optimization [1/2]
PD#SWPL-70486

Problem:
printk optimization

Solution:
modify the print level as a debug

Verify:
local check

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I8b92a33555103ef75c91217086efb9b85843d3c7
2022-02-14 19:30:13 -07:00
wanwei.jiang 45926270f2 serial: modify config name and select some config [1/1]
PD#SWPL-64397

Problem:
1. modify config name and select some config

Solution:
1. modify config name and select some config

Verify:
s4d

Change-Id: I165ece6c465bb5077df8daf11b82e1ea55aaf989
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-13 19:51:50 +08:00
wanwei.jiang 1fdb3a336b config: follow porting guide [1/1]
PD#SWPL-67821

Problem:
follow the configure rules

Solution:
1. follow the configure rules
2. follow the module name rules
3. follow the directoy rules

Verify:
s4d

Change-Id: Iac68261fe7ce994240fcab2c6edc1f283a719b3d
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-17 19:22:25 +08:00