Skip to content

Commit ed0f72f

Browse files
committed
Merge tag 'arc-4.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
Pull ARC udpates from Vineet Gupta: - updates for various platforms - boot log updates for upcoming HS48 family of cores (dual issue) * tag 'arc-4.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc: ARC: [plat-hsdk]: Add reset controller node to manage ethernet reset ARC: [plat-hsdk]: Temporary fix to set CPU frequency to 1GHz ARC: fix allnoconfig build warning ARCv2: boot log: identify HS48 cores (dual issue) ARC: boot log: decontaminate ARCv2 ISA_CONFIG register arc: remove redundant UTS_MACHINE define in arch/arc/Makefile ARC: [plat-eznps] Update platform maintainer as Noam left ARC: [plat-hsdk] use actual clk driver to manage cpu clk ARC: [*defconfig] Reenable soft lock-up detector ARC: [plat-axs10x] sdio: Temporary fix of sdio ciu frequency ARC: [plat-hsdk] sdio: Temporary fix of sdio ciu frequency ARC: [plat-axs103] Add temporary quirk to reset ethernet IP
2 parents eab26ad + ab8eb7d commit ed0f72f

17 files changed

Lines changed: 130 additions & 28 deletions

MAINTAINERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5259,7 +5259,8 @@ S: Maintained
52595259
F: drivers/iommu/exynos-iommu.c
52605260

52615261
EZchip NPS platform support
5262-
M: Noam Camus <noamc@ezchip.com>
5262+
M: Elad Kanfi <eladkan@mellanox.com>
5263+
M: Vineet Gupta <vgupta@synopsys.com>
52635264
S: Supported
52645265
F: arch/arc/plat-eznps
52655266
F: arch/arc/boot/dts/eznps.dts

arch/arc/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ config ARC
2424
select GENERIC_SMP_IDLE_THREAD
2525
select HAVE_ARCH_KGDB
2626
select HAVE_ARCH_TRACEHOOK
27-
select HAVE_FUTEX_CMPXCHG
27+
select HAVE_FUTEX_CMPXCHG if FUTEX
2828
select HAVE_IOREMAP_PROT
2929
select HAVE_KPROBES
3030
select HAVE_KRETPROBES

arch/arc/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# published by the Free Software Foundation.
77
#
88

9-
UTS_MACHINE := arc
10-
119
ifeq ($(CROSS_COMPILE),)
1210
ifndef CONFIG_CPU_BIG_ENDIAN
1311
CROSS_COMPILE := arc-linux-

arch/arc/boot/dts/axs10x_mb.dtsi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@
4444

4545
mmcclk: mmcclk {
4646
compatible = "fixed-clock";
47-
clock-frequency = <50000000>;
47+
/*
48+
* DW sdio controller has external ciu clock divider
49+
* controlled via register in SDIO IP. It divides
50+
* sdio_ref_clk (which comes from CGU) by 16 for
51+
* default. So default mmcclk clock (which comes
52+
* to sdk_in) is 25000000 Hz.
53+
*/
54+
clock-frequency = <25000000>;
4855
#clock-cells = <0>;
4956
};
5057

arch/arc/boot/dts/hsdk.dts

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/dts-v1/;
1313

1414
#include <dt-bindings/net/ti-dp83867.h>
15+
#include <dt-bindings/reset/snps,hsdk-reset.h>
1516

1617
/ {
1718
model = "snps,hsdk";
@@ -57,10 +58,10 @@
5758
};
5859
};
5960

60-
core_clk: core-clk {
61+
input_clk: input-clk {
6162
#clock-cells = <0>;
6263
compatible = "fixed-clock";
63-
clock-frequency = <500000000>;
64+
clock-frequency = <33333333>;
6465
};
6566

6667
cpu_intc: cpu-interrupt-controller {
@@ -102,6 +103,19 @@
102103

103104
ranges = <0x00000000 0xf0000000 0x10000000>;
104105

106+
cgu_rst: reset-controller@8a0 {
107+
compatible = "snps,hsdk-reset";
108+
#reset-cells = <1>;
109+
reg = <0x8A0 0x4>, <0xFF0 0x4>;
110+
};
111+
112+
core_clk: core-clk@0 {
113+
compatible = "snps,hsdk-core-pll-clock";
114+
reg = <0x00 0x10>, <0x14B8 0x4>;
115+
#clock-cells = <0>;
116+
clocks = <&input_clk>;
117+
};
118+
105119
serial: serial@5000 {
106120
compatible = "snps,dw-apb-uart";
107121
reg = <0x5000 0x100>;
@@ -120,7 +134,17 @@
120134

121135
mmcclk_ciu: mmcclk-ciu {
122136
compatible = "fixed-clock";
123-
clock-frequency = <100000000>;
137+
/*
138+
* DW sdio controller has external ciu clock divider
139+
* controlled via register in SDIO IP. Due to its
140+
* unexpected default value (it should devide by 1
141+
* but it devides by 8) SDIO IP uses wrong clock and
142+
* works unstable (see STAR 9001204800)
143+
* So add temporary fix and change clock frequency
144+
* from 100000000 to 12500000 Hz until we fix dw sdio
145+
* driver itself.
146+
*/
147+
clock-frequency = <12500000>;
124148
#clock-cells = <0>;
125149
};
126150

@@ -141,6 +165,8 @@
141165
clocks = <&gmacclk>;
142166
clock-names = "stmmaceth";
143167
phy-handle = <&phy0>;
168+
resets = <&cgu_rst HSDK_ETH_RESET>;
169+
reset-names = "stmmaceth";
144170

145171
mdio {
146172
#address-cells = <1>;

arch/arc/configs/axs101_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ CONFIG_NLS_ISO8859_1=y
105105
# CONFIG_ENABLE_WARN_DEPRECATED is not set
106106
# CONFIG_ENABLE_MUST_CHECK is not set
107107
CONFIG_STRIP_ASM_SYMS=y
108-
CONFIG_LOCKUP_DETECTOR=y
108+
CONFIG_SOFTLOCKUP_DETECTOR=y
109109
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=10
110110
# CONFIG_SCHED_DEBUG is not set
111111
# CONFIG_DEBUG_PREEMPT is not set

arch/arc/configs/axs103_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ CONFIG_NLS_ISO8859_1=y
104104
# CONFIG_ENABLE_WARN_DEPRECATED is not set
105105
# CONFIG_ENABLE_MUST_CHECK is not set
106106
CONFIG_STRIP_ASM_SYMS=y
107-
CONFIG_LOCKUP_DETECTOR=y
107+
CONFIG_SOFTLOCKUP_DETECTOR=y
108108
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=10
109109
# CONFIG_SCHED_DEBUG is not set
110110
# CONFIG_DEBUG_PREEMPT is not set

arch/arc/configs/axs103_smp_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ CONFIG_NLS_ISO8859_1=y
107107
# CONFIG_ENABLE_WARN_DEPRECATED is not set
108108
# CONFIG_ENABLE_MUST_CHECK is not set
109109
CONFIG_STRIP_ASM_SYMS=y
110-
CONFIG_LOCKUP_DETECTOR=y
110+
CONFIG_SOFTLOCKUP_DETECTOR=y
111111
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=10
112112
# CONFIG_SCHED_DEBUG is not set
113113
# CONFIG_DEBUG_PREEMPT is not set

arch/arc/configs/haps_hs_smp_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ CONFIG_TMPFS=y
8484
CONFIG_NFS_FS=y
8585
# CONFIG_ENABLE_WARN_DEPRECATED is not set
8686
# CONFIG_ENABLE_MUST_CHECK is not set
87-
CONFIG_LOCKUP_DETECTOR=y
87+
CONFIG_SOFTLOCKUP_DETECTOR=y
8888
# CONFIG_DEBUG_PREEMPT is not set

arch/arc/configs/hsdk_defconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ CONFIG_MMC_SDHCI=y
6363
CONFIG_MMC_SDHCI_PLTFM=y
6464
CONFIG_MMC_DW=y
6565
# CONFIG_IOMMU_SUPPORT is not set
66+
CONFIG_RESET_HSDK=y
6667
CONFIG_EXT3_FS=y
6768
CONFIG_VFAT_FS=y
6869
CONFIG_TMPFS=y
@@ -72,7 +73,7 @@ CONFIG_NLS_ISO8859_1=y
7273
# CONFIG_ENABLE_WARN_DEPRECATED is not set
7374
# CONFIG_ENABLE_MUST_CHECK is not set
7475
CONFIG_STRIP_ASM_SYMS=y
75-
CONFIG_LOCKUP_DETECTOR=y
76+
CONFIG_SOFTLOCKUP_DETECTOR=y
7677
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=10
7778
# CONFIG_SCHED_DEBUG is not set
7879
# CONFIG_DEBUG_PREEMPT is not set

0 commit comments

Comments
 (0)