* [U-Boot] [PATCH] qemu-ppce500: Add support for 64bit CCSR map
@ 2015-03-07 1:10 Alexander Graf
2015-03-09 23:15 ` Scott Wood
2015-04-20 20:57 ` York Sun
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Graf @ 2015-03-07 1:10 UTC (permalink / raw)
To: u-boot
QEMU 2.3 changes the address layout of the CCSR map in the PV ppce500 machine
to reside in higher address space.
Unfortunately, this exposed a glitch in u-boot for ppce500: While providing
a function to dynamically evaluate the CCSR region's position in physical
address space, we never used it. Plus we forgot to support 64bit physical
addresses.
This patch fixes that mishap, making u-boot work fine with latest QEMU again.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
include/configs/qemu-ppce500.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/configs/qemu-ppce500.h b/include/configs/qemu-ppce500.h
index 763a47a..7071849 100644
--- a/include/configs/qemu-ppce500.h
+++ b/include/configs/qemu-ppce500.h
@@ -50,8 +50,14 @@
/* Physical address should be a function call */
#ifndef __ASSEMBLY__
extern unsigned long long get_phys_ccsrbar_addr_early(void);
+#define CONFIG_SYS_CCSRBAR_PHYS_HIGH (get_phys_ccsrbar_addr_early() >> 32)
+#define CONFIG_SYS_CCSRBAR_PHYS_LOW get_phys_ccsrbar_addr_early()
+#else
+#define CONFIG_SYS_CCSRBAR_PHYS_HIGH 0x0
+#define CONFIG_SYS_CCSRBAR_PHYS_LOW CONFIG_SYS_CCSRBAR
#endif
-#define CONFIG_SYS_CCSR_DO_NOT_RELOCATE
+
+#define CONFIG_PHYS_64BIT
/* Virtual address range for PCI region maps */
#define CONFIG_SYS_PCI_MAP_START 0x80000000
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] qemu-ppce500: Add support for 64bit CCSR map
2015-03-07 1:10 [U-Boot] [PATCH] qemu-ppce500: Add support for 64bit CCSR map Alexander Graf
@ 2015-03-09 23:15 ` Scott Wood
2015-04-20 20:57 ` York Sun
1 sibling, 0 replies; 3+ messages in thread
From: Scott Wood @ 2015-03-09 23:15 UTC (permalink / raw)
To: u-boot
On Sat, 2015-03-07 at 02:10 +0100, Alexander Graf wrote:
> QEMU 2.3 changes the address layout of the CCSR map in the PV ppce500 machine
> to reside in higher address space.
>
> Unfortunately, this exposed a glitch in u-boot for ppce500: While providing
> a function to dynamically evaluate the CCSR region's position in physical
> address space, we never used it. Plus we forgot to support 64bit physical
> addresses.
>
> This patch fixes that mishap, making u-boot work fine with latest QEMU again.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
> include/configs/qemu-ppce500.h | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
Reviewed-by: Scott Wood <scottwood@freescale.com>
-Scott
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] qemu-ppce500: Add support for 64bit CCSR map
2015-03-07 1:10 [U-Boot] [PATCH] qemu-ppce500: Add support for 64bit CCSR map Alexander Graf
2015-03-09 23:15 ` Scott Wood
@ 2015-04-20 20:57 ` York Sun
1 sibling, 0 replies; 3+ messages in thread
From: York Sun @ 2015-04-20 20:57 UTC (permalink / raw)
To: u-boot
On 03/06/2015 05:10 PM, Alexander Graf wrote:
> QEMU 2.3 changes the address layout of the CCSR map in the PV ppce500 machine
> to reside in higher address space.
>
> Unfortunately, this exposed a glitch in u-boot for ppce500: While providing
> a function to dynamically evaluate the CCSR region's position in physical
> address space, we never used it. Plus we forgot to support 64bit physical
> addresses.
>
> This patch fixes that mishap, making u-boot work fine with latest QEMU again.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
Applied to mpc85xx master, awaiting upstream.
York
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-20 20:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-07 1:10 [U-Boot] [PATCH] qemu-ppce500: Add support for 64bit CCSR map Alexander Graf
2015-03-09 23:15 ` Scott Wood
2015-04-20 20:57 ` York Sun
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.