* [U-Boot] [PATCH 6/8] APM82xxx: Add SRAM support
@ 2010-08-26 21:06 tmarri at apm.com
2010-08-27 10:13 ` Sergei Shtylyov
0 siblings, 1 reply; 3+ messages in thread
From: tmarri at apm.com @ 2010-08-26 21:06 UTC (permalink / raw)
To: u-boot
From: Tirumala Marri <tmarri@apm.com>
This patch adds L2Cache/SRAM and OCM register definitions.
Signed-off-by: Tirumala R Marri <tmarri@apm.com>
---
arch/powerpc/include/asm/ppc4xx-isram.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/include/asm/ppc4xx-isram.h b/arch/powerpc/include/asm/ppc4xx-isram.h
index d6d17ac..b723401 100644
--- a/arch/powerpc/include/asm/ppc4xx-isram.h
+++ b/arch/powerpc/include/asm/ppc4xx-isram.h
@@ -25,7 +25,8 @@
/*
* Internal SRAM
*/
-#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
+#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX) ||\
+ defined(CONFIG_APM82XXX)
#define ISRAM0_DCR_BASE 0x380
#else
#define ISRAM0_DCR_BASE 0x020
@@ -42,7 +43,8 @@
#define ISRAM0_REVID (ISRAM0_DCR_BASE+0x09) /* SRAM bus revision id reg */
#define ISRAM0_DPC (ISRAM0_DCR_BASE+0x0a) /* SRAM data parity check reg */
-#if defined(CONFIG_460EX) || defined(CONFIG_460GT)
+#if defined(CONFIG_460EX) || defined(CONFIG_460GT) ||\
+ defined(CONFIG_APM82XXX)
#define ISRAM1_DCR_BASE 0x0B0
#define ISRAM1_SB0CR (ISRAM1_DCR_BASE+0x00) /* SRAM1 bank config 0*/
#define ISRAM1_BEAR (ISRAM1_DCR_BASE+0x04) /* SRAM1 bus error addr reg */
@@ -60,7 +62,7 @@
#if defined (CONFIG_440GX) || \
defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
- defined(CONFIG_460SX)
+ defined(CONFIG_460SX) || defined(CONFIG_APM82XXX)
#define L2_CACHE_BASE 0x030
#define L2_CACHE_CFG (L2_CACHE_BASE+0x00) /* L2 Cache Config */
#define L2_CACHE_CMD (L2_CACHE_BASE+0x01) /* L2 Cache Command */
--
1.6.1.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 6/8] APM82xxx: Add SRAM support
2010-08-26 21:06 [U-Boot] [PATCH 6/8] APM82xxx: Add SRAM support tmarri at apm.com
@ 2010-08-27 10:13 ` Sergei Shtylyov
2010-08-30 17:43 ` Tirumala Marri
0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2010-08-27 10:13 UTC (permalink / raw)
To: u-boot
Hello.
tmarri at apm.com wrote:
> From: Tirumala Marri <tmarri@apm.com>
> This patch adds L2Cache/SRAM and OCM register definitions.
> Signed-off-by: Tirumala R Marri <tmarri@apm.com>
[...]
> diff --git a/arch/powerpc/include/asm/ppc4xx-isram.h b/arch/powerpc/include/asm/ppc4xx-isram.h
> index d6d17ac..b723401 100644
> --- a/arch/powerpc/include/asm/ppc4xx-isram.h
> +++ b/arch/powerpc/include/asm/ppc4xx-isram.h
> @@ -25,7 +25,8 @@
> /*
> * Internal SRAM
> */
> -#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
> +#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX) ||\
Please add space before \ to keep the style consistent.
> + defined(CONFIG_APM82XXX)
> #define ISRAM0_DCR_BASE 0x380
> #else
> #define ISRAM0_DCR_BASE 0x020
> @@ -42,7 +43,8 @@
> #define ISRAM0_REVID (ISRAM0_DCR_BASE+0x09) /* SRAM bus revision id reg */
> #define ISRAM0_DPC (ISRAM0_DCR_BASE+0x0a) /* SRAM data parity check reg */
>
> -#if defined(CONFIG_460EX) || defined(CONFIG_460GT)
> +#if defined(CONFIG_460EX) || defined(CONFIG_460GT) ||\
Same here...
> + defined(CONFIG_APM82XXX)
> #define ISRAM1_DCR_BASE 0x0B0
> #define ISRAM1_SB0CR (ISRAM1_DCR_BASE+0x00) /* SRAM1 bank config 0*/
> #define ISRAM1_BEAR (ISRAM1_DCR_BASE+0x04) /* SRAM1 bus error addr reg */
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 6/8] APM82xxx: Add SRAM support
2010-08-27 10:13 ` Sergei Shtylyov
@ 2010-08-30 17:43 ` Tirumala Marri
0 siblings, 0 replies; 3+ messages in thread
From: Tirumala Marri @ 2010-08-30 17:43 UTC (permalink / raw)
To: u-boot
>
> > Signed-off-by: Tirumala R Marri <tmarri@apm.com>
> [...]
> > diff --git a/arch/powerpc/include/asm/ppc4xx-isram.h
> b/arch/powerpc/include/asm/ppc4xx-isram.h
> > index d6d17ac..b723401 100644
> > --- a/arch/powerpc/include/asm/ppc4xx-isram.h
> > +++ b/arch/powerpc/include/asm/ppc4xx-isram.h
> > @@ -25,7 +25,8 @@
> > /*
> > * Internal SRAM
> > */
> > -#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
> > +#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX) ||\
>
> Please add space before \ to keep the style consistent.
[Marri] Sure will do
>
> > + defined(CONFIG_APM82XXX)
> > #define ISRAM0_DCR_BASE 0x380
> > #else
> > #define ISRAM0_DCR_BASE 0x020
> > @@ -42,7 +43,8 @@
> > #define ISRAM0_REVID (ISRAM0_DCR_BASE+0x09) /* SRAM bus
revision id
> reg */
> > #define ISRAM0_DPC (ISRAM0_DCR_BASE+0x0a) /* SRAM data parity
> check reg */
> >
> > -#if defined(CONFIG_460EX) || defined(CONFIG_460GT)
> > +#if defined(CONFIG_460EX) || defined(CONFIG_460GT) ||\
>
> Same here...
[Marri] Ok
>
> > + defined(CONFIG_APM82XXX)
> > #define ISRAM1_DCR_BASE 0x0B0
> > #define ISRAM1_SB0CR (ISRAM1_DCR_BASE+0x00) /* SRAM1 bank
config
> 0*/
> > #define ISRAM1_BEAR (ISRAM1_DCR_BASE+0x04) /* SRAM1 bus error
addr
> reg */
Regards,
Marri
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-30 17:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-26 21:06 [U-Boot] [PATCH 6/8] APM82xxx: Add SRAM support tmarri at apm.com
2010-08-27 10:13 ` Sergei Shtylyov
2010-08-30 17:43 ` Tirumala Marri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox