summaryrefslogtreecommitdiff
path: root/include/cpu.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-08-02 14:40:59 -0600
committerTom Rini <trini@konsulko.com>2024-08-02 14:40:59 -0600
commit6becf9ba1ab82af6f4fcf9f4d0da38f9c75212d2 (patch)
treed684ddd8650880d0792445481c4e7e289fa2e473 /include/cpu.h
parenta70d991212c9684e09ed80ece69ce1ff7bfd9f08 (diff)
parent0ee02e1c252da85a6ac75865ca33accde69072b7 (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 'include/cpu.h')
-rw-r--r--include/cpu.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h
index 2077ff30634..0018910d61f 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -102,6 +102,15 @@ struct cpu_ops {
* if not.
*/
int (*is_current)(struct udevice *dev);
+
+ /**
+ * release_core() - Relase a CPU core to the given address to run application
+ *
+ * @dev: Device to check (UCLASS_CPU)
+ * @addr: Address to relese the CPU core
+ * @return 0 if OK, -ve on error
+ */
+ int (*release_core)(const struct udevice *dev, phys_addr_t addr);
};
#define cpu_get_ops(dev) ((struct cpu_ops *)(dev)->driver->ops)
@@ -164,4 +173,10 @@ int cpu_is_current(struct udevice *cpu);
*/
struct udevice *cpu_get_current_dev(void);
+/**
+ * cpu_release_core() - Relase a CPU core to the given address to run application
+ *
+ * @return 0 if OK, -ve on error
+ */
+int cpu_release_core(const struct udevice *dev, phys_addr_t addr);
#endif