Skip to content

Commit c98158e

Browse files
committed
Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC fixes from Arnd Bergmann: "A nice small set of bug fixes for arm-soc: - two incorrect register addresses in DT files on shmobile and hisilicon - one revert for a regression on omap - one bug fix for a newly introduced pin controller binding - one regression fix for the memory controller on omap - one patch to avoid a harmless WARN_ON" * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: ARM: dts: Revert enabling of twl configuration for n900 ARM: dts: fix L2 address in Hi3620 ARM: OMAP2+: gpmc: fix gpmc_hwecc_bch_capable() pinctrl: dra: dt-bindings: Fix pull enable/disable ARM: shmobile: r8a7791: Fix SD2CKCR register address ARM: OMAP2+: l2c: squelch warning dump on power control setting
2 parents 0ef1351 + a1ae5b1 commit c98158e

File tree

6 files changed

+22
-15
lines changed

6 files changed

+22
-15
lines changed

arch/arm/boot/dts/hi3620.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
L2: l2-cache {
7575
compatible = "arm,pl310-cache";
76-
reg = <0xfc10000 0x100000>;
76+
reg = <0x100000 0x100000>;
7777
interrupts = <0 15 4>;
7878
cache-unified;
7979
cache-level = <2>;

arch/arm/boot/dts/omap3-n900.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@
353353
};
354354

355355
twl_power: power {
356-
compatible = "ti,twl4030-power-n900", "ti,twl4030-power-idle-osc-off";
356+
compatible = "ti,twl4030-power-n900";
357357
ti,use_poweroff;
358358
};
359359
};

arch/arm/boot/dts/r8a7791.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@
540540
#clock-cells = <0>;
541541
clock-output-names = "sd1";
542542
};
543-
sd2_clk: sd3_clk@e615007c {
543+
sd2_clk: sd3_clk@e615026c {
544544
compatible = "renesas,r8a7791-div6-clock", "renesas,cpg-div6-clock";
545-
reg = <0 0xe615007c 0 4>;
545+
reg = <0 0xe615026c 0 4>;
546546
clocks = <&pll1_div2_clk>;
547547
#clock-cells = <0>;
548548
clock-output-names = "sd2";

arch/arm/mach-omap2/gpmc-nand.c

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,23 @@ static bool gpmc_hwecc_bch_capable(enum omap_ecc ecc_opt)
5050
soc_is_omap54xx() || soc_is_dra7xx())
5151
return 1;
5252

53+
if (ecc_opt == OMAP_ECC_BCH4_CODE_HW_DETECTION_SW ||
54+
ecc_opt == OMAP_ECC_BCH8_CODE_HW_DETECTION_SW) {
55+
if (cpu_is_omap24xx())
56+
return 0;
57+
else if (cpu_is_omap3630() && (GET_OMAP_REVISION() == 0))
58+
return 0;
59+
else
60+
return 1;
61+
}
62+
5363
/* OMAP3xxx do not have ELM engine, so cannot support ECC schemes
5464
* which require H/W based ECC error detection */
5565
if ((cpu_is_omap34xx() || cpu_is_omap3630()) &&
5666
((ecc_opt == OMAP_ECC_BCH4_CODE_HW) ||
5767
(ecc_opt == OMAP_ECC_BCH8_CODE_HW)))
5868
return 0;
5969

60-
/*
61-
* For now, assume 4-bit mode is only supported on OMAP3630 ES1.x, x>=1
62-
* and AM33xx derivates. Other chips may be added if confirmed to work.
63-
*/
64-
if ((ecc_opt == OMAP_ECC_BCH4_CODE_HW_DETECTION_SW) &&
65-
(!cpu_is_omap3630() || (GET_OMAP_REVISION() == 0)))
66-
return 0;
67-
6870
/* legacy platforms support only HAM1 (1-bit Hamming) ECC scheme */
6971
if (ecc_opt == OMAP_ECC_HAM1_CODE_HW)
7072
return 1;

arch/arm/mach-omap2/omap4-common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ static void omap4_l2c310_write_sec(unsigned long val, unsigned reg)
168168
smc_op = OMAP4_MON_L2X0_PREFETCH_INDEX;
169169
break;
170170

171+
case L310_POWER_CTRL:
172+
pr_info_once("OMAP L2C310: ROM does not support power control setting\n");
173+
return;
174+
171175
default:
172176
WARN_ONCE(1, "OMAP L2C310: ignoring write to reg 0x%x\n", reg);
173177
return;

include/dt-bindings/pinctrl/dra.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,19 @@
3030
#define MUX_MODE14 0xe
3131
#define MUX_MODE15 0xf
3232

33-
#define PULL_ENA (1 << 16)
33+
#define PULL_ENA (0 << 16)
34+
#define PULL_DIS (1 << 16)
3435
#define PULL_UP (1 << 17)
3536
#define INPUT_EN (1 << 18)
3637
#define SLEWCONTROL (1 << 19)
3738
#define WAKEUP_EN (1 << 24)
3839
#define WAKEUP_EVENT (1 << 25)
3940

4041
/* Active pin states */
41-
#define PIN_OUTPUT 0
42+
#define PIN_OUTPUT (0 | PULL_DIS)
4243
#define PIN_OUTPUT_PULLUP (PIN_OUTPUT | PULL_ENA | PULL_UP)
4344
#define PIN_OUTPUT_PULLDOWN (PIN_OUTPUT | PULL_ENA)
44-
#define PIN_INPUT INPUT_EN
45+
#define PIN_INPUT (INPUT_EN | PULL_DIS)
4546
#define PIN_INPUT_SLEW (INPUT_EN | SLEWCONTROL)
4647
#define PIN_INPUT_PULLUP (PULL_ENA | INPUT_EN | PULL_UP)
4748
#define PIN_INPUT_PULLDOWN (PULL_ENA | INPUT_EN)

0 commit comments

Comments
 (0)