Commit Graph

14 Commits

Author SHA1 Message Date
Yu Tu 1243c9b5c5 uart: sometimes input not ok [1/1]
PD#SWPL-170825

Problem:
if print too many on boot stage, lead to serial can't go to console.

Solution:
UART tx and rx interrupt need to be turned on when a log print is
finished.

Verify:
s7d_bh201

Change-Id: Ic7e7b102172cedcf373549f2955ed81d687949b2
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-05-23 20:29:10 -07:00
qiankun.wang 89a73decb1 iotrace: iotrace vendor hooks and optimization [2/2]
PD#SWPL-142603

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-25 22:27:19 -07: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