diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-04-13 18:56:58 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-04-13 18:56:58 -0400 |
commit | 49faf809ab824d7362870b55ef10e900ed9ca8d9 (patch) | |
tree | e69ed1959f4da31851c4c18e9b62a06610dc7eb4 /arch/arm | |
parent | 2c13d8c7a85fdbf7d5c71b4989bb5c249b76a0c1 (diff) | |
parent | 4f054d445139d63868f931328f897ac5ef87242e (diff) |
Merge tag 'mvebu-fixes-4.0-2' of git://git.infradead.org/linux-mvebu into next/dt
Pull "mvebu fix for 4.0" from Gregory CLEMENT:
use 0xf1000000 as internal registers on Armada 370 DB: needed for the
recent version of the board which no more comes with a bogus version of
the Armada 370 SoC.
* tag 'mvebu-fixes-4.0-2' of git://git.infradead.org/linux-mvebu:
ARM: mvebu: use 0xf1000000 as internal registers on Armada 370 DB
ARM: mvebu: Disable CPU Idle on Armada 38x
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/armada-370-db.dts | 11 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/pmsu.c | 16 |
2 files changed, 25 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts index 485ecf856fae..19f3bf271915 100644 --- a/arch/arm/boot/dts/armada-370-db.dts +++ b/arch/arm/boot/dts/armada-370-db.dts | |||
@@ -45,6 +45,15 @@ | |||
45 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 45 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
46 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | 46 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
47 | * OTHER DEALINGS IN THE SOFTWARE. | 47 | * OTHER DEALINGS IN THE SOFTWARE. |
48 | * | ||
49 | * Note: this Device Tree assumes that the bootloader has remapped the | ||
50 | * internal registers to 0xf1000000 (instead of the default | ||
51 | * 0xd0000000). The 0xf1000000 is the default used by the recent, | ||
52 | * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier | ||
53 | * boards were delivered with an older version of the bootloader that | ||
54 | * left internal registers mapped at 0xd0000000. If you are in this | ||
55 | * situation, you should either update your bootloader (preferred | ||
56 | * solution) or the below Device Tree should be adjusted. | ||
48 | */ | 57 | */ |
49 | 58 | ||
50 | /dts-v1/; | 59 | /dts-v1/; |
@@ -64,7 +73,7 @@ | |||
64 | }; | 73 | }; |
65 | 74 | ||
66 | soc { | 75 | soc { |
67 | ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000 | 76 | ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000 |
68 | MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>; | 77 | MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>; |
69 | 78 | ||
70 | internal-regs { | 79 | internal-regs { |
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index 8b9f5e202ccf..4f4e22206ae5 100644 --- a/arch/arm/mach-mvebu/pmsu.c +++ b/arch/arm/mach-mvebu/pmsu.c | |||
@@ -415,6 +415,9 @@ static __init int armada_38x_cpuidle_init(void) | |||
415 | void __iomem *mpsoc_base; | 415 | void __iomem *mpsoc_base; |
416 | u32 reg; | 416 | u32 reg; |
417 | 417 | ||
418 | pr_warn("CPU idle is currently broken on Armada 38x: disabling"); | ||
419 | return 0; | ||
420 | |||
418 | np = of_find_compatible_node(NULL, NULL, | 421 | np = of_find_compatible_node(NULL, NULL, |
419 | "marvell,armada-380-coherency-fabric"); | 422 | "marvell,armada-380-coherency-fabric"); |
420 | if (!np) | 423 | if (!np) |
@@ -476,6 +479,16 @@ static int __init mvebu_v7_cpu_pm_init(void) | |||
476 | return 0; | 479 | return 0; |
477 | of_node_put(np); | 480 | of_node_put(np); |
478 | 481 | ||
482 | /* | ||
483 | * Currently the CPU idle support for Armada 38x is broken, as | ||
484 | * the CPU hotplug uses some of the CPU idle functions it is | ||
485 | * broken too, so let's disable it | ||
486 | */ | ||
487 | if (of_machine_is_compatible("marvell,armada380")) { | ||
488 | cpu_hotplug_disable(); | ||
489 | pr_warn("CPU hotplug support is currently broken on Armada 38x: disabling"); | ||
490 | } | ||
491 | |||
479 | if (of_machine_is_compatible("marvell,armadaxp")) | 492 | if (of_machine_is_compatible("marvell,armadaxp")) |
480 | ret = armada_xp_cpuidle_init(); | 493 | ret = armada_xp_cpuidle_init(); |
481 | else if (of_machine_is_compatible("marvell,armada370")) | 494 | else if (of_machine_is_compatible("marvell,armada370")) |
@@ -489,7 +502,8 @@ static int __init mvebu_v7_cpu_pm_init(void) | |||
489 | return ret; | 502 | return ret; |
490 | 503 | ||
491 | mvebu_v7_pmsu_enable_l2_powerdown_onidle(); | 504 | mvebu_v7_pmsu_enable_l2_powerdown_onidle(); |
492 | platform_device_register(&mvebu_v7_cpuidle_device); | 505 | if (mvebu_v7_cpuidle_device.name) |
506 | platform_device_register(&mvebu_v7_cpuidle_device); | ||
493 | cpu_pm_register_notifier(&mvebu_v7_cpu_pm_notifier); | 507 | cpu_pm_register_notifier(&mvebu_v7_cpu_pm_notifier); |
494 | 508 | ||
495 | return 0; | 509 | return 0; |