Use common quirks routines for ULI chips
Subsystems (2)
cover Use common quirks routines for ULI chips
Hi,
These two patches add common quirks routines for
ULI chip on MPC8641HPCN and MPC8544DS board.
It supposes to support future powerpc platform using ULI chips.
[PATCH 1/2] Add sysdev/pci_quirks.c file into PowerPC architecture with ULI chip quirk functions. [PATCH 2/2] Remove ULI chip quirks functions from MPC8641HPCN and MPC8544DS boards.
Best Regards,
Zhang Wei
PATCH 1/2 Add sysdev/pci_quirks.c file into PowerPC architecture with ULI chip quirk functions.
Add sysdev/pci_quirks.c file into PowerPC architecture with ULI chip quirk functions.
We add generic quirk functions for ULI chips
from individual platform into arch/powerpc/sysdev/pci_quirks.c file.
--- arch/powerpc/platforms/Kconfig | 4 + arch/powerpc/sysdev/Makefile | 1 + arch/powerpc/sysdev/pci_quirks.c | 252 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 257 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/sysdev/pci_quirks.c
arch/powerpc/platforms/Kconfig +4 -0
@@ -160,6 +160,10 @@ config PPC_INDIRECT_IO select GENERIC_IOMAP default n +config PPC_PCI_QUIRKS + bool + default n + config GENERIC_IOMAP bool default n
arch/powerpc/sysdev/Makefile +1 -0
@@ -13,6 +13,7 @@ obj-$(CONFIG_U3_DART) += dart_iommu.o obj-$(CONFIG_MMIO_NVRAM) += mmio_nvram.o obj-$(CONFIG_FSL_SOC) += fsl_soc.o obj-$(CONFIG_FSL_PCI) += fsl_pci.o +obj-$(CONFIG_PPC_PCI_QUIRKS) += pci_quirks.o obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pci.o tsi108_dev.o obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ mv64x60-$(CONFIG_PCI) += mv64x60_pci.o
arch/powerpc/sysdev/pci_quirks.c new file +252 -0
252 lines not on this page · raw message
Signature · 1 line
1.5.1
PATCH 2/2 Remove ULI chip quirks functions from MPC8641HPCN and MPC8544DS boards.
Remove ULI chip quirks functions from MPC8641HPCN and MPC8544DS boards. Use common quirks functions instead.
--- arch/powerpc/platforms/85xx/Kconfig | 1 + arch/powerpc/platforms/85xx/mpc8544_ds.c | 207 -------------------------- arch/powerpc/platforms/86xx/Kconfig | 1 + arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 217 ---------------------------- 4 files changed, 2 insertions(+), 424 deletions(-)
arch/powerpc/platforms/85xx/Kconfig +1 -0
@@ -32,6 +32,7 @@ config MPC85xx_MDS config MPC8544_DS bool "Freescale MPC8544 DS" select PPC_I8259 + select PPC_PCI_QUIRKS select DEFAULT_UIMAGE help This option enables support for the MPC8544 DS board
arch/powerpc/platforms/85xx/mpc8544_ds.c +0 -207
213 lines not on this page · raw message
arch/powerpc/platforms/86xx/Kconfig +1 -0
@@ -6,6 +6,7 @@ choice config MPC8641_HPCN bool "Freescale MPC8641 HPCN" select PPC_I8259 + select PPC_PCI_QUIRKS select DEFAULT_UIMAGE help This option enables support for the MPC8641 HPCN board.
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +0 -217
223 lines not on this page · raw message
Signature · 1 line
1.5.1
Re: [PATCH 1/2] Add sysdev/pci_quirks.c file into PowerPC architecture with ULI chip quirk functions.
In reply to Zhang WeiQuoted 5 lines · Zhang Wei
Add
sysdev/pci_quirks.cfile into PowerPC architecture with ULI chip quirk functions.
We add generic quirk functions for ULI chips
from individual platform intoarch/powerpc/sysdev/pci_quirks.cfile.
Are we sure that any powerpc machine that uses that ULI chip will need the same quirk setting ?
Ben.
RE: [PATCH 1/2] Add sysdev/pci_quirks.c file into PowerPCarchitecture with ULI chip quirk functions.
Hi, Ben,
=20
Quoted 4 lines
=20
Are we sure that any powerpc machine that uses that ULI chip will need the same quirk setting ?
=20
We can ensure current platforms (as far as we know, MPC8544DS and MPC8641HPCN) using ULI chips in powerpc of kernel need the same quirk setting.
And we hope to make them more generic. And if there are some different setting in the future, we can add special codes.
Thanks!
-zw
RE: [PATCH 1/2] Add sysdev/pci_quirks.c file into PowerPCarchitecture with ULI chip quirk functions.
Quoted 7 lines · On Thu, 2007-08-02 at 09:17 +0800, Zhang Wei-r63237 wrote:
Hi, Ben,
Quoted 4 lines
Are we sure that any powerpc machine that uses that ULI chip will need the same quirk setting ?
Quoted 5 lines
We can ensure current platforms (as far as we know, MPC8544DS and MPC8641HPCN) using ULI chips in powerpc of kernel need the same quirk setting.
And we hope to make them more generic. And if there are some different setting in the future, we can add special codes.
All right.
Ben.
Re: [PATCH 1/2] Add sysdev/pci_quirks.c file into PowerPCarchitecture with ULI chip quirk functions.
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 7 lines · On Thu, 2007-08-02 at 09:17 +0800, Zhang Wei-r63237 wrote:
Hi, Ben,
Quoted 4 lines
Are we sure that any powerpc machine that uses that ULI chip will need the same quirk setting ?
Quoted 7 lines
Quoted 5 lines
We can ensure current platforms (as far as we know, MPC8544DS and MPC8641HPCN) using ULI chips in powerpc of kernel need the same quirk setting.
And we hope to make them more generic. And if there are some different setting in the future, we can add special codes.All right.
My feeling is this code is pretty specific to how the ULI M1575 is used on those boards and should only be built for those boards.
- k
Re: [PATCH 1/2] Add sysdev/pci_quirks.c file into PowerPCarchitecture with ULI chip quirk functions.
Quoted 19 lines · Kumar Gala
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 10 lines · On Thu, 2007-08-02 at 09:17 +0800, Zhang Wei-r63237 wrote:
Hi, Ben,
Quoted 5 lines
Are we sure that any powerpc machine that uses that ULI chip will need
the same quirk setting ?We can ensure current platforms (as far as we know, MPC8544DS and MPC8641HPCN) using ULI chips in powerpc of kernel need the same
quirk
Quoted 5 lines
Quoted 4 lines
setting.
And we hope to make them more generic. And if there are some different
setting in the future, we can add special codes.
Quoted 4 lines
Quoted 1 line
All right.
My feeling is this code is pretty specific to how the ULI M1575 is used on those boards and should only be built for those boards.
Until now, it is right.
Roy