mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 16:01:27 +00:00
cpu: sandbox: implement release_core callback
Add empty release CPU core function for testing. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f2c306cd99
commit
3694edcabc
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,11 @@ void cpu_sandbox_set_current(const char *name)
|
||||||
cpu_current = name;
|
cpu_current = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int cpu_sandbox_release_core(const struct udevice *dev, phys_addr_t addr)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int cpu_sandbox_is_current(struct udevice *dev)
|
static int cpu_sandbox_is_current(struct udevice *dev)
|
||||||
{
|
{
|
||||||
if (!strcmp(dev->name, cpu_current))
|
if (!strcmp(dev->name, cpu_current))
|
||||||
|
@ -58,6 +63,7 @@ static const struct cpu_ops cpu_sandbox_ops = {
|
||||||
.get_count = cpu_sandbox_get_count,
|
.get_count = cpu_sandbox_get_count,
|
||||||
.get_vendor = cpu_sandbox_get_vendor,
|
.get_vendor = cpu_sandbox_get_vendor,
|
||||||
.is_current = cpu_sandbox_is_current,
|
.is_current = cpu_sandbox_is_current,
|
||||||
|
.release_core = cpu_sandbox_release_core,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int cpu_sandbox_bind(struct udevice *dev)
|
static int cpu_sandbox_bind(struct udevice *dev)
|
||||||
|
|
Loading…
Add table
Reference in a new issue