]> Git Repo - J-u-boot.git/commit
uclass: cpu: Add new API to get udevice for current CPU
authorPeng Fan <[email protected]>
Sun, 3 May 2020 13:58:47 +0000 (21:58 +0800)
committerStefano Babic <[email protected]>
Sun, 3 May 2020 13:45:49 +0000 (15:45 +0200)
commit4c809aee50f5128f815a7f272cdf2d30a1e1e76e
tree41fba222d2362cf5efe94369a81b3828703c3b95
parentd8e775539e6d69a2bf9d4de721f6ad1560de7823
uclass: cpu: Add new API to get udevice for current CPU

When running on SoC with multiple clusters, the boot CPU may
not be fixed, saying booting from cluster A or cluster B.
Add a API that can return the udevice for current boot CPU.
Cpu driver needs to implement is_current_cpu interface for this
feature, otherwise the API only returns the first udevice in
cpu uclass.

Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Ye Li <[email protected]>
drivers/cpu/cpu-uclass.c
include/cpu.h
This page took 0.034786 seconds and 4 git commands to generate.