sysctrl.c (fe1a56420cf2ec28c8eceef672b87de0bbe1a260) | sysctrl.c (14fceff4771e51b23b4485b575cf9e5b3414b89b) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify it 3 * under the terms of the GNU General Public License version 2 as published 4 * by the Free Software Foundation. 5 * 6 * Copyright (C) 2011-2012 John Crispin <john@phrozen.org> 7 * Copyright (C) 2013-2015 Lantiq Beteiligungs-GmbH & Co.KG 8 */ --- 502 unchanged lines hidden (view full) --- 511 } else if (of_machine_is_compatible("lantiq,ar10")) { 512 clkdev_add_static(ltq_ar10_cpu_hz(), ltq_ar10_fpi_hz(), 513 ltq_ar10_fpi_hz(), ltq_ar10_pp32_hz()); 514 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0); 515 clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1); 516 clkdev_add_pmu("1e10b308.eth", NULL, 0, 0, PMU_SWITCH | 517 PMU_PPE_DP | PMU_PPE_TC); 518 clkdev_add_pmu("1da00000.usif", "NULL", 1, 0, PMU_USIF); | 1/* 2 * This program is free software; you can redistribute it and/or modify it 3 * under the terms of the GNU General Public License version 2 as published 4 * by the Free Software Foundation. 5 * 6 * Copyright (C) 2011-2012 John Crispin <john@phrozen.org> 7 * Copyright (C) 2013-2015 Lantiq Beteiligungs-GmbH & Co.KG 8 */ --- 502 unchanged lines hidden (view full) --- 511 } else if (of_machine_is_compatible("lantiq,ar10")) { 512 clkdev_add_static(ltq_ar10_cpu_hz(), ltq_ar10_fpi_hz(), 513 ltq_ar10_fpi_hz(), ltq_ar10_pp32_hz()); 514 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0); 515 clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1); 516 clkdev_add_pmu("1e10b308.eth", NULL, 0, 0, PMU_SWITCH | 517 PMU_PPE_DP | PMU_PPE_TC); 518 clkdev_add_pmu("1da00000.usif", "NULL", 1, 0, PMU_USIF); |
519 clkdev_add_pmu("1f203020.gphy", NULL, 1, 0, PMU_GPHY); 520 clkdev_add_pmu("1f203068.gphy", NULL, 1, 0, PMU_GPHY); | 519 clkdev_add_pmu("1e108000.gswip", "gphy0", 0, 0, PMU_GPHY); 520 clkdev_add_pmu("1e108000.gswip", "gphy1", 0, 0, PMU_GPHY); |
521 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); 522 clkdev_add_pmu("1e116000.mei", "afe", 1, 2, PMU_ANALOG_DSL_AFE); 523 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); 524 } else if (of_machine_is_compatible("lantiq,vr9")) { 525 clkdev_add_static(ltq_vr9_cpu_hz(), ltq_vr9_fpi_hz(), 526 ltq_vr9_fpi_hz(), ltq_vr9_pp32_hz()); 527 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); 528 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); --- 6 unchanged lines hidden (view full) --- 535 clkdev_add_pmu("1d900000.pcie", "ctl", 1, 1, PMU1_PCIE_CTL); 536 clkdev_add_pmu(NULL, "ahb", 1, 0, PMU_AHBM | PMU_AHBS); 537 538 clkdev_add_pmu("1da00000.usif", "NULL", 1, 0, PMU_USIF); 539 clkdev_add_pmu("1e10b308.eth", NULL, 0, 0, 540 PMU_SWITCH | PMU_PPE_DPLUS | PMU_PPE_DPLUM | 541 PMU_PPE_EMA | PMU_PPE_TC | PMU_PPE_SLL01 | 542 PMU_PPE_QSB | PMU_PPE_TOP); | 521 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); 522 clkdev_add_pmu("1e116000.mei", "afe", 1, 2, PMU_ANALOG_DSL_AFE); 523 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); 524 } else if (of_machine_is_compatible("lantiq,vr9")) { 525 clkdev_add_static(ltq_vr9_cpu_hz(), ltq_vr9_fpi_hz(), 526 ltq_vr9_fpi_hz(), ltq_vr9_pp32_hz()); 527 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); 528 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); --- 6 unchanged lines hidden (view full) --- 535 clkdev_add_pmu("1d900000.pcie", "ctl", 1, 1, PMU1_PCIE_CTL); 536 clkdev_add_pmu(NULL, "ahb", 1, 0, PMU_AHBM | PMU_AHBS); 537 538 clkdev_add_pmu("1da00000.usif", "NULL", 1, 0, PMU_USIF); 539 clkdev_add_pmu("1e10b308.eth", NULL, 0, 0, 540 PMU_SWITCH | PMU_PPE_DPLUS | PMU_PPE_DPLUM | 541 PMU_PPE_EMA | PMU_PPE_TC | PMU_PPE_SLL01 | 542 PMU_PPE_QSB | PMU_PPE_TOP); |
543 clkdev_add_pmu("1f203020.gphy", NULL, 0, 0, PMU_GPHY); 544 clkdev_add_pmu("1f203068.gphy", NULL, 0, 0, PMU_GPHY); | 543 clkdev_add_pmu("1e108000.gswip", "gphy0", 0, 0, PMU_GPHY); 544 clkdev_add_pmu("1e108000.gswip", "gphy1", 0, 0, PMU_GPHY); |
545 clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO); 546 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); 547 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); 548 } else if (of_machine_is_compatible("lantiq,ar9")) { 549 clkdev_add_static(ltq_ar9_cpu_hz(), ltq_ar9_fpi_hz(), 550 ltq_ar9_fpi_hz(), CLOCK_250M); 551 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); 552 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); --- 18 unchanged lines hidden --- | 545 clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO); 546 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU); 547 clkdev_add_pmu("1e116000.mei", "dfe", 1, 0, PMU_DFE); 548 } else if (of_machine_is_compatible("lantiq,ar9")) { 549 clkdev_add_static(ltq_ar9_cpu_hz(), ltq_ar9_fpi_hz(), 550 ltq_ar9_fpi_hz(), CLOCK_250M); 551 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P); 552 clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | PMU_AHBM); --- 18 unchanged lines hidden --- |