Skip to content

Commit 70f3900

Browse files
committed
Merge tag 'kirkwood_fixes_for_v3.7' of git://git.infradead.org/users/jcooper/linux into fixes
From Jason Cooper: - improve #ifdef logic to prevent linker errors with CACHE_FEROCEON_L2 - lsxl board dts fixes * tag 'kirkwood_fixes_for_v3.7' of git://git.infradead.org/users/jcooper/linux: ARM: kirkwood: fix buttons on lsxl boards ARM: kirkwood: fix LEDs names for lsxl boards ARM: Kirkwood: fix disabling CACHE_FEROCEON_L2
2 parents 068a565 + 1243163 commit 70f3900

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

arch/arm/boot/dts/kirkwood-lsxl.dtsi

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,19 @@
4848
#size-cells = <0>;
4949
button@1 {
5050
label = "Function Button";
51-
linux,code = <132>;
51+
linux,code = <357>;
5252
gpios = <&gpio1 9 1>;
5353
};
5454
button@2 {
5555
label = "Power-on Switch";
56-
linux,code = <116>;
56+
linux,code = <0>;
57+
linux,input-type = <5>;
5758
gpios = <&gpio1 10 1>;
5859
};
5960
button@3 {
6061
label = "Power-auto Switch";
61-
linux,code = <142>;
62+
linux,code = <1>;
63+
linux,input-type = <5>;
6264
gpios = <&gpio1 11 1>;
6365
};
6466
};
@@ -67,28 +69,28 @@
6769
compatible = "gpio-leds";
6870

6971
led@1 {
70-
label = "lschlv2:blue:func";
72+
label = "lsxl:blue:func";
7173
gpios = <&gpio1 4 1>;
7274
};
7375

7476
led@2 {
75-
label = "lschlv2:red:alarm";
77+
label = "lsxl:red:alarm";
7678
gpios = <&gpio1 5 1>;
7779
};
7880

7981
led@3 {
80-
label = "lschlv2:amber:info";
82+
label = "lsxl:amber:info";
8183
gpios = <&gpio1 6 1>;
8284
};
8385

8486
led@4 {
85-
label = "lschlv2:blue:power";
87+
label = "lsxl:blue:power";
8688
gpios = <&gpio1 7 1>;
8789
linux,default-trigger = "default-on";
8890
};
8991

9092
led@5 {
91-
label = "lschlv2:red:func";
93+
label = "lsxl:red:func";
9294
gpios = <&gpio1 16 1>;
9395
};
9496
};

arch/arm/mach-kirkwood/board-dt.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ static void __init kirkwood_dt_init(void)
5151

5252
kirkwood_setup_cpu_mbus();
5353

54-
#ifdef CONFIG_CACHE_FEROCEON_L2
5554
kirkwood_l2_init();
56-
#endif
5755

5856
/* Setup root of clk tree */
5957
kirkwood_clk_init();

arch/arm/mach-kirkwood/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,13 +633,15 @@ char * __init kirkwood_id(void)
633633

634634
void __init kirkwood_l2_init(void)
635635
{
636+
#ifdef CONFIG_CACHE_FEROCEON_L2
636637
#ifdef CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH
637638
writel(readl(L2_CONFIG_REG) | L2_WRITETHROUGH, L2_CONFIG_REG);
638639
feroceon_l2_init(1);
639640
#else
640641
writel(readl(L2_CONFIG_REG) & ~L2_WRITETHROUGH, L2_CONFIG_REG);
641642
feroceon_l2_init(0);
642643
#endif
644+
#endif
643645
}
644646

645647
void __init kirkwood_init(void)
@@ -657,9 +659,7 @@ void __init kirkwood_init(void)
657659

658660
kirkwood_setup_cpu_mbus();
659661

660-
#ifdef CONFIG_CACHE_FEROCEON_L2
661662
kirkwood_l2_init();
662-
#endif
663663

664664
/* Setup root of clk tree */
665665
kirkwood_clk_init();

0 commit comments

Comments
 (0)