From: Sergei Shtylyov <sshtylyov@mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/7][v2] powerpc/85xx: Expanding the window of CCSRBAR in AS=1 from 4k to 1M
Date: Sun, 07 Aug 2011 15:52:48 +0400 [thread overview]
Message-ID: <4E3E7C90.2050401@mvista.com> (raw)
In-Reply-To: <1312555480-13401-5-git-send-email-galak@kernel.crashing.org>
Hello.
On 05-08-2011 18:44, Kumar Gala wrote:
> From: Poonam Aggrwal<poonam.aggrwal@freescale.com>
> For an IFC Erratum (A-003399) we will need to access IFC registers in
> cpu_init_early_f() so expand the TLB covering CCSR to 1M.
> Since we need a TLB to cover 1M we move to using TLB1 array for all the
> early mappings so we can cover various sizes beyond 4k.
> Additionally removed volatile from ccsr_virt declaration as its not needed
> for IO accessors
I don't see that change in the patch...
> Signed-off-by: Poonam Aggrwal<poonam.aggrwal@freescale.com>
> Signed-off-by: Kumar Gala<galak@kernel.crashing.org>
> ---
> arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
> diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
> index 64eda94..359f03e 100644
> --- a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
> +++ b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
> @@ -21,6 +21,7 @@
> #include <asm/processor.h>
> #include <asm/mmu.h>
> #include <asm/fsl_law.h>
> +#include <asm/io.h>
>
> DECLARE_GLOBAL_DATA_PTR;
>
> @@ -40,8 +41,8 @@ void cpu_init_early_f(void)
> for (i = 0; i< sizeof(gd_t); i++)
> ((char *)gd)[i] = 0;
>
> - mas0 = MAS0_TLBSEL(0) | MAS0_ESEL(0);
> - mas1 = MAS1_VALID | MAS1_TID(0) | MAS1_TS | MAS1_TSIZE(BOOKE_PAGESZ_4K);
> + mas0 = MAS0_TLBSEL(1) | MAS0_ESEL(13);
> + mas1 = MAS1_VALID | MAS1_TID(0) | MAS1_TS | MAS1_TSIZE(BOOKE_PAGESZ_1M);
> mas2 = FSL_BOOKE_MAS2(CONFIG_SYS_CCSRBAR, MAS2_I|MAS2_G);
> mas3 = FSL_BOOKE_MAS3(CONFIG_SYS_CCSRBAR_PHYS, 0, MAS3_SW|MAS3_SR);
> mas7 = FSL_BOOKE_MAS7(CONFIG_SYS_CCSRBAR_PHYS);
> @@ -49,6 +50,6 @@ void cpu_init_early_f(void)
> write_tlb(mas0, mas1, mas2, mas3, mas7);
>
> init_laws();
> - invalidate_tlb(0);
> + invalidate_tlb(1);
> init_tlbs();
> }
WBR, Sergei
next prev parent reply other threads:[~2011-08-07 11:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 14:44 [U-Boot] [PATCH 0/7][v2] powerpc/85xx: P1010RDB Kumar Gala
2011-08-05 14:44 ` [U-Boot] [PATCH 1/7][v2] powerpc/85xx: Add basic support for P1010RDB Kumar Gala
2011-08-05 14:44 ` [U-Boot] [PATCH 2/7][v2] nand: Freescale Integrated Flash Controller NAND support Kumar Gala
2011-08-05 14:44 ` [U-Boot] [PATCH 3/7][v2] powerpc/85xx: Add NAND/NAND_SPL support to P1010RDB Kumar Gala
2011-08-05 14:44 ` [U-Boot] [PATCH 4/7][v2] powerpc/85xx: Expanding the window of CCSRBAR in AS=1 from 4k to 1M Kumar Gala
2011-08-05 14:44 ` [U-Boot] [PATCH 5/7][v2] fsl_ifc: Add the workaround for erratum IFC-A002769 (enable on P1010) Kumar Gala
2011-08-05 14:44 ` [U-Boot] [PATCH 6/7][v2] powerpc/P1010: Add workaround for erratum P1010-A003549 (related to IFC) Kumar Gala
2011-08-05 14:44 ` [U-Boot] [PATCH 7/7][v2] fsl_ifc: Add the workaround for erratum IFC A-003399(enabled on P1010) Kumar Gala
2011-10-18 6:35 ` Wolfgang Denk
2011-10-18 11:48 ` Kumar Gala
2011-10-18 11:54 ` Aggrwal Poonam-B10812
2011-10-18 20:18 ` Wolfgang Denk
2011-10-19 6:21 ` Kumar Gala
2011-10-20 0:53 ` Aggrwal Poonam-B10812
2011-08-07 11:52 ` Sergei Shtylyov [this message]
2011-08-07 16:46 ` [U-Boot] [PATCH 4/7][v2] powerpc/85xx: Expanding the window of CCSRBAR in AS=1 from 4k to 1M Kumar Gala
2011-08-26 19:08 ` [U-Boot] [PATCH 0/7][v2] powerpc/85xx: P1010RDB Kumar Gala
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=4E3E7C90.2050401@mvista.com \
--to=sshtylyov@mvista.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