From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P3041
Date: Tue, 24 Feb 2015 19:24:16 -0600 [thread overview]
Message-ID: <1424827456.4698.46.camel@freescale.com> (raw)
In-Reply-To: <1421925053-28612-1-git-send-email-aneesh.bansal@freescale.com>
On Thu, 2015-01-22 at 16:40 +0530, Aneesh Bansal wrote:
> diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c
> index 85d32fc..2da99a1 100644
> --- a/arch/powerpc/cpu/mpc85xx/cpu_init.c
> +++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c
> @@ -851,6 +851,21 @@ int cpu_init_r(void)
> setup_mp();
> #endif
>
> +#ifdef CONFIG_SECURE_BOOT
> + /* Disable the TLB Created for L3 and create the TLB required for
> + * PCIE (CONFIG_SYS_PCIE1_MEM_VIRT) which was not created earlier.
> + */
> + int tlb_index;
> + tlb_index = find_tlb_idx((void *)CONFIG_BPTR_VIRT_ADDR, 1);
> + if (tlb_index != -1)
> + disable_tlb(tlb_index);
> +
> + set_tlb(1, CONFIG_SYS_PCIE1_MEM_VIRT,
> + CONFIG_SYS_PCIE1_MEM_PHYS,
> + MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
> + 0, tlb_index, BOOKE_PAGESZ_1G, 1);
> +#endif
Why are you assuming in generic 85xx code that the TLB for PCIE1 needs
to be created? e500mc should have enough TLB1 entries that you don't
need to share (or if it's due to address conflicts, a board may have PCI
at a different address), and PCI may not exist at all on some boards.
-Scott
prev parent reply other threads:[~2015-02-25 1:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-22 11:10 [U-Boot] [PATCH] powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P3041 Aneesh Bansal
2015-02-25 1:24 ` Scott Wood [this message]
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=1424827456.4698.46.camel@freescale.com \
--to=scottwood@freescale.com \
--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