diff options
author | Tom Rini <trini@ti.com> | 2014-05-13 17:09:28 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-13 17:09:28 -0400 |
commit | 557a3319089499aa0e55d65a6b43b7137f362003 (patch) | |
tree | 092341615ca6449473e4d9f7cb2158391bb86892 /board/freescale/qemu-ppce500/qemu-ppce500.c | |
parent | 27b4e4b9913f65b52d20485dff3f8800bf78f3d7 (diff) | |
parent | 8ad5d45e0044f5e64dbe7c6bd4e6aa0121a26b23 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'board/freescale/qemu-ppce500/qemu-ppce500.c')
-rw-r--r-- | board/freescale/qemu-ppce500/qemu-ppce500.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/board/freescale/qemu-ppce500/qemu-ppce500.c b/board/freescale/qemu-ppce500/qemu-ppce500.c index 3dbb0cf43b8..230870d90e4 100644 --- a/board/freescale/qemu-ppce500/qemu-ppce500.c +++ b/board/freescale/qemu-ppce500/qemu-ppce500.c @@ -346,3 +346,23 @@ ulong get_bus_freq (ulong dummy) get_sys_info(&sys_info); return sys_info.freq_systembus; } + +/* + * Return the number of cores on this SOC. + */ +int cpu_numcores(void) +{ + /* + * The QEMU u-boot target only needs to drive the first core, + * spinning and device tree nodes get driven by QEMU itself + */ + return 1; +} + +/* + * Return a 32-bit mask indicating which cores are present on this SOC. + */ +u32 cpu_mask(void) +{ + return (1 << cpu_numcores()) - 1; +} |