arm: omap5: Add AMP boot support for OMAP5
PATCH 1/1 arm: omap5: Add AMP boot support for OMAP5
This command uses AMP boot mode to boot the omap5 device. it is used to run two different software on each dedicated core without using hypervisor.
A typical example is: Core0 uses Linux or Android and Core1 uses QNX or baremetal app.
It is also used for benchmarking the hypervisor performance where hypervisor is run in the SMP mode and runs two different operating systems or baremetal app on top of it.
--- arch/arm/include/asm/arch-omap5/hardware.h | 5 +++ common/Kconfig | 6 +++ common/Makefile | 1 + common/cmd_omap5_ampboot.c | 59 ++++++++++++++++++++++++++++++ configs/dra7xx_evm_defconfig | 3 ++ 5 files changed, 74 insertions(+) create mode 100644 common/cmd_omap5_ampboot.c
arch/arm/include/asm/arch-omap5/hardware.h +5 -0
@@ -23,4 +23,9 @@/* GPMC Base address */ #define GPMC_BASE 0x50000000 +/* Secondary core control registers */ +#define AUXCORE_BOOT1 0x48281804 +#define AUXCORE_BOOT0 0x48281800 + +#endif
common/Kconfig +6 -0
@@ -474,6 +474,12 @@ config CMD_SOUND sound init - set up sound system sound play - play a sound +config CMD_OMAP5_AMPBOOT + bool "omap5 ampboot" + depends on OMAP54XX + help + This command start secondary core1 from dual CoretexA15 omap5. + endmenu menu "Boot timing"
common/Makefile +1 -0
@@ -264,6 +264,7 @@ obj-$(CONFIG_FIT_SIGNATURE) += image-sig.o obj-$(CONFIG_IO_TRACE) += iotrace.o obj-y += memsize.o obj-y += stdio.o +obj-$(CONFIG_CMD_OMAP5_AMPBOOT) += cmd_omap5_ampboot.o # This option is not just y/n - it can have a numeric value ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
common/cmd_omap5_ampboot.c new file +59 -0
59 lines not on this page · raw message
+
configs/dra7xx_evm_defconfig +3 -0
@@ -7,5 +7,8 @@ CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1" # CONFIG_CMD_FLASH is not set # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_NFS is not set +CONFIG_CMD_MISC=y +# CONFIG_CMD_TIMER is not set +CONFIG_CMD_OMAP5_AMPBOOT=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y
Signature · 1 line
1.9.1
PATCH 1/1 arm: omap5: Add AMP boot support for OMAP5
Quoted 11 lines · Bharat Gohil
This command uses AMP boot mode to boot the omap5 device. it is used to run two different software on each dedicated core without using hypervisor.
A typical example is: Core0 uses Linux or Android and Core1 uses QNX or baremetal app.
It is also used for benchmarking the hypervisor performance where hypervisor is run in the SMP mode and runs two different operating systems or baremetal app on top of it.Signed-off-by Bharat Gohil <[email protected]>Cc Tom Rini <[email protected]>
Can you please look at doing this with the infrastructure in common/cmd_mp.c ? I think this would become "cpu 1 release ..." as other ARM target have something simialr implemented today. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150818/6fbc1a1b/attachment.sig>