History log of /rk3399_rockchip-uboot/drivers/cpu/rockchip_amp.c (Results 1 – 23 of 23)
Revision Date Author Comments
# 3792164f 15-Mar-2023 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Support armv8 boot cpu switch from EL2 to EL1

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ia0bde6a778b316aa9f33f29a5e2f749cf26d46cd


# 1dc5141f 07-Dec-2023 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Allow override kernel address from amp.img

- define "load = <...>;" to override "kernel_addr_r"
- define "load_c = <...>;" to override "kernel_addr_c"

Signed-off-by: Joseph Chen

cpu: rockchip amp: Allow override kernel address from amp.img

- define "load = <...>;" to override "kernel_addr_r"
- define "load_c = <...>;" to override "kernel_addr_c"

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0827758dc236daa7cf5e7d56ca6c99a32f35df90

show more ...


# f214eec9 16-Aug-2023 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Initial g_bootcpu.boot_on = 1

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I532c61f823709c8732db8509794d030714498bb3


# 4a758d95 04-Aug-2023 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Power down primary cpu if amp-dispatcher requires

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I597aee367fac8ec2a7db8355e679ba522e8ee911


# b8fb8531 22-Dec-2022 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Add standlone brought up support

Invoke fit_standalone_release() if you want to do something
after load.

"type" must be "standalone", "arch" must be "arm64" or "arm",
"cpu", "thu

cpu: rockchip amp: Add standlone brought up support

Invoke fit_standalone_release() if you want to do something
after load.

"type" must be "standalone", "arch" must be "arm64" or "arm",
"cpu", "thumb", "hyp" are dropped.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I071f9b55c0568fd3706597d6daab4438696ce763

show more ...


# 82b7aaed 23-Mar-2023 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Fix kernel entry according to images.ep

After kernel image relocation in board_quiesce_devices(), the real
kernel entry maybe not $kernel_addr_r.

Signed-off-by: Joseph Chen <chen

cpu: rockchip amp: Fix kernel entry according to images.ep

After kernel image relocation in board_quiesce_devices(), the real
kernel entry maybe not $kernel_addr_r.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I99d32c66d4b4973e428a7fb465927b9a0bbb0f51

show more ...


# 5f160584 05-Jul-2022 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: fix compile error

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I3fead434bd35d331c1219ec43b94737f2cea1b9d


# cc173a5c 24-Jun-2022 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Fix can't read cpu "id" property

Now kernel uses u64 to describe cpu id.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I221a266c32aaf91c75cdb00f6a25648e189a3694


# 043d91f2 19-May-2022 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Load image according to totalsize

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ie2e3eda3d968d5ccb32c5b2af6540528f5ebd189


# e47af7f2 21-Apr-2022 Jason Zhu <jason.zhu@rock-chips.com>

cpu: rockchip amp: fix buffer not cacheline align

If not align, error occur, like:

mmc_bread: Re-init mmc_read_blocks error

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ia9ab3bf9

cpu: rockchip amp: fix buffer not cacheline align

If not align, error occur, like:

mmc_bread: Re-init mmc_read_blocks error

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ia9ab3bf9129d0187c1bbb11594d39fb8e331e338

show more ...


# d184e484 30-Dec-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: add cpu boot-on control

If there are subnode under "/rockchip-amp/amp-cpus"
in kernel fdt, it means they are expected to be boot
by linux, so U-Boot don't boot it.

Otherwise we c

cpu: rockchip amp: add cpu boot-on control

If there are subnode under "/rockchip-amp/amp-cpus"
in kernel fdt, it means they are expected to be boot
by linux, so U-Boot don't boot it.

Otherwise we can add "boot-on = <..>" value in amp.its to
control boot it or not. If this prop is absent, it's treat
as "boot-on = <1>" by default.

Priority: kernel fdt > amp.its.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic0a86ab86140ea8a8546c670ab07bcca7d128c59

show more ...


# 187bcfa0 06-Apr-2022 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: Support 32-bit boot core jump

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If7980a4888bb128bfca496778cb7d8f131f4cc15


# 257f4b84 03-Sep-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: pass boot args for linux only

This check makes common ATF works normally in more situations.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0c06626e1216c0f63436b6

cpu: rockchip amp: pass boot args for linux only

This check makes common ATF works normally in more situations.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0c06626e1216c0f63436b68b9a85bb0204e6d3fa

show more ...


# 49cfbee5 01-Sep-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: setup sync bits for linux

This is an appointment on RK amp solution to handle
GIC configure competition.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ia23c5bdcba

cpu: rockchip amp: setup sync bits for linux

This is an appointment on RK amp solution to handle
GIC configure competition.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ia23c5bdcbae3450110762f9697da135939711497

show more ...


# bb4a1f43 11-Aug-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: support boot linux on cpu0 by nonboot cpu

Update its rules.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Idaf87f4e22f7140353e74a2fdd6ccb8e59ef2b88


# 6aef53bd 09-Jul-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: check boot cpu before sysmem alloc

If boot cpu is going to load and brought up linux, skip
sysmem alloc for it's amp firmware memory.

Signed-off-by: Joseph Chen <chenjh@rock-chip

cpu: rockchip amp: check boot cpu before sysmem alloc

If boot cpu is going to load and brought up linux, skip
sysmem alloc for it's amp firmware memory.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I364489d469f729c5008807f9fc0918f24ada86c5

show more ...


# 8223aa47 08-May-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: add arm64_switch_amp_pe()

Merge other API into this function.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ie7b3d53930b2ad7a7e60e6ad4e67fab74d2239c7


# 31f8f6eb 24-Feb-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: amp: support brought up rockchip fit image

./tools/mkimage -f amp.its -E -p 0xe00 amp.img

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Icdaf370900472622cf31df402aff84ecc6821fe4


# 39be8a08 07-Feb-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: support boot core0 as aarch32

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If2e74c0877c04c61cc219cda04682d26d6f957b2


# f06413e4 03-Feb-2021 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: support set PE state

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I6b5eb621af1472983cdfbaebfdaa61a4c85b1856


# 1a4f6af8 02-Mar-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 0df2c3df 07-Jan-2020 Joseph Chen <chenjh@rock-chips.com>

cpu: rockchip amp: add read_rockchip_image()

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1015178484053329c0e6d77169486b0305c4268e


# 4388deca 21-Mar-2019 Joseph Chen <chenjh@rock-chips.com>

dm: add amp uclass and rockchip amp driver support

- add amp uclass;
- add a simple rockchip amp driver.

An example for amps dts node configure:
amps {
compatible = "uboot,rockchip-amp";
status =

dm: add amp uclass and rockchip amp driver support

- add amp uclass;
- add a simple rockchip amp driver.

An example for amps dts node configure:
amps {
compatible = "uboot,rockchip-amp";
status = "okay";

amp@0 {
description = "mcu-os1";
partition = "mcu1";
cpu = <0x1>; // this is mpidr!
load = <0x800000>;
entry = <0x800000>;
memory = <0x800000 0x400000>;
};

amp@1 {
......
};

......
};

U-Boot loads "mcu-os1" firmware to "0x800000" address from partiton
"mcu1" for cpu[1], the cpu[1] entry address is 0x800000. And
U-Boot reserve memory from 0x800000 with 0x400000 size in order
to make it invisible for kernel.

Please use rockchip tool "mkkrnlimg" to pack firmware binary, example:
./scripts/mkkrnlimg mcu-os1.bin mcu-os1.img

Change-Id: I127d5d9f460ec0c1812a76fb4c3702e82f21c9a6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...