diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-18 12:58:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-18 12:58:09 -0500 |
commit | 16e024f30ce96ef5fa651e2914e19d175a924cab (patch) | |
tree | d68106151a0b36e22625d7af7b23081a48c92e87 /arch/powerpc/sysdev | |
parent | c36e0501ee91d7616a188efbf9714b1fce150032 (diff) | |
parent | 376bddd34433065aeb9b9a140870537feecf90ef (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
Pull powerpc update from Benjamin Herrenschmidt:
"The main highlight is probably some base POWER8 support. There's more
to come such as transactional memory support but that will wait for
the next one.
Overall it's pretty quiet, or rather I've been pretty poor at picking
things up from patchwork and reviewing them this time around and Kumar
no better on the FSL side it seems..."
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (73 commits)
powerpc+of: Rename and fix OF reconfig notifier error inject module
powerpc: mpc5200: Add a3m071 board support
powerpc/512x: don't compile any platform DIU code if the DIU is not enabled
powerpc/mpc52xx: use module_platform_driver macro
powerpc+of: Export of_reconfig_notifier_[register,unregister]
powerpc/dma/raidengine: add raidengine device
powerpc/iommu/fsl: Add PAMU bypass enable register to ccsr_guts struct
powerpc/mpc85xx: Change spin table to cached memory
powerpc/fsl-pci: Add PCI controller ATMU PM support
powerpc/86xx: fsl_pcibios_fixup_bus requires CONFIG_PCI
drivers/virt: the Freescale hypervisor driver doesn't need to check MSR[GS]
powerpc/85xx: p1022ds: Use NULL instead of 0 for pointers
powerpc: Disable relocation on exceptions when kexecing
powerpc: Enable relocation on during exceptions at boot
powerpc: Move get_longbusy_msecs into hvcall.h and remove duplicate function
powerpc: Add wrappers to enable/disable relocation on exceptions
powerpc: Add set_mode hcall
powerpc: Setup relocation on exceptions for bare metal systems
powerpc: Move initial mfspr LPCR out of __init_LPCR
powerpc: Add relocation on exception vector handlers
...
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/fsl_gtm.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/fsl_pci.c | 37 | ||||
-rw-r--r-- | arch/powerpc/sysdev/pmi.c | 13 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe_ic.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe_ic.h | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe_io.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/ucc.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/ucc_fast.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/ucc_slow.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/usb.c | 2 |
11 files changed, 45 insertions, 23 deletions
diff --git a/arch/powerpc/sysdev/fsl_gtm.c b/arch/powerpc/sysdev/fsl_gtm.c index 02cf1e7e77fc..0eb871cc3437 100644 --- a/arch/powerpc/sysdev/fsl_gtm.c +++ b/arch/powerpc/sysdev/fsl_gtm.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Freescale General-purpose Timers Module | 2 | * Freescale General-purpose Timers Module |
3 | * | 3 | * |
4 | * Copyright (c) Freescale Semicondutor, Inc. 2006. | 4 | * Copyright (c) Freescale Semiconductor, Inc. 2006. |
5 | * Shlomi Gridish <gridish@freescale.com> | 5 | * Shlomi Gridish <gridish@freescale.com> |
6 | * Jerry Huang <Chang-Ming.Huang@freescale.com> | 6 | * Jerry Huang <Chang-Ming.Huang@freescale.com> |
7 | * Copyright (c) MontaVista Software, Inc. 2008. | 7 | * Copyright (c) MontaVista Software, Inc. 2008. |
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 01b62a62c635..5ba325bff3a2 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c | |||
@@ -89,7 +89,7 @@ static int fsl_pci_dma_set_mask(struct device *dev, u64 dma_mask) | |||
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | 91 | ||
92 | static int __init setup_one_atmu(struct ccsr_pci __iomem *pci, | 92 | static int setup_one_atmu(struct ccsr_pci __iomem *pci, |
93 | unsigned int index, const struct resource *res, | 93 | unsigned int index, const struct resource *res, |
94 | resource_size_t offset) | 94 | resource_size_t offset) |
95 | { | 95 | { |
@@ -126,7 +126,7 @@ static int __init setup_one_atmu(struct ccsr_pci __iomem *pci, | |||
126 | } | 126 | } |
127 | 127 | ||
128 | /* atmu setup for fsl pci/pcie controller */ | 128 | /* atmu setup for fsl pci/pcie controller */ |
129 | static void __init setup_pci_atmu(struct pci_controller *hose, | 129 | static void setup_pci_atmu(struct pci_controller *hose, |
130 | struct resource *rsrc) | 130 | struct resource *rsrc) |
131 | { | 131 | { |
132 | struct ccsr_pci __iomem *pci; | 132 | struct ccsr_pci __iomem *pci; |
@@ -902,9 +902,42 @@ static int __devinit fsl_pci_probe(struct platform_device *pdev) | |||
902 | return 0; | 902 | return 0; |
903 | } | 903 | } |
904 | 904 | ||
905 | #ifdef CONFIG_PM | ||
906 | static int fsl_pci_resume(struct device *dev) | ||
907 | { | ||
908 | struct pci_controller *hose; | ||
909 | struct resource pci_rsrc; | ||
910 | |||
911 | hose = pci_find_hose_for_OF_device(dev->of_node); | ||
912 | if (!hose) | ||
913 | return -ENODEV; | ||
914 | |||
915 | if (of_address_to_resource(dev->of_node, 0, &pci_rsrc)) { | ||
916 | dev_err(dev, "Get pci register base failed."); | ||
917 | return -ENODEV; | ||
918 | } | ||
919 | |||
920 | setup_pci_atmu(hose, &pci_rsrc); | ||
921 | |||
922 | return 0; | ||
923 | } | ||
924 | |||
925 | static const struct dev_pm_ops pci_pm_ops = { | ||
926 | .resume = fsl_pci_resume, | ||
927 | }; | ||
928 | |||
929 | #define PCI_PM_OPS (&pci_pm_ops) | ||
930 | |||
931 | #else | ||
932 | |||
933 | #define PCI_PM_OPS NULL | ||
934 | |||
935 | #endif | ||
936 | |||
905 | static struct platform_driver fsl_pci_driver = { | 937 | static struct platform_driver fsl_pci_driver = { |
906 | .driver = { | 938 | .driver = { |
907 | .name = "fsl-pci", | 939 | .name = "fsl-pci", |
940 | .pm = PCI_PM_OPS, | ||
908 | .of_match_table = pci_ids, | 941 | .of_match_table = pci_ids, |
909 | }, | 942 | }, |
910 | .probe = fsl_pci_probe, | 943 | .probe = fsl_pci_probe, |
diff --git a/arch/powerpc/sysdev/pmi.c b/arch/powerpc/sysdev/pmi.c index 8f0465422b1e..5aaf86c03893 100644 --- a/arch/powerpc/sysdev/pmi.c +++ b/arch/powerpc/sysdev/pmi.c | |||
@@ -214,18 +214,7 @@ static struct platform_driver pmi_of_platform_driver = { | |||
214 | .of_match_table = pmi_match, | 214 | .of_match_table = pmi_match, |
215 | }, | 215 | }, |
216 | }; | 216 | }; |
217 | 217 | module_platform_driver(pmi_of_platform_driver); | |
218 | static int __init pmi_module_init(void) | ||
219 | { | ||
220 | return platform_driver_register(&pmi_of_platform_driver); | ||
221 | } | ||
222 | module_init(pmi_module_init); | ||
223 | |||
224 | static void __exit pmi_module_exit(void) | ||
225 | { | ||
226 | platform_driver_unregister(&pmi_of_platform_driver); | ||
227 | } | ||
228 | module_exit(pmi_module_exit); | ||
229 | 218 | ||
230 | int pmi_send_message(pmi_message_t msg) | 219 | int pmi_send_message(pmi_message_t msg) |
231 | { | 220 | { |
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index b04367529729..238a07b97f2c 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2006-2010 Freescale Semicondutor, Inc. All rights reserved. | 2 | * Copyright (C) 2006-2010 Freescale Semiconductor, Inc. All rights reserved. |
3 | * | 3 | * |
4 | * Authors: Shlomi Gridish <gridish@freescale.com> | 4 | * Authors: Shlomi Gridish <gridish@freescale.com> |
5 | * Li Yang <leoli@freescale.com> | 5 | * Li Yang <leoli@freescale.com> |
diff --git a/arch/powerpc/sysdev/qe_lib/qe_ic.c b/arch/powerpc/sysdev/qe_lib/qe_ic.c index 2fba6ef2f95e..b2b87c30e266 100644 --- a/arch/powerpc/sysdev/qe_lib/qe_ic.c +++ b/arch/powerpc/sysdev/qe_lib/qe_ic.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * arch/powerpc/sysdev/qe_lib/qe_ic.c | 2 | * arch/powerpc/sysdev/qe_lib/qe_ic.c |
3 | * | 3 | * |
4 | * Copyright (C) 2006 Freescale Semicondutor, Inc. All rights reserved. | 4 | * Copyright (C) 2006 Freescale Semiconductor, Inc. All rights reserved. |
5 | * | 5 | * |
6 | * Author: Li Yang <leoli@freescale.com> | 6 | * Author: Li Yang <leoli@freescale.com> |
7 | * Based on code from Shlomi Gridish <gridish@freescale.com> | 7 | * Based on code from Shlomi Gridish <gridish@freescale.com> |
diff --git a/arch/powerpc/sysdev/qe_lib/qe_ic.h b/arch/powerpc/sysdev/qe_lib/qe_ic.h index c327872ed35c..efef7ab9b753 100644 --- a/arch/powerpc/sysdev/qe_lib/qe_ic.h +++ b/arch/powerpc/sysdev/qe_lib/qe_ic.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * QUICC ENGINE Interrupt Controller Header | 4 | * QUICC ENGINE Interrupt Controller Header |
5 | * | 5 | * |
6 | * Copyright (C) 2006 Freescale Semicondutor, Inc. All rights reserved. | 6 | * Copyright (C) 2006 Freescale Semiconductor, Inc. All rights reserved. |
7 | * | 7 | * |
8 | * Author: Li Yang <leoli@freescale.com> | 8 | * Author: Li Yang <leoli@freescale.com> |
9 | * Based on code from Shlomi Gridish <gridish@freescale.com> | 9 | * Based on code from Shlomi Gridish <gridish@freescale.com> |
diff --git a/arch/powerpc/sysdev/qe_lib/qe_io.c b/arch/powerpc/sysdev/qe_lib/qe_io.c index fd1a6c3b1721..a88807b3dd57 100644 --- a/arch/powerpc/sysdev/qe_lib/qe_io.c +++ b/arch/powerpc/sysdev/qe_lib/qe_io.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * QE Parallel I/O ports configuration routines | 4 | * QE Parallel I/O ports configuration routines |
5 | * | 5 | * |
6 | * Copyright (C) Freescale Semicondutor, Inc. 2006. All rights reserved. | 6 | * Copyright 2006 Freescale Semiconductor, Inc. All rights reserved. |
7 | * | 7 | * |
8 | * Author: Li Yang <LeoLi@freescale.com> | 8 | * Author: Li Yang <LeoLi@freescale.com> |
9 | * Based on code from Shlomi Gridish <gridish@freescale.com> | 9 | * Based on code from Shlomi Gridish <gridish@freescale.com> |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc.c b/arch/powerpc/sysdev/qe_lib/ucc.c index 04677505f20f..134b07d29435 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc.c +++ b/arch/powerpc/sysdev/qe_lib/ucc.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * QE UCC API Set - UCC specific routines implementations. | 4 | * QE UCC API Set - UCC specific routines implementations. |
5 | * | 5 | * |
6 | * Copyright (C) 2006 Freescale Semicondutor, Inc. All rights reserved. | 6 | * Copyright (C) 2006 Freescale Semiconductor, Inc. All rights reserved. |
7 | * | 7 | * |
8 | * Authors: Shlomi Gridish <gridish@freescale.com> | 8 | * Authors: Shlomi Gridish <gridish@freescale.com> |
9 | * Li Yang <leoli@freescale.com> | 9 | * Li Yang <leoli@freescale.com> |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_fast.c b/arch/powerpc/sysdev/qe_lib/ucc_fast.c index fba02440d122..cceb2e366738 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_fast.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_fast.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2006 Freescale Semicondutor, Inc. All rights reserved. | 2 | * Copyright (C) 2006 Freescale Semiconductor, Inc. All rights reserved. |
3 | * | 3 | * |
4 | * Authors: Shlomi Gridish <gridish@freescale.com> | 4 | * Authors: Shlomi Gridish <gridish@freescale.com> |
5 | * Li Yang <leoli@freescale.com> | 5 | * Li Yang <leoli@freescale.com> |
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_slow.c b/arch/powerpc/sysdev/qe_lib/ucc_slow.c index 524c0ead941d..1c062f48f1ac 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_slow.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_slow.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2006 Freescale Semicondutor, Inc. All rights reserved. | 2 | * Copyright (C) 2006 Freescale Semiconductor, Inc. All rights reserved. |
3 | * | 3 | * |
4 | * Authors: Shlomi Gridish <gridish@freescale.com> | 4 | * Authors: Shlomi Gridish <gridish@freescale.com> |
5 | * Li Yang <leoli@freescale.com> | 5 | * Li Yang <leoli@freescale.com> |
diff --git a/arch/powerpc/sysdev/qe_lib/usb.c b/arch/powerpc/sysdev/qe_lib/usb.c index 9162828f5da7..27f23bd15eb6 100644 --- a/arch/powerpc/sysdev/qe_lib/usb.c +++ b/arch/powerpc/sysdev/qe_lib/usb.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * QE USB routines | 2 | * QE USB routines |
3 | * | 3 | * |
4 | * Copyright (c) Freescale Semicondutor, Inc. 2006. | 4 | * Copyright 2006 Freescale Semiconductor, Inc. |
5 | * Shlomi Gridish <gridish@freescale.com> | 5 | * Shlomi Gridish <gridish@freescale.com> |
6 | * Jerry Huang <Chang-Ming.Huang@freescale.com> | 6 | * Jerry Huang <Chang-Ming.Huang@freescale.com> |
7 | * Copyright (c) MontaVista Software, Inc. 2008. | 7 | * Copyright (c) MontaVista Software, Inc. 2008. |