From: Kumar Gala Date: Wed, 5 Nov 2008 15:42:56 -0600 Subject: [U-Boot] [PATCH 9/9] mpc8641: Support 36-bit physical addressing In-Reply-To: <1225918537-12332-10-git-send-email-becky.bruce@freescale.com> References: <1225918537-12332-1-git-send-email-becky.bruce@freescale.com> <1225918537-12332-2-git-send-email-becky.bruce@freescale.com> <1225918537-12332-3-git-send-email-becky.bruce@freescale.com> <1225918537-12332-4-git-send-email-becky.bruce@freescale.com> <1225918537-12332-5-git-send-email-becky.bruce@freescale.com> <1225918537-12332-6-git-send-email-becky.bruce@freescale.com> <1225918537-12332-7-git-send-email-becky.bruce@freescale.com> <1225918537-12332-8-git-send-email-becky.bruce@freescale.com> <1225918537-12332-9-git-send-email-becky.bruce@freescale.com> <1225918537-12332-10-git-send-email-becky.bruce@freescale.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Nov 5, 2008, at 2:55 PM, Becky Bruce wrote: > This patch creates a memory map with all the devices > in 36-bit physical space, in addition to the 32-bit map. > The CCSR relocation is moved (again, sorry) to > allow for the physical address to be 36 bits - this > requires translation to be enabled. With 36-bit physical > addressing enabled, we are no longer running with VA=PA > translations. This means we have to distinguish between > the two in the config file. The existing region name is > used to indicate the virtual address, and a _PHYS variety > is created to represent the physical address. > > Large physical addressing is not enabled by default. > Set CONFIG_PHYS_64BIT in the config file to turn this on. > > Signed-off-by: Becky Bruce > --- > board/freescale/mpc8641hpcn/law.c | 13 ++-- > cpu/mpc86xx/start.S | 44 ++++++++--- > include/configs/MPC8641HPCN.h | 164 ++++++++++++++++++++++++++++ > +-------- > 3 files changed, 168 insertions(+), 53 deletions(-) Can we add something to the top level Makefile like the following: MPC8641HPCN_36BIT_config \ MPC8641HPCN_config: unconfig @mkdir -p $(obj)include @if [ "$(findstring _36BIT_,$@)" ] ; then \ $(XECHO) -n "... I Rock " ; \ echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/ config.h ;\ fi ; @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale (also add this to MAKEALL) The name could be better. - k