base-files: define yes/no as valid boolean options
[openwrt.git] / target / linux / mvebu / patches-3.10 / 0164-ARM-mvebu-fix-register-length-for-Armada-XP-PMSU.patch
1 From 10208caf7f0ebfb3d6b546aa2ae66e42462551e0 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 4 Dec 2013 14:37:52 +0100
4 Subject: [PATCH 164/203] ARM: mvebu: fix register length for Armada XP PMSU
5
6 The per-CPU PMSU registers documented in the datasheet start at
7 0x22100 and the last register for CPU3 is at 0x22428. However, the DT
8 informations use <0x22100 0x430>, which makes the region end at
9 0x22530 and not 0x22430.
10
11 Moreover, looking at the datasheet, we can see that the registers for
12 CPU0 start at 0x22100, for CPU1 at 0x22200, for CPU2 at 0x22300 and
13 for CPU3 at 0x22400. It seems clear that 0x100 bytes of registers have
14 been used per CPU.
15
16 Therefore, this commit reduces the length of the PMSU per-CPU register
17 area from the incorrect 0x430 bytes to a more logical 0x400 bytes.
18
19 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
20 ---
21  arch/arm/boot/dts/armada-xp.dtsi | 2 +-
22  1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- a/arch/arm/boot/dts/armada-xp.dtsi
25 +++ b/arch/arm/boot/dts/armada-xp.dtsi
26 @@ -48,7 +48,7 @@
27  
28                         armada-370-xp-pmsu@22000 {
29                                 compatible = "marvell,armada-370-xp-pmsu";
30 -                               reg = <0x22100 0x430>, <0x20800 0x20>;
31 +                               reg = <0x22100 0x400>, <0x20800 0x20>;
32                         };
33  
34                         serial@12200 {