All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 6/6] PPC 85xx: Add qemu-ppce500 machine
Date: Fri, 11 Apr 2014 16:38:07 +0200	[thread overview]
Message-ID: <5347FE4F.2060607@suse.de> (raw)
In-Reply-To: <5329E6AE.3080107@freescale.com>


On 19.03.14 19:49, York Sun wrote:
> On 02/20/2014 07:59 AM, Scott Wood wrote:
>> On Thu, 2014-02-20 at 13:52 +0100, Alexander Graf wrote:
>>> diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c
>>> index 3e99b07..51f2085 100644
>>> --- a/arch/powerpc/cpu/mpc85xx/cpu.c
>>> +++ b/arch/powerpc/cpu/mpc85xx/cpu.c
>>> @@ -272,6 +272,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>>>   #ifndef CONFIG_SYS_FSL_TBCLK_DIV
>>>   #define CONFIG_SYS_FSL_TBCLK_DIV 8
>>>   #endif
>>> +__attribute__((weak))
>>>   unsigned long get_tbclk (void)
>>>   {
>>>   	unsigned long tbclk_div = CONFIG_SYS_FSL_TBCLK_DIV;
>> It's not a big deal, but we do have __weak available.
>>
>>> +static void map_fdt_as(int esel)
>>> +{
>>> +	u32 mas0, mas1, mas2, mas3, mas7;
>>> +	uint64_t fdt_phys = get_fdt_phys();
>>> +	unsigned long fdt_phys_tlb = fdt_phys & ~0xffffful;
>>> +	unsigned long fdt_virt_tlb = (ulong)get_fdt_virt() & ~0xffffful;
>>> +
>>> +	mas0 = MAS0_TLBSEL(1) | MAS0_ESEL(10);
>> Shouldn't you use the esel parameter here?
>>
> Are you going to address this comment with a new version?

Yes :).


Alex

  reply	other threads:[~2014-04-11 14:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 12:52 [U-Boot] [PATCH v4 0/6] PPC 85xx: Add support for QEMU's ppce500 PV machine Alexander Graf
2014-02-20 12:52 ` [U-Boot] [PATCH v4 1/6] fdt_support: split fdt_getprop_u32_default Alexander Graf
2014-02-20 12:52 ` [U-Boot] [PATCH v4 2/6] fdt_support: Add helper function to read "ranges" property Alexander Graf
2014-02-20 12:52 ` [U-Boot] [PATCH v4 3/6] PPC: 85xx: Remove IVOR reset Alexander Graf
2014-02-20 12:52 ` [U-Boot] [PATCH v4 4/6] PPC: 85xx: Generalize DDR TLB mapping function Alexander Graf
2014-02-20 12:52 ` [U-Boot] [PATCH v4 5/6] PPC 85xx: Add ELF entry point Alexander Graf
2014-02-20 12:52 ` [U-Boot] [PATCH v4 6/6] PPC 85xx: Add qemu-ppce500 machine Alexander Graf
2014-02-20 15:59   ` Scott Wood
2014-03-19 18:49     ` York Sun
2014-04-11 14:38       ` Alexander Graf [this message]
2014-04-28 18:40   ` York Sun
2014-04-28 21:27     ` Alexander Graf
2014-04-28 21:31       ` York Sun

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=5347FE4F.2060607@suse.de \
    --to=agraf@suse.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.