diff options
author | Tom Rini <trini@konsulko.com> | 2024-08-02 14:40:59 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-02 14:40:59 -0600 |
commit | 6becf9ba1ab82af6f4fcf9f4d0da38f9c75212d2 (patch) | |
tree | d684ddd8650880d0792445481c4e7e289fa2e473 /drivers/cpu/cpu-uclass.c | |
parent | a70d991212c9684e09ed80ece69ce1ff7bfd9f08 (diff) | |
parent | 0ee02e1c252da85a6ac75865ca33accde69072b7 (diff) |
Merge tag 'u-boot-imx-master-20240802' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/21846
- Convert warp7 to OF_UPSTREAM.
- Add 'cpu' command to imx8m and imx93.
- Enable CMD_ERASEENV for imx8mm/mp Phytec boards.
Diffstat (limited to 'drivers/cpu/cpu-uclass.c')
-rw-r--r-- | drivers/cpu/cpu-uclass.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index 16f8f2e5219..2c8e46c05e3 100644 --- a/drivers/cpu/cpu-uclass.c +++ b/drivers/cpu/cpu-uclass.c @@ -104,6 +104,16 @@ int cpu_get_vendor(const struct udevice *dev, char *buf, int size) return ops->get_vendor(dev, buf, size); } +int cpu_release_core(const struct udevice *dev, phys_addr_t addr) +{ + struct cpu_ops *ops = cpu_get_ops(dev); + + if (!ops->release_core) + return -ENOSYS; + + return ops->release_core(dev, addr); +} + U_BOOT_DRIVER(cpu_bus) = { .name = "cpu_bus", .id = UCLASS_SIMPLE_BUS, |