All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christophe Leroy <christophe.leroy@c-s.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 08/16] powerpc: mpc8xx: redistribute data in CPM dpram
Date: Fri, 16 Mar 2018 17:20:45 +0100 (CET)	[thread overview]
Message-ID: <78576e00b1d7ce9a5ace74015b0dd6a5590f06c1.1521215903.git.christophe.leroy@c-s.fr> (raw)
In-Reply-To: <cover.1521215903.git.christophe.leroy@c-s.fr>

Some malloc memory is needed at startup for DM model.
Lets reorganise the use of the CPM dpram.

The MPC866/885 dpram, we have 8kbytes dual port RAM, which is usable as:
IMMR + 0x2000..0x2800: BD/Data/Microcode
IMMR + 0x2800..0x2e00: BD/Data
IMMR + 0x2e00..0x3800: BD/Data/Microcode
IMMR + 0x3800..0x3a00: BD/Data
IMMR + 0x3a00..0x3c00: BD/Data/Microcode
IMMR + 0x3c00..0x4000: Parameters for the Peripheral Controllers

Lets reallocate all BDs in the 3800..3a00 area and give the full
2800..2e00 for dynamic RAM allocation including global data

That way, the microcode areas remain available if needed one day.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
 arch/powerpc/include/asm/cpm_8xx.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/powerpc/include/asm/cpm_8xx.h b/arch/powerpc/include/asm/cpm_8xx.h
index bd8adec6b07..85903d21088 100644
--- a/arch/powerpc/include/asm/cpm_8xx.h
+++ b/arch/powerpc/include/asm/cpm_8xx.h
@@ -51,14 +51,14 @@
 /*
  * DPRAM defines and allocation functions
  */
-#define CPM_SERIAL_BASE		0x0800
-#define CPM_I2C_BASE		0x0820
-#define CPM_SPI_BASE		0x0840
-#define CPM_FEC_BASE		0x0860
-#define CPM_SERIAL2_BASE	0x08E0
-#define CPM_SCC_BASE		0x0900
-#define CPM_POST_BASE		0x0980
-#define CPM_WLKBD_BASE		0x0a00
+#define CPM_SERIAL_BASE		0x1800
+#define CPM_I2C_BASE		0x1820
+#define CPM_SPI_BASE		0x1840
+#define CPM_FEC_BASE		0x1860
+#define CPM_SERIAL2_BASE	0x18e0
+#define CPM_SCC_BASE		0x1900
+#define CPM_POST_BASE		0x1980
+#define CPM_WLKBD_BASE		0x1a00
 
 #define BD_IIC_START	((uint) 0x0400) /* <- please use CPM_I2C_BASE !! */
 
-- 
2.13.3

  parent reply	other threads:[~2018-03-16 16:20 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-16 16:20 [U-Boot] [PATCH v4 00/16] Powerpc: mpc8xx: cleanup before migration to DM model Christophe Leroy
2018-03-16 16:20 ` [U-Boot] [PATCH v4 01/16] soft_i2c: cleanup - no mpc8xx support Christophe Leroy
2018-04-06 21:02   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 02/16] powerpc: mpc8xx: harmonise initialisation of the immap local pointer Christophe Leroy
2018-04-06 21:02   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 03/16] powerpc: mpc8xx: get rid of the multiple PVR_ values Christophe Leroy
2018-04-06 21:02   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 04/16] powerpc: mpc8xx: make get_immr() independent of CONFIG_8xx Christophe Leroy
2018-04-06 21:02   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 05/16] powerpc: mpc8xx: remove get_immr() argument Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 06/16] powerpc: mpc8xx: Change CONFIG_8xx to CONFIG_MPC8xx Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 07/16] powercp: mpc8xx: move commproc.h Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot,v4,07/16] " Tom Rini
2018-03-16 16:20 ` Christophe Leroy [this message]
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, 08/16] powerpc: mpc8xx: redistribute data in CPM dpram Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 09/16] powerpc: mpc8xx: initialisation of initial RAM Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 10/16] board: MCR3000: replace mtd->priv by mtd_to_nand() Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 11/16] board: MCR3000: cleanup config Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot,v4,11/16] " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 12/16] common: env_embedded: allow fine placement of environment object Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 13/16] board: MCR3000: Use smaller flash sector for environment Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 14/16] powerpc: mpc8xx: refactorise reginfo Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:20 ` [U-Boot] [PATCH v4 15/16] powerpc: mpc8xx: cleaning up watchdog Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-03-16 16:21 ` [U-Boot] [PATCH v4 16/16] powerpc: mpc8xx: move watchdog into drivers/watchdog Christophe Leroy
2018-04-06 21:03   ` [U-Boot] [U-Boot, v4, " 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=78576e00b1d7ce9a5ace74015b0dd6a5590f06c1.1521215903.git.christophe.leroy@c-s.fr \
    --to=christophe.leroy@c-s.fr \
    --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 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.