Commit Graph

24 Commits

Author SHA1 Message Date
wanwei.jiang 08a2acfaea reboot: porting reboot driver [1/1]
PD#SWPL-70992

Problem:
porting reboot driver

Solution:
1. porting reboot driver
2. ptimizing log printing

Verify:
s4d

Change-Id: I51bf865af792c01e5be6c3a6d0bd069fa1b9f2fe
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-24 13:54:47 +08:00
Long Yu 0531d3b475 MMC: porting mmc driver [1/1]
PD#SWPL-68831

Problem:
porting mmc driver

Solution:
porting mmc driver

Verify:
s4d

Change-Id: If21f1e1300b1ee8393e24f8bc1f857497a3f975f
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-01-20 22:50:43 -07:00
wanwei.jiang 82c658e68b thermal: porting thermal driver [1/1]
PD#SWPL-68630

Problem:
porting thermal driver

Solution:
1. porting thermal driver
2. modify the function type of the member of
struct thermal_cooling_device_ops
state2power
power2state
get_requested_power
3. modify the function(cpu_hotplug.c) interface
cpu_up() --> add_cpu()
cpu_down() --> remove_cpu()
4. modify config and move module_init from meson_cooldev.c to meson_tsensor.c
5. modify pr_info() --> pr_debug() when probe

Verify:
s4d

Change-Id: I5eead0120dbc826cbb4282d28d7531018c826025
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-14 18:39:57 +08:00
wanwei.jiang 1f3df6f810 gkitool: driver optimization [1/1]
PD#SWPL-68520

Problem:
driver optimization

Solution:
1. read command line from bootargs nor /proc/cmdline
2. parse command line to param and value
3. support early_param and __setup
4. support module_param
5. use pr_debug nor gki_tool_debug
because can't pass parameters to it from the command line

Verify:
s4d

Change-Id: Ib2d7915018e3c1a70284340b30bf929e6bb64b41
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-13 15:40:36 +08:00
wanwei.jiang 5b9119c59f irblaster: porting irblaster driver [1/1]
PD#SWPL-69666

Problem:
porting irblaster driver

Solution:
porting irblaster driver

Verify:
s4d

Change-Id: If15957c9c4072bb08bf5454cc3e81eac646eb1ad
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-11 20:46:44 +08:00
qinglin.li c1a98e33cb ddr_tool: porting ddr_tool driver [1/2]
PD#SWPL-69189

Problem:
porting ddr_tool driver

Solution:
porting ddr_tool driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I16466f62bffb8b6fd537e78f793ca555d2df6e81
2022-01-10 17:05:09 +08:00
wanwei.jiang d607696240 jtag: porting jtag driver [1/1]
PD#SWPL-69190

Problem:
porting jtag driver

Solution:
porting jtag driver

Verify:
s4d

Change-Id: Icf0b8be00045444e71c6779f9bf97d3f5c7756cb
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-05 17:07:20 +08:00
qinglin.li 7231e83d7f mailbox: porting mailbox driver [1/2]
PD#SWPL-65955

Problem:
porting mailbox driver

Solution:
porting mailbox driver

Verify:
s4d-ap222

Change-Id: I4dc5a60e588c54551f835af15b824bbb06877bb6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-01-04 18:10:30 +08:00
wanwei.jiang 17f72adc13 efuse_unifykey: porting efuse_unifykey driver [1/1]
PD#SWPL-69066

Problem:
porting efuse_unifykey driver

Solution:
1. porting efuse_unifykey driver
2. pfn_valid -> pfn_is_map_memory
3. use secmon driver interface in efuse_api.c
4. add <linux/compat.h> for compat_ptr
5. add <crypto/sha256_base.h> for SHA256_DIGEST_SIZE
6. reduce the print level in the probe function

Verify:
s4d

Change-Id: Ia9833a2ad0d0bc0f751624c65ccefd92bdc3276b
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-04 14:07:33 +08:00
wanwei.jiang a3ad4649bf pwm: porting pwm driver [1/1]
PD#SWPL-67421

Problem:
porting pwm driver

Solution:
porting pwm driver

Verify:
s4d

Change-Id: Ie5d4b92fa457ee98fb1f81d4446e1a4f38047c50
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-29 14:19:59 +08:00
wanwei.jiang 23ae695710 gkitool: fix cfi and string parsing issue [1/1]
PD#SWPL-68520

Problem:
load module fail

Solution:
verified with amlogic-input-ir.ko
1. fix cfi issue
2. fix string parsing issue

Verify:
s4d

Change-Id: Ia681e65d816d26ce69c174fa47e1a0884ab99dcc
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-28 15:33:27 +08:00
wanwei.jiang c3212056eb gkitool: porting gkitool driver [1/1]
PD#SWPL-68520

Problem:
porting gkitool driver

Solution:
porting gkitool driver

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Iaa98e45633199814367ed1e63eee0a8aaaca36d6
2021-12-23 21:06:08 +08:00
wanwei.jiang 4c8cc1d42f tee: porting tee driver [1/1]
PD#SWPL-68397

Problem:
porting tee driver

Solution:
porting tee driver

Verify:
s4d

Change-Id: I048b21d639cf3903daf820ce555e3526e0539dab
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-22 19:29:04 +08:00
wanwei.jiang 7f5461b0f1 spi: porting spi driver [1/1]
PD#SWPL-68123

Problem:
porting spi driver

Solution:
porting spi driver

Verify:
s4d

Change-Id: I846bf0d796774ed5c85be80ec9dcba5600551da9
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-22 15:48:10 +08:00
wanwei.jiang 7d95201ddd gpio: porting gpiolib function [1/1]
PD#SWPL-65870

Problem:
add function gpiod_set_pull

Solution:
add function gpiod_set_pull

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Id027b5b1abfb675445ff01fc8faaa207147a8954
2021-12-21 09:51:07 +08:00
wanwei.jiang 7c6fe06dc6 pm: porting pm driver [1/2]
PD#SWPL-68037

Problem:
porting pm driver

Solution:
1. porting pm driver
2. modify device attribute to class attribute

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: If5fa4dbdca1d77ba603d9b5f8374d3f8ac55db2a
2021-12-20 16:31:52 +08:00
wanwei.jiang 098108a06e cpuinfo: porting cpuinfo driver [2/2]
PD#SWPL-67677

Problem:
modify the code to meet the checkpatch requirements

Solution:
1. modify code style
2. export cpuinfo_get_chipid
3. print cpuinfo_chip_id

Verify:
s4d

Change-Id: I23db8e3efaf1d634a88d2970c1f183b9fad21b22
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-15 15:59:20 +08:00
wanwei.jiang 7eaa5e3d6c cpuinfo: porting cpuinfo driver [1/2]
PD#SWPL-67677

Problem:
porting cpuinfo driver

Solution:
porting cpuinfo driver

Verify:
s4d

Change-Id: I2e137208d4ded6143d288c1ea9f1bf481e84f019
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-15 15:59:07 +08:00
qinglin.li f6e7813927 power: modify the code to meet the checkpatch requirements [1/1]
PD#SWPL-66014

Problem:
modify the code to meet the checkpatch requirements

Solution:
modify the code to meet the checkpatch requirements

Verify:
local check

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I1e9dca5938bcde461e9403b5df7bc9a0f8c4d1bf
2021-12-10 16:11:16 +08:00
qinglin.li 0e32a70a27 power: porting power driver [1/2]
PD#SWPL-66014

Problem:
porting power driver

Solution:
add 1 power drivers
amlogic-power-common.ko

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I8af5b5b5eeba4686cf0c09604cd77d2a9c19650f
2021-12-10 16:09:07 +08:00
wanwei.jiang d8cfbc189b secmon: init secmon driver [1/1]
PD#SWPL-66601

Problem:
porting secmon driver

Solution:
porting secmon driver, and modify function:
dma_alloc_from_contiguous() -> dma_alloc_coherent()

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ibe8cee8b91596dcb4caa14c254453faf37425d97
2021-12-09 15:10:33 +08:00
wanwei.jiang 6c0e6a8704 irqchip: Modify the code to meet the checkpatch requirements [1/1]
PD#SWPL-65807

Problem:
Modify the code to meet the checkpatch requirements

Solution:
git format-patch -1 --stdout | ../common/scripts/checkpatch.pl --strict -
The following items have not been repaired
1. DT compatible string

Verify:
local check

Change-Id: Ibde323f01e9daee35c521db29cefff9ffa9da2c9
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-01 13:34:25 +08:00
wanwei.jiang 1c89d857e7 irqchip: init gpio irq driver [1/1]
PD#SWPL-65807

Problem:
init gpio irq driver

Solution:
add 1 driver
amlogic-irqchip-common.ko

Verify:
s4d

Change-Id: I589992db8235c3e335e4e444791de3f73538db63
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-01 13:34:17 +08:00
wanwei.jiang 7bd15c52a3 clk: init clock driver [1/1]
PD#SWPL-65394

Problem:
init clock driver

Solution:
add 2 clock driver
amlogic-clk-common.ko
amlogic-clk-s4.ko

Verify:
s4d

Change-Id: Icedcea7d56026fb570c5cf305e47f1884d4aa87b
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-11-29 19:00:07 +08:00