diff options
| author | Kumar Gala <galak@kernel.crashing.org> | 2008-03-26 08:34:25 -0500 | 
|---|---|---|
| committer | Andrew Fleming-AFLEMING <afleming@freescale.com> | 2008-03-26 11:43:04 -0500 | 
| commit | 79679d80021ab095e639e250ca472fe526da02e2 (patch) | |
| tree | 1c6bb9e1f61581c962a6da1666bbd8f0fbb618ba /common/cmd_mp.c | |
| parent | 25eedb2c1958a13110c7de1fc809b624053cc69c (diff) | |
| download | olio-uboot-2014.01-79679d80021ab095e639e250ca472fe526da02e2.tar.xz olio-uboot-2014.01-79679d80021ab095e639e250ca472fe526da02e2.zip | |
85xx: Update multicore boot mechanism to ePAPR v0.81 spec
The following changes are needed to be inline with ePAPR v0.81:
* r4, r5 and now always set to 0 on boot release
* r7 is used to pass the size of the initial map area (IMA)
* EPAPR_MAGIC value changed for book-e processors
* changes in the spin table layout
* spin table supports a 64-bit physical release address
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common/cmd_mp.c')
| -rw-r--r-- | common/cmd_mp.c | 15 | 
1 files changed, 6 insertions, 9 deletions
| diff --git a/common/cmd_mp.c b/common/cmd_mp.c index d96e6a302..26a57c5e9 100644 --- a/common/cmd_mp.c +++ b/common/cmd_mp.c @@ -26,7 +26,7 @@  int  cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  { -	unsigned long cpuid, val = 0; +	unsigned long cpuid;  	if (argc < 3) {  		printf ("Usage:\n%s\n", cmdtp->usage); @@ -59,9 +59,7 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  		return 1;  	} -	val = simple_strtoul(argv[3], NULL, 16); - -	if (cpu_release(cpuid, val, argc - 4, argv + 4)) { +	if (cpu_release(cpuid, argc - 3, argv + 3)) {  		printf ("Usage:\n%s\n", cmdtp->usage);  		return 1;  	} @@ -71,17 +69,16 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  #ifdef CONFIG_PPC  #define CPU_ARCH_HELP \ -	"                         [args] : <pir> <r3> <r4> <r6> <r7>\n" \ +	"                         [args] : <pir> <r3> <r6>\n" \  	"                                   pir - processor id (if writeable)\n" \  	"                                    r3 - value for gpr 3\n" \ -	"                                    r4 - value for gpr 4\n" \  	"                                    r6 - value for gpr 6\n" \ -	"                                    r7 - value for gpr 7\n" \  	"\n" \  	"     Use '-' for any arg if you want the default value.\n" \ -	"     Default for r3, r4, r7 is 0, r6 is 0x65504150\n" \ +	"     Default for r3 is <num> and r6 is 0\n" \  	"\n" \ -	"     When cpu <num> is released r5 = 0 per the ePAPR spec.\n" +	"     When cpu <num> is released r4 and r5 = 0.\n" \ +	"     r7 will contain the size of the initial mapped area\n"  #endif  U_BOOT_CMD( |