aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-11-04 21:57:45 -0500
committerOlof Johansson <olof@lixom.net>2007-11-29 23:30:47 -0500
commit0d08a84770cb03aea24268e515342d44df8ea588 (patch)
tree91709fffba8ef377b6bada9f911e7e39f48cb649
parent2dd3c0016090543e12aa0c5aee574ded6a88b886 (diff)
[POWERPC] pasemi: Broaden specific references to 1682M
There will be more product numbers in the future than just PA6T-1682M, but they will share much of the features. Remove some of the explicit references and compatibility checks with 1682M, and replace most of them with the more generic term "PWRficient". Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Michael Buesch <mb@bu3sch.de> Acked-by: Doug Thompson <dougthompson@xmission.com>
-rw-r--r--arch/powerpc/platforms/pasemi/Kconfig2
-rw-r--r--arch/powerpc/platforms/pasemi/cpufreq.c13
-rw-r--r--arch/powerpc/platforms/pasemi/gpio_mdio.c5
-rw-r--r--arch/powerpc/platforms/pasemi/setup.c9
-rw-r--r--drivers/char/hw_random/Kconfig2
-rw-r--r--drivers/char/hw_random/pasemi-rng.c7
-rw-r--r--drivers/edac/pasemi_edac.c4
7 files changed, 28 insertions, 14 deletions
diff --git a/arch/powerpc/platforms/pasemi/Kconfig b/arch/powerpc/platforms/pasemi/Kconfig
index 735e1536cbfc..2f4dd6e4aac1 100644
--- a/arch/powerpc/platforms/pasemi/Kconfig
+++ b/arch/powerpc/platforms/pasemi/Kconfig
@@ -17,7 +17,7 @@ config PPC_PASEMI_IOMMU
17 bool "PA Semi IOMMU support" 17 bool "PA Semi IOMMU support"
18 depends on PPC_PASEMI 18 depends on PPC_PASEMI
19 help 19 help
20 IOMMU support for PA6T-1682M 20 IOMMU support for PA Semi PWRficient
21 21
22config PPC_PASEMI_IOMMU_DMA_FORCE 22config PPC_PASEMI_IOMMU_DMA_FORCE
23 bool "Force DMA engine to use IOMMU" 23 bool "Force DMA engine to use IOMMU"
diff --git a/arch/powerpc/platforms/pasemi/cpufreq.c b/arch/powerpc/platforms/pasemi/cpufreq.c
index 1cfb8b0c8fec..8caa1667cf34 100644
--- a/arch/powerpc/platforms/pasemi/cpufreq.c
+++ b/arch/powerpc/platforms/pasemi/cpufreq.c
@@ -147,7 +147,10 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
147 if (!cpu) 147 if (!cpu)
148 goto out; 148 goto out;
149 149
150 dn = of_find_compatible_node(NULL, "sdc", "1682m-sdc"); 150 dn = of_find_compatible_node(NULL, NULL, "1682m-sdc");
151 if (!dn)
152 dn = of_find_compatible_node(NULL, NULL,
153 "pasemi,pwrficient-sdc");
151 if (!dn) 154 if (!dn)
152 goto out; 155 goto out;
153 err = of_address_to_resource(dn, 0, &res); 156 err = of_address_to_resource(dn, 0, &res);
@@ -160,7 +163,10 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
160 goto out; 163 goto out;
161 } 164 }
162 165
163 dn = of_find_compatible_node(NULL, "gizmo", "1682m-gizmo"); 166 dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo");
167 if (!dn)
168 dn = of_find_compatible_node(NULL, NULL,
169 "pasemi,pwrficient-gizmo");
164 if (!dn) { 170 if (!dn) {
165 err = -ENODEV; 171 err = -ENODEV;
166 goto out_unmap_sdcasr; 172 goto out_unmap_sdcasr;
@@ -292,7 +298,8 @@ static struct cpufreq_driver pas_cpufreq_driver = {
292 298
293static int __init pas_cpufreq_init(void) 299static int __init pas_cpufreq_init(void)
294{ 300{
295 if (!machine_is_compatible("PA6T-1682M")) 301 if (!machine_is_compatible("PA6T-1682M") &&
302 !machine_is_compatible("pasemi,pwrficient"))
296 return -ENODEV; 303 return -ENODEV;
297 304
298 return cpufreq_register_driver(&pas_cpufreq_driver); 305 return cpufreq_register_driver(&pas_cpufreq_driver);
diff --git a/arch/powerpc/platforms/pasemi/gpio_mdio.c b/arch/powerpc/platforms/pasemi/gpio_mdio.c
index 95d0c78cf634..b0298045df7e 100644
--- a/arch/powerpc/platforms/pasemi/gpio_mdio.c
+++ b/arch/powerpc/platforms/pasemi/gpio_mdio.c
@@ -333,7 +333,10 @@ int gpio_mdio_init(void)
333{ 333{
334 struct device_node *np; 334 struct device_node *np;
335 335
336 np = of_find_compatible_node(NULL, "gpio", "1682m-gpio"); 336 np = of_find_compatible_node(NULL, NULL, "1682m-gpio");
337 if (!np)
338 np = of_find_compatible_node(NULL, NULL,
339 "pasemi,pwrficient-gpio");
337 if (!np) 340 if (!np)
338 return -ENODEV; 341 return -ENODEV;
339 gpio_regs = of_iomap(np, 0); 342 gpio_regs = of_iomap(np, 0);
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c
index 3d62060498b4..bd85853bc9da 100644
--- a/arch/powerpc/platforms/pasemi/setup.c
+++ b/arch/powerpc/platforms/pasemi/setup.c
@@ -362,8 +362,12 @@ static inline void pasemi_pcmcia_init(void)
362 362
363 363
364static struct of_device_id pasemi_bus_ids[] = { 364static struct of_device_id pasemi_bus_ids[] = {
365 /* Unfortunately needed for legacy firmwares */
365 { .type = "localbus", }, 366 { .type = "localbus", },
366 { .type = "sdc", }, 367 { .type = "sdc", },
368 /* These are the proper entries, which newer firmware uses */
369 { .compatible = "pasemi,localbus", },
370 { .compatible = "pasemi,sdc", },
367 {}, 371 {},
368}; 372};
369 373
@@ -389,7 +393,8 @@ static int __init pas_probe(void)
389{ 393{
390 unsigned long root = of_get_flat_dt_root(); 394 unsigned long root = of_get_flat_dt_root();
391 395
392 if (!of_flat_dt_is_compatible(root, "PA6T-1682M")) 396 if (!of_flat_dt_is_compatible(root, "PA6T-1682M") &&
397 !of_flat_dt_is_compatible(root, "pasemi,pwrficient"))
393 return 0; 398 return 0;
394 399
395 hpte_init_native(); 400 hpte_init_native();
@@ -400,7 +405,7 @@ static int __init pas_probe(void)
400} 405}
401 406
402define_machine(pasemi) { 407define_machine(pasemi) {
403 .name = "PA Semi PA6T-1682M", 408 .name = "PA Semi PWRficient",
404 .probe = pas_probe, 409 .probe = pas_probe,
405 .setup_arch = pas_setup_arch, 410 .setup_arch = pas_setup_arch,
406 .init_early = pas_init_early, 411 .init_early = pas_init_early,
diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index 2d7cd486e025..6bbd4fa50f3b 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -98,7 +98,7 @@ config HW_RANDOM_PASEMI
98 default HW_RANDOM 98 default HW_RANDOM
99 ---help--- 99 ---help---
100 This driver provides kernel-side support for the Random Number 100 This driver provides kernel-side support for the Random Number
101 Generator hardware found on PA6T-1682M processor. 101 Generator hardware found on PA Semi PWRficient SoCs.
102 102
103 To compile this driver as a module, choose M here: the 103 To compile this driver as a module, choose M here: the
104 module will be called pasemi-rng. 104 module will be called pasemi-rng.
diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c
index fa6040b6c8f2..24ae3073991f 100644
--- a/drivers/char/hw_random/pasemi-rng.c
+++ b/drivers/char/hw_random/pasemi-rng.c
@@ -126,10 +126,9 @@ static int __devexit rng_remove(struct of_device *dev)
126} 126}
127 127
128static struct of_device_id rng_match[] = { 128static struct of_device_id rng_match[] = {
129 { 129 { .compatible = "1682m-rng", },
130 .compatible = "1682m-rng", 130 { .compatible = "pasemi,pwrficient-rng", },
131 }, 131 { },
132 {},
133}; 132};
134 133
135static struct of_platform_driver rng_driver = { 134static struct of_platform_driver rng_driver = {
diff --git a/drivers/edac/pasemi_edac.c b/drivers/edac/pasemi_edac.c
index 9007d0677220..90320917be28 100644
--- a/drivers/edac/pasemi_edac.c
+++ b/drivers/edac/pasemi_edac.c
@@ -225,7 +225,7 @@ static int __devinit pasemi_edac_probe(struct pci_dev *pdev,
225 EDAC_FLAG_NONE; 225 EDAC_FLAG_NONE;
226 mci->mod_name = MODULE_NAME; 226 mci->mod_name = MODULE_NAME;
227 mci->dev_name = pci_name(pdev); 227 mci->dev_name = pci_name(pdev);
228 mci->ctl_name = "pasemi,1682m-mc"; 228 mci->ctl_name = "pasemi,pwrficient-mc";
229 mci->edac_check = pasemi_edac_check; 229 mci->edac_check = pasemi_edac_check;
230 mci->ctl_page_to_phys = NULL; 230 mci->ctl_page_to_phys = NULL;
231 pci_read_config_dword(pdev, MCCFG_SCRUB, &scrub); 231 pci_read_config_dword(pdev, MCCFG_SCRUB, &scrub);
@@ -297,4 +297,4 @@ module_exit(pasemi_edac_exit);
297 297
298MODULE_LICENSE("GPL"); 298MODULE_LICENSE("GPL");
299MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>"); 299MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>");
300MODULE_DESCRIPTION("MC support for PA Semi PA6T-1682M memory controller"); 300MODULE_DESCRIPTION("MC support for PA Semi PWRficient memory controller");