Commit Graph

15 Commits

Author SHA1 Message Date
Qianggui Song ede7c11019 dtb: t6w: add device tree to bringup [1/1]
PD#SWPL-227611

Problem:
Bringup t6w for kernel 6.12

Solution:
Add and modify files to bringup kernel 6.12 for t6w

Verify:
t6w_bs311

Change-Id: I423dafe205b2fd317780f9185253eca9ff94a8e5
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2025-08-15 01:12:25 -07:00
Wanwei Jiang 0ebbe91209 build: supports direct compilation using tools/bazel [1/4]
PD#SWPL-211590

Problem:
supports direct compilation using tools/bazel

Solution:
1. Default is the trunk's kernel, and can also be configured to
use the project kernel.
2. Default is the trunk's build.config.project, and can also be configured to
use the project's build.config.project.
3. Default is the trunk's Kconfig.ext_modules, and can also be configured to
use the project's Kconfig.ext_modules.
4. Default is the trunk's project.bzl, and can also be configured to
use the project's project.bzl. For other drivers' BUILD.bazel,
currently the corresponding GKI_CONFIG is automatically selected
based on the project. Other members are not distinguished at present.
5. Package all variables in project.bzl into a struct called project_configs,
which facilitates accessing the corresponding variables on a per-project basis.
6. Remove the DDK dependency check mechanism. However,
since it is protected by the configuration of the config, the impact is
not significant.
7. Change kernel_build to kernel_select in ddk_module.
8. support build command:
tools/bazel run --config=adt4 //project/sei/adt4:adt4_dist
./mk.sh --package adt4
9. Optimize the Bazel configure settings.
10. Optimize the copying of ko sources.
11. Optimize the copying of ko sources with debugging symbols.
12. Optimize the paths of some temporary files, so that the files are located
in the out directory instead of the /tmp directory.

Verify:
local

Test:
PB

Change-Id: I38f631215a41156910ae378c34c92de5a255309f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-05-12 18:25:48 -07:00
qinglin.li 9294f0bbf9 scripts: use kernel build ddk_module_headers [1/1]
PD#SWPL-208157

Problem:
use kernel build ddk_module_headers

Solution:
use kernel build ddk_module_headers

Verify:
local

Test:
local

Change-Id: I68cb33366c826fcd58fdb0a040229011ea669064
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-04-15 04:35:40 -07:00
Dezhen Wang 054039b58e scripts: add Kconfig and Makefile to common kernel source [1/1]
PD#SWPL-206164

Problem:
ddk_module cannot find Kconfig and Makefile in sub package

Solution:
add Kconfig and Makefile srcs to common kernel srcs

Verify:
local

Test:
local

Change-Id: I3e71b7e1ddea15e9d32efc0e6cb7e8e81b95b793
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-03-26 02:30:24 -08:00
Wanwei Jiang 22a093e819 ddk: optimize ddk build [1/1]
PD#SWPL-195997

Problem:
optimize ddk build

Solution:
optimize ddk build

Verify:
sc2

Test:
PB

Change-Id: I662f1e2a33ae0e5bdae97a70deb624964c5e1c5a
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-03-03 22:25:19 -08:00
Wanwei Jiang cadab66c37 build: support ddk [1/1]
PD#SWPL-195997

Problem:
the drivers in the common_drivers directory can be built using DDK
with gki_20 mode, it is also compatible with the original build.

Solution:
add BUILD.bazel and modify build script

Verify:
sc2

Test:
PB

Change-Id: Ie138e63f4eec8715d976d421dc8a431bcfadd859
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-02-25 07:17:36 -08:00
Wanwei Jiang 621ac2f55c bringup: porting usb and wireless modules [1/1]
PD#SWPL-183292

Problem:
porting usb and wireless modules

Solution:
1. porting usb and wireless modules
2. setting the default value of CONFIG_AMLOGIC_KERNEL_VERSION as 16612
3. modify the reset Makefile

Verify:
local

Change-Id: Ie3c99a75a1f3f439ebaa8d5cc852a654465fb379
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-14 19:27:18 -07:00
Zelong Dong 2064f0eb3f reset: add reset controller support for c1 [1/1]
PD#SWPL-121119

Problem:
don't support c1 platform

Solution:
add reset controller support for c1

Verify:
c1_ae400

Change-Id: Iaac065cd9ecc5f7e86b5f3f58941d41a3dac2849
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-07-07 12:45:20 +08:00
Qianggui Song 6403737bed zapper: Memory optimizations after txhd2 merge trunk [1/1]
PD#SWPL-130072

Problem:
Zapper size increase after txhd2 merge back to trunk

Solution:
optimize some code and add macro to reduce size
module: pinctrl, clk-measure, adc, audio, tvin, dtv_demod
ddr_port_desc, and amvecm

Verify:
Zapper

Change-Id: I0c781a657811cf664ffdbb4d9c18060e9b39554e
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-07-05 03:10:39 -07: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
Zelong Dong a820aa97ec reset: t5m: support reset driver [1/1]
PD#SWPL-98119

Problem:
need to support t5m reset driver

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

Verify:
t5m_pxp

Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
Change-Id: I48bf1c0145e1af0bf011acb08c3b123d7f2560da
2022-12-30 15:46:45 +08:00
Qianggui Song e92d93f7e5 reset: add support a1 reset [1/1]
PD#SWPL-77440

Problem:
a1 reset bringup

Solution:
enable a1 reset

Verify:
A1_ad 401

Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Change-Id: Ic39cf0715cf8356d4fa37fc17c9391ead5cc1393
2022-04-21 22:26:14 -07: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
Lei Zhang dc9a52874b reset: support reset driver for c2 [1/1]
PD#SWPL-70933

Problem:
support reset driver for c2

Solution:
support reset driver for c2

Verify:
on C2 AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: Ib3d7d6d990b6ece9b789e40d2d6688f5764d1b7e
2022-01-21 05:22:01 -07:00
wanwei.jiang 85bcd942ed reset: porting reset driver [1/1]
PD#SWPL-69193

Problem:
porting reset driver

Solution:
porting reset driver

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ie21d57be13dd523cc0d3ce085297f8c3b1facdec
2022-01-07 17:38:40 +08:00