All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Andrii Tseglytskyi <andrii.tseglytskyi@globallogic.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v01 2/3] xen/arm: add platform specific definitions for DRA7 evm board
Date: Thu, 26 Jun 2014 17:40:25 +0100	[thread overview]
Message-ID: <53AC4CF9.8010003@linaro.org> (raw)
In-Reply-To: <1403781330-22504-3-git-send-email-andrii.tseglytskyi@globallogic.com>

Hi Andrii,

Thank you for the patch.

On 06/26/2014 12:15 PM, Andrii Tseglytskyi wrote:

> +static int __init dra7_smp_init(void)
> +{
> +    void __iomem *wugen_base;
> +
> +    wugen_base = ioremap_nocache(DRA7_WKUPGEN_BASE, PAGE_SIZE);
> +    if ( !wugen_base )
> +    {
> +        dprintk(XENLOG_ERR, "Unable to map omap5 MMIO\n");
> +        return -EFAULT;
> +    }
> +#ifndef NDEBUG
> +    printk("Set AuxCoreBoot1 to %"PRIpaddr" (%p)\n",
> +           __pa(init_secondary), init_secondary);
> +#endif
> +    writel(__pa(init_secondary), wugen_base + DRA7_AUX_CORE_BOOT_1_OFFSET);
> +#ifndef NDEBUG
> +    printk("Set AuxCoreBoot0 to 0x20\n");
> +#endif

I think those 2 printk would be useful even in non-debug mode. If you
don't want to print them all the time, you can use
printk(XENLOG_DEBUG "your msg")

> +    writel(0x20, wugen_base + DRA7_AUX_CORE_BOOT_0_OFFSET);
> +
> +    iounmap(wugen_base);
> +
> +    return 0;
> +}
> +
> +static const char const *dra7_dt_compat[] __initdata =

This should be __initconst.

> +PLATFORM_START(dra7, "TI DRA7")
> +    .compatible = dra7_dt_compat,
> +    .init_time = dra7_init_time,
> +    .cpu_up = cpu_up_send_sgi,
> +    .smp_init = dra7_smp_init,
> +
> +    .dom0_gnttab_start = 0x4b000000,
> +    .dom0_gnttab_size = 0x20000,
> +    .blacklist_dev = dra7xx_blacklist_dev,
> +PLATFORM_END

Any plan to support reset callback?

Regards,

-- 
Julien Grall

  reply	other threads:[~2014-06-26 16:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 11:15 [PATCH v01 0/3] arm: introduce basic DRA7 platform support Andrii Tseglytskyi
2014-06-26 11:15 ` [PATCH v01 1/3] xen:dt: add match for non-available nodes Andrii Tseglytskyi
2014-06-26 16:29   ` Julien Grall
2014-06-30 10:11   ` Ian Campbell
2014-06-26 11:15 ` [PATCH v01 2/3] xen/arm: add platform specific definitions for DRA7 evm board Andrii Tseglytskyi
2014-06-26 16:40   ` Julien Grall [this message]
2014-06-27  8:28     ` Andrii Tseglytskyi
2014-06-27 12:17   ` Ian Campbell
2014-06-27 14:27     ` Julien Grall
2014-06-27 14:47       ` Ian Campbell
2014-06-27 17:50         ` Julien Grall
2014-06-30 10:08           ` Ian Campbell
2014-06-27 15:31     ` Andrii Tseglytskyi
2014-06-26 11:15 ` [PATCH v01 3/3] xen/arm: dra7: Add UART base address for early logging Andrii Tseglytskyi
2014-06-26 16:41   ` Julien Grall
2014-06-27 12:19   ` Ian Campbell
2014-06-26 16:46 ` [PATCH v01 0/3] arm: introduce basic DRA7 platform support Julien Grall

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=53AC4CF9.8010003@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=andrii.tseglytskyi@globallogic.com \
    --cc=xen-devel@lists.xen.org \
    /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.