public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Nokia RX-51: Do not call secure PPA routine on non secure devices
Date: Thu, 8 Jan 2015 15:02:09 +0100	[thread overview]
Message-ID: <20150108140209.GA31787@amd> (raw)
In-Reply-To: <1420708300-16435-1-git-send-email-pali.rohar@gmail.com>

On Thu 2015-01-08 10:11:40, Pali Roh?r wrote:
> Since commit 41623c91b09a0c865fab41acdaff30f060f29ad6 u-boot running in qemu is
> crashing in function do_omap3_emu_romcode_call(). RX-51 board uses this function
> for Cortex-A8 errata 430973 workaround (Set IBE bit in ACR) which is needed only
> on real secure device and not in qemu.
> 
> This board patch just disable calling secure PPA routine on non secure devices.
> Qemu implements GP device and with this patch u-boot is working in qemu again.
> 
> Signed-off-by: Pali Roh?r <pali.rohar@gmail.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

> ---
>  board/nokia/rx51/rx51.c |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/board/nokia/rx51/rx51.c b/board/nokia/rx51/rx51.c
> index b6b8ad6..08fcaf2 100644
> --- a/board/nokia/rx51/rx51.c
> +++ b/board/nokia/rx51/rx51.c
> @@ -422,8 +422,12 @@ int misc_init_r(void)
>  	/*
>  	 * Cortex-A8(r1p0..r1p2) errata 430973 workaround
>  	 * Set IBE bit in Auxiliary Control Register
> +	 *
> +	 * Call this routine only on real secure device
> +	 * Qemu does not implement secure PPA and crash
>  	 */
> -	omap3_update_aux_cr_secure_rx51(1 << 6, 0);
> +	if (get_device_type() == HS_DEVICE)
> +		omap3_update_aux_cr_secure_rx51(1 << 6, 0);
>  
>  	return 0;
>  }

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2015-01-08 14:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-08  9:11 [U-Boot] [PATCH] Nokia RX-51: Do not call secure PPA routine on non secure devices Pali Rohár
2015-01-08 14:02 ` Pavel Machek [this message]
2015-01-08 21:53 ` Georges Savoundararadj
2015-01-15  8:49   ` Pali Rohár
2015-01-12 20:11 ` [U-Boot] " Tom Rini

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=20150108140209.GA31787@amd \
    --to=pavel@denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox