* [U-Boot] [PATCH] mpc7448hpc2: Fix PCI I/O space mapping.
@ 2008-08-13 18:44 Randy Vinson
2008-08-14 8:49 ` Roy Zang
2008-08-26 21:22 ` Wolfgang Denk
0 siblings, 2 replies; 3+ messages in thread
From: Randy Vinson @ 2008-08-13 18:44 UTC (permalink / raw)
To: u-boot
PCI I/O space is currently mapped 1:1 at 0xFA000000. Linux requires
PCI I/O space to start at 0 on the PCI bus. This patch maps PCI I/O
space such that 0xFA000000 in the processor's address space maps to 0
on the PCI I/O bus.
Signed-off-by Randy Vinson <rvinson@mvista.com>
---
board/freescale/mpc7448hpc2/tsi108_init.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/freescale/mpc7448hpc2/tsi108_init.c b/board/freescale/mpc7448hpc2/tsi108_init.c
index ad80694..9c40b72 100644
--- a/board/freescale/mpc7448hpc2/tsi108_init.c
+++ b/board/freescale/mpc7448hpc2/tsi108_init.c
@@ -79,7 +79,7 @@ PB2OCN_LUT_ENTRY pb2ocn_lut1[32] = {
/* 24 - 31 */
{0x00000000, 0x00000201}, /* PBA=0xF800_0000 -> PCI/X (Byte-Swap) */
{0x00000000, 0x00000201}, /* PBA=0xF900_0000 -> PCI/X (Byte-Swap) */
- {0x00000000, 0x00000201}, /* PBA=0xFA00_0000 -> PCI/X PCI I/O (Byte-Swap) */
+ {0x00000000, 0x00000241}, /* PBA=0xFA00_0000 -> PCI/X PCI I/O (Byte-Swap + Translate) */
{0x00000000, 0x00000201}, /* PBA=0xFB00_0000 -> PCI/X PCI Config (Byte-Swap) */
{0x00000000, 0x02000240}, /* PBA=0xFC00_0000 -> HLP */
@@ -380,7 +380,7 @@ int board_early_init_r (void)
*/
out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PFAB_IO,
- 0xFA000001);
+ 0x00000001);
__asm__ __volatile__ ("sync");
/*
--
1.5.4.4.551.g1658c
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] mpc7448hpc2: Fix PCI I/O space mapping.
2008-08-13 18:44 [U-Boot] [PATCH] mpc7448hpc2: Fix PCI I/O space mapping Randy Vinson
@ 2008-08-14 8:49 ` Roy Zang
2008-08-26 21:22 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Roy Zang @ 2008-08-14 8:49 UTC (permalink / raw)
To: u-boot
On Thu, 2008-08-14 at 02:44 +0800, Randy Vinson wrote:
> PCI I/O space is currently mapped 1:1 at 0xFA000000. Linux requires
> PCI I/O space to start at 0 on the PCI bus. This patch maps PCI I/O
> space such that 0xFA000000 in the processor's address space maps to 0
> on the PCI I/O bus.
>
> Signed-off-by Randy Vinson <rvinson@mvista.com>
> ---
> board/freescale/mpc7448hpc2/tsi108_init.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
Acked-by: Roy Zang <tie-fei.zang@freescale.com>
Wolfgang,
Could you help to apply?
Thanks.
Roy
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] mpc7448hpc2: Fix PCI I/O space mapping.
2008-08-13 18:44 [U-Boot] [PATCH] mpc7448hpc2: Fix PCI I/O space mapping Randy Vinson
2008-08-14 8:49 ` Roy Zang
@ 2008-08-26 21:22 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2008-08-26 21:22 UTC (permalink / raw)
To: u-boot
Dear Randy Vinson,
In message <48A32BA9.9070004@mvista.com> you wrote:
> PCI I/O space is currently mapped 1:1 at 0xFA000000. Linux requires
> PCI I/O space to start at 0 on the PCI bus. This patch maps PCI I/O
> space such that 0xFA000000 in the processor's address space maps to 0
> on the PCI I/O bus.
> Signed-off-by Randy Vinson <rvinson@mvista.com>
> ---
> board/freescale/mpc7448hpc2/tsi108_init.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only thing necessary for the triumph of evil is for good men to
do nothing. - Edmund Burke
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-26 21:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-13 18:44 [U-Boot] [PATCH] mpc7448hpc2: Fix PCI I/O space mapping Randy Vinson
2008-08-14 8:49 ` Roy Zang
2008-08-26 21:22 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox