public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Gabriel Huau <contact@huau-gabriel.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6] mx6: add support of multi-processor command
Date: Wed, 03 Sep 2014 11:26:50 -0700	[thread overview]
Message-ID: <54075D6A.2080802@huau-gabriel.fr> (raw)
In-Reply-To: <54075720.5030907@freescale.com>

Hi York,

On 09/03/2014 11:00 AM, York Sun wrote:
> On 07/28/2014 08:15 AM, Stefano Babic wrote:
>> Hi Gabriel,
>>
>> On 26/07/2014 20:35, Gabriel Huau wrote:
>>> This allows u-boot to load different OS or Bare Metal application on
>>> different cores of the i.MX6 SoC.
>>> For example: running Android on cpu0 and a RT OS like QNX/FreeRTOS on cpu1.
>>>
>>> Signed-off-by: Gabriel Huau <contact@huau-gabriel.fr>
>>> ---
>>> Changes for v2:
>>> 	- Add a commit log message to explain the purpose of this patch
>>> Changes for v3:
>>> 	- Remove unnecessary check for unsigned values when they are negative
>>> Changes for v4:
>>> 	- Add CONFIG_MP to the common mx6 configuration
>>> 	- Get the number of CPUs dynamically instead of using a macro
>>> Changes for v5:
>>> 	- Rebase on the last update of the tree (conflicts solved)
>>> Changes for v6:
>>> 	- Remove useless switch case
>>> 	- Update board_f to not depend on mp.h unnecessary
>>> 	- Fix build warnings
>>> 	- Update commit message
>>>
> <snip>
>
>>> --- a/common/board_f.c
>>> +++ b/common/board_f.c
>>> @@ -34,6 +34,9 @@
>>>   #ifdef CONFIG_MPC5xxx
>>>   #include <mpc5xxx.h>
>>>   #endif
>>> +#if (defined(CONFIG_MPC86xx) || defined(CONFIG_E500))
>>> +#include <asm/mp.h>
>>> +#endif
>>>   
>>>   #include <os.h>
>>>   #include <post.h>
>>> @@ -43,9 +46,6 @@
>>>   #include <watchdog.h>
>>>   #include <asm/errno.h>
>>>   #include <asm/io.h>
>>> -#ifdef CONFIG_MP
>>> -#include <asm/mp.h>
>>> -#endif
>>>   #include <asm/sections.h>
>>>   #ifdef CONFIG_X86
>>>   #include <asm/init_helpers.h>
>>> @@ -381,7 +381,7 @@ static int setup_dest_addr(void)
>>>   	gd->ram_top = board_get_usable_ram_top(gd->mon_len);
>>>   	gd->relocaddr = gd->ram_top;
>>>   	debug("Ram top: %08lX\n", (ulong)gd->ram_top);
>>> -#if defined(CONFIG_MP) && (defined(CONFIG_MPC86xx) || defined(CONFIG_E500))
>>> +#if (defined(CONFIG_MPC86xx) || defined(CONFIG_E500))
> I didn't notice this patch until it got merged. Why dropping CONFIG_MP here?
> This change breaks these boards
>
>   MPC8536DS MPC8536DS_36BIT MPC8536DS_SDCARD MPC8536DS_SPIFLASH qemu-ppce500
>
> York

Sorry, I didn't see the break for these boards.
'asm/mp.h' is used only for the powerpc board and using CONFIG_MP force 
the other architecture (or board) to create an empty header.
As this header was here to use only specific features (not generic), I 
removed it and put the include guards only for the boards needed.

Can't we add these boards to the board_f.c?

Regards,
Gabriel

  reply	other threads:[~2014-09-03 18:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-21 18:29 [U-Boot] [PATCH] mx6: add support of multi-processor command Gabriel Huau
2014-06-21 21:36 ` Fabio Estevam
2014-06-21 23:55 ` [U-Boot] [PATCH v2] " Gabriel Huau
2014-06-22  9:14   ` Jeroen Hofstee
2014-06-22 16:56     ` gabriel huau
2014-06-22 16:56 ` [U-Boot] [PATCH v3] " Gabriel Huau
2014-06-24 12:50   ` Stefano Babic
2014-06-25  0:22     ` gabriel huau
2014-06-25  2:32 ` [U-Boot] [PATCH v4] " Gabriel Huau
2014-07-08  9:18   ` Stefano Babic
2014-07-12 22:31 ` [U-Boot] [PATCH v5] " Gabriel Huau
2014-07-13  9:58   ` Wolfgang Denk
2014-07-13 23:16     ` gabriel huau
2014-07-15  7:49   ` Stefano Babic
2014-07-15 14:13     ` gabriel huau
2014-07-15 19:35       ` Stefano Babic
2014-07-15 19:59         ` Gabriel Huau
2014-07-26 18:35 ` [U-Boot] [PATCH v6] " Gabriel Huau
2014-07-28 15:15   ` Stefano Babic
2014-09-03 18:00     ` York Sun
2014-09-03 18:26       ` Gabriel Huau [this message]
2014-09-03 18:36         ` York Sun
2014-09-03 18:45           ` Gabriel Huau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54075D6A.2080802@huau-gabriel.fr \
    --to=contact@huau-gabriel.fr \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox