From: Zhang Wei <wei.zhang@freescale.com>
To: paulus@samba.org
Cc: linuxppc-dev@ozlabs.org
Subject: [PATCH 1/5] Remove the errata fix codes for MPC8641 silicon ver 1.0 which is end of life.
Date: Tue, 22 May 2007 11:38:26 +0800 [thread overview]
Message-ID: <11798051101543-git-send-email-wei.zhang@freescale.com> (raw)
In-Reply-To: <11798051102658-git-send-email-wei.zhang@freescale.com>
Remove the errata fix codes for MPC8641 silicon ver 1.0 which
is end of life.
The MPC8641 silicon ver 1.0 is not fully support PCI/PCI Express
specifications. The revision 2.0 fixes all of these errata
and the rev 1.0 silicon is end of life. So errata codes are removed.
Now, The chip is full compatible with PCI/PCI Express
specifications. The generic PCI code is used.
Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
Acked-by: Roy Zang <tie-fei.zang@freescale.com>
---
arch/powerpc/Kconfig | 3 +--
arch/powerpc/platforms/86xx/mpc86xx.h | 6 ------
arch/powerpc/platforms/86xx/pci.c | 10 +---------
3 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index f768de3..42c2c57 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -175,7 +175,6 @@ config PPC_86xx
bool "Freescale 86xx"
select 6xx
select FSL_SOC
- select FSL_PCIE
select PPC_FPU
select ALTIVEC
help
@@ -647,7 +646,7 @@ config FSL_SOC
config FSL_PCIE
bool
- depends on PPC_86xx
+ depends on PPC_85xx
# Yes MCA RS/6000s exist but Linux-PPC does not currently support any
config MCA
diff --git a/arch/powerpc/platforms/86xx/mpc86xx.h b/arch/powerpc/platforms/86xx/mpc86xx.h
index 2834462..740b300 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx.h
+++ b/arch/powerpc/platforms/86xx/mpc86xx.h
@@ -19,12 +19,6 @@ extern int add_bridge(struct device_node *dev);
extern int mpc86xx_exclude_device(u_char bus, u_char devfn);
-extern void setup_indirect_pcie(struct pci_controller *hose,
- u32 cfg_addr, u32 cfg_data);
-extern void setup_indirect_pcie_nomap(struct pci_controller *hose,
- void __iomem *cfg_addr,
- void __iomem *cfg_data);
-
extern void __init mpc86xx_smp_init(void);
#endif /* __MPC86XX_H__ */
diff --git a/arch/powerpc/platforms/86xx/pci.c b/arch/powerpc/platforms/86xx/pci.c
index 8235c56..7efae7c 100644
--- a/arch/powerpc/platforms/86xx/pci.c
+++ b/arch/powerpc/platforms/86xx/pci.c
@@ -133,18 +133,10 @@ mpc86xx_setup_pcie(struct pci_controller *hose, u32 pcie_offset, u32 pcie_size)
early_write_config_word(hose, 0, 0, PCI_COMMAND, cmd);
early_write_config_byte(hose, 0, 0, PCI_LATENCY_TIMER, 0x80);
-
- /* PCIE Bus, Fix the MPC8641D host bridge's location to bus 0xFF. */
- early_read_config_dword(hose, 0, 0, PCI_PRIMARY_BUS, &temps);
- temps = (temps & 0xff000000) | (0xff) | (0x0 << 8) | (0xfe << 16);
- early_write_config_dword(hose, 0, 0, PCI_PRIMARY_BUS, temps);
}
int mpc86xx_exclude_device(u_char bus, u_char devfn)
{
- if (bus == 0 && PCI_SLOT(devfn) == 0)
- return PCIBIOS_DEVICE_NOT_FOUND;
-
return PCIBIOS_SUCCESSFUL;
}
@@ -178,7 +170,7 @@ int __init add_bridge(struct device_node *dev)
hose->first_busno = bus_range ? bus_range[0] : 0x0;
hose->last_busno = bus_range ? bus_range[1] : 0xfe;
- setup_indirect_pcie(hose, rsrc.start, rsrc.start + 0x4);
+ setup_indirect_pci(hose, rsrc.start, rsrc.start + 0x4);
/* Setup the PCIE host controller. */
mpc86xx_setup_pcie(hose, rsrc.start, rsrc.end - rsrc.start + 1);
--
1.5.1
next prev parent reply other threads:[~2007-05-22 3:31 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 3:38 [PATCH 0/5] Add the support for MPC8641 silicon rev 2.0 and MPC8641HPCN board 2.0 Zhang Wei
2007-05-22 3:38 ` Zhang Wei [this message]
2007-05-22 3:38 ` [PATCH 2/5] Add uli1575 pci-bridge sector to MPC8641HPCN dts file Zhang Wei
2007-05-22 3:38 ` [PATCH 3/5] Float the pci bus number on MPC8641HPCN board Zhang Wei
2007-05-22 3:38 ` [PATCH 4/5] Set RC of mpc8641 to transparent bridge for transfer legacy I/O access Zhang Wei
2007-05-22 3:38 ` [PATCH 5/5] Set IDE in ULI1575 to not native mode Zhang Wei
2007-05-29 18:15 ` Jon Loeliger
2007-05-29 20:50 ` Kumar Gala
2007-05-30 2:25 ` Zhang Wei-r63237
2007-05-30 11:40 ` Benjamin Herrenschmidt
2007-05-31 2:00 ` Zhang Wei-r63237
2007-05-30 11:18 ` Benjamin Herrenschmidt
2007-05-29 18:15 ` [PATCH 4/5] Set RC of mpc8641 to transparent bridge for transfer legacy I/O access Jon Loeliger
2007-05-22 17:59 ` [PATCH 3/5] Float the pci bus number on MPC8641HPCN board Wade Farnsworth
2007-05-23 3:35 ` Zhang Wei-r63237
2007-05-31 13:43 ` Kumar Gala
2007-06-01 2:01 ` Zhang Wei-r63237
2007-06-01 5:08 ` Kumar Gala
2007-06-01 6:28 ` Paul Mackerras
2007-06-01 6:45 ` Zhang Wei-r63237
2007-06-01 7:44 ` Benjamin Herrenschmidt
2007-06-01 7:53 ` Zhang Wei-r63237
2007-06-01 8:00 ` Benjamin Herrenschmidt
2007-06-01 16:35 ` Matt Sealey
2007-06-01 16:47 ` Jon Loeliger
2007-06-01 22:41 ` Benjamin Herrenschmidt
2007-06-01 22:41 ` Benjamin Herrenschmidt
2007-06-02 8:36 ` Segher Boessenkool
2007-06-02 8:55 ` Benjamin Herrenschmidt
2007-06-01 19:58 ` Kumar Gala
2007-06-01 23:28 ` Benjamin Herrenschmidt
2007-06-04 19:00 ` Jon Loeliger
2007-06-04 22:24 ` Benjamin Herrenschmidt
2007-06-01 6:29 ` Zhang Wei-r63237
2007-05-29 18:14 ` Jon Loeliger
2007-05-22 20:37 ` [PATCH 2/5] Add uli1575 pci-bridge sector to MPC8641HPCN dts file xianghua xiao
2007-05-23 3:38 ` Zhang Wei-r63237
2007-05-29 18:14 ` Jon Loeliger
2007-05-29 20:39 ` Kumar Gala
2007-05-30 10:02 ` Zhang Wei-r63237
2007-05-30 10:18 ` Segher Boessenkool
2007-05-30 11:07 ` Benjamin Herrenschmidt
2007-05-30 22:26 ` Wade Farnsworth
2007-05-29 18:13 ` [PATCH 1/5] Remove the errata fix codes for MPC8641 silicon ver 1.0 which is end of life Jon Loeliger
2007-05-22 3:53 ` [PATCH 0/5] Add the support for MPC8641 silicon rev 2.0 and MPC8641HPCN board 2.0 Kumar Gala
2007-05-22 4:46 ` Zhang Wei-r63237
2007-05-22 12:54 ` Kumar Gala
2007-05-22 16:28 ` Jon Loeliger
2007-05-22 17:47 ` Wade Farnsworth
2007-05-23 2:48 ` [PATCH 0/5] Add the support for MPC8641 silicon rev 2.0 andMPC8641HPCN " Zhang Wei-r63237
2007-05-23 22:37 ` Wade Farnsworth
2007-05-29 18:12 ` [PATCH 0/5] Add the support for MPC8641 silicon rev 2.0 and MPC8641HPCN " Jon Loeliger
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=11798051101543-git-send-email-wei.zhang@freescale.com \
--to=wei.zhang@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).