diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/44x/Kconfig | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/Kconfig | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/pasemi/Kconfig | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/pasemi/iommu.c | 15 |
4 files changed, 25 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/Kconfig index f28acdcbd6c9..51f3ea40a285 100644 --- a/arch/powerpc/platforms/44x/Kconfig +++ b/arch/powerpc/platforms/44x/Kconfig | |||
@@ -54,8 +54,7 @@ config 440EPX | |||
54 | 54 | ||
55 | config 440GP | 55 | config 440GP |
56 | bool | 56 | bool |
57 | # Disabled until the new EMAC Driver is merged. | 57 | select IBM_NEW_EMAC_ZMII |
58 | # select IBM_NEW_EMAC_ZMII | ||
59 | 58 | ||
60 | config 440GX | 59 | config 440GX |
61 | bool | 60 | bool |
diff --git a/arch/powerpc/platforms/cell/Kconfig b/arch/powerpc/platforms/cell/Kconfig index ac8032034fb8..e1e2f6a43019 100644 --- a/arch/powerpc/platforms/cell/Kconfig +++ b/arch/powerpc/platforms/cell/Kconfig | |||
@@ -10,6 +10,10 @@ config PPC_CELL_NATIVE | |||
10 | select PPC_INDIRECT_IO | 10 | select PPC_INDIRECT_IO |
11 | select PPC_NATIVE | 11 | select PPC_NATIVE |
12 | select MPIC | 12 | select MPIC |
13 | select IBM_NEW_EMAC_EMAC4 | ||
14 | select IBM_NEW_EMAC_RGMII | ||
15 | select IBM_NEW_EMAC_ZMII #test only | ||
16 | select IBM_NEW_EMAC_TAH #test only | ||
13 | default n | 17 | default n |
14 | 18 | ||
15 | config PPC_IBM_CELL_BLADE | 19 | config PPC_IBM_CELL_BLADE |
diff --git a/arch/powerpc/platforms/pasemi/Kconfig b/arch/powerpc/platforms/pasemi/Kconfig index 117d90aa5008..735e1536cbfc 100644 --- a/arch/powerpc/platforms/pasemi/Kconfig +++ b/arch/powerpc/platforms/pasemi/Kconfig | |||
@@ -19,6 +19,16 @@ config PPC_PASEMI_IOMMU | |||
19 | help | 19 | help |
20 | IOMMU support for PA6T-1682M | 20 | IOMMU support for PA6T-1682M |
21 | 21 | ||
22 | config PPC_PASEMI_IOMMU_DMA_FORCE | ||
23 | bool "Force DMA engine to use IOMMU" | ||
24 | depends on PPC_PASEMI_IOMMU | ||
25 | help | ||
26 | This option forces the use of the IOMMU also for the | ||
27 | DMA engine. Otherwise the kernel will use it only when | ||
28 | running under a hypervisor. | ||
29 | |||
30 | If in doubt, say "N". | ||
31 | |||
22 | config PPC_PASEMI_MDIO | 32 | config PPC_PASEMI_MDIO |
23 | depends on PHYLIB | 33 | depends on PHYLIB |
24 | tristate "MDIO support via GPIO" | 34 | tristate "MDIO support via GPIO" |
diff --git a/arch/powerpc/platforms/pasemi/iommu.c b/arch/powerpc/platforms/pasemi/iommu.c index 6c42787fb382..9916a0f3e431 100644 --- a/arch/powerpc/platforms/pasemi/iommu.c +++ b/arch/powerpc/platforms/pasemi/iommu.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/iommu.h> | 25 | #include <asm/iommu.h> |
26 | #include <asm/machdep.h> | 26 | #include <asm/machdep.h> |
27 | #include <asm/abs_addr.h> | 27 | #include <asm/abs_addr.h> |
28 | #include <asm/firmware.h> | ||
28 | 29 | ||
29 | 30 | ||
30 | #define IOBMAP_PAGE_SHIFT 12 | 31 | #define IOBMAP_PAGE_SHIFT 12 |
@@ -175,13 +176,17 @@ static void pci_dma_dev_setup_pasemi(struct pci_dev *dev) | |||
175 | { | 176 | { |
176 | pr_debug("pci_dma_dev_setup, dev %p (%s)\n", dev, pci_name(dev)); | 177 | pr_debug("pci_dma_dev_setup, dev %p (%s)\n", dev, pci_name(dev)); |
177 | 178 | ||
178 | /* DMA device is untranslated, but all other PCI-e goes through | 179 | #if !defined(CONFIG_PPC_PASEMI_IOMMU_DMA_FORCE) |
179 | * the IOMMU | 180 | /* For non-LPAR environment, don't translate anything for the DMA |
181 | * engine. The exception to this is if the user has enabled | ||
182 | * CONFIG_PPC_PASEMI_IOMMU_DMA_FORCE at build time. | ||
180 | */ | 183 | */ |
181 | if (dev->vendor == 0x1959 && dev->device == 0xa007) | 184 | if (dev->vendor == 0x1959 && dev->device == 0xa007 && |
185 | !firmware_has_feature(FW_FEATURE_LPAR)) | ||
182 | dev->dev.archdata.dma_ops = &dma_direct_ops; | 186 | dev->dev.archdata.dma_ops = &dma_direct_ops; |
183 | else | 187 | #endif |
184 | dev->dev.archdata.dma_data = &iommu_table_iobmap; | 188 | |
189 | dev->dev.archdata.dma_data = &iommu_table_iobmap; | ||
185 | } | 190 | } |
186 | 191 | ||
187 | static void pci_dma_bus_setup_null(struct pci_bus *b) { } | 192 | static void pci_dma_bus_setup_null(struct pci_bus *b) { } |