MLK-21828-1 uclass: cpu: Add new API to get udevice for current CPU
authorYe Li <ye.li@nxp.com>
Fri, 8 Mar 2019 07:55:50 +0000 (23:55 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 08:50:27 +0000 (01:50 -0700)
commit53cc0b214c0ebb057b72b93071980d3ceab9e655
tree85e72b99d6a4fcf2eebc56361d4ed02e05f58dc8
parenta0ae3c321517a1279751130d0d8a264e558f55dd
MLK-21828-1 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.
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.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/cpu/cpu-uclass.c
include/cpu.h