Skip to content

Commit 8242c70

Browse files
committed
Merge tag 'soc-arm-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
Pull SoC ARM code updates from Arnd Bergmann: "These are again very minimal updates: - A workaround for firmware on Google Nexus 10 - A fix for early debugging on OMAP1 - A rework for Microchip SoC configuration - Cleanups on OMAP2 an R-Car-Gen2" * tag 'soc-arm-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: ARM: omap2: dead code cleanup in kconfig for ARCH_OMAP4 ARM: OMAP1: Fix DEBUG_LL and earlyprintk on OMAP16XX arm64: Kconfig: provide a top-level switch for Microchip platforms ARM: shmobile: rcar-gen2: Use of_phandle_args_equal() helper ARM: omap: fix all kernel-doc warnings ARM: omap2: Replace scnprintf with strscpy in omap3_cpuinfo ARM: samsung: exynos5250: Allow CPU1 to boot
2 parents 231d703 + 3ef628c commit 8242c70

8 files changed

Lines changed: 17 additions & 26 deletions

File tree

arch/arm/mach-exynos/firmware.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ static int exynos_cpu_boot(int cpu)
6161
* Exynos3250 doesn't need to send smc command for secondary CPU boot
6262
* because Exynos3250 removes WFE in secure mode.
6363
*
64-
* On Exynos5 devices the call is ignored by trustzone firmware.
64+
* On most Exynos5 devices the call is ignored by trustzone firmware.
6565
*/
6666
if (!soc_is_exynos4210() && !soc_is_exynos4212() &&
67-
!soc_is_exynos4412())
67+
!soc_is_exynos4412() && !of_machine_is_compatible("google,manta"))
6868
return 0;
6969

7070
/*

arch/arm/mach-omap1/clock_data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,8 @@ int __init omap1_clk_init(void)
700700
/* Make sure UART clocks are enabled early */
701701
if (cpu_is_omap16xx())
702702
omap_writel(omap_readl(MOD_CONF_CTRL_0) |
703-
CONF_MOD_UART1_CLK_MODE_R |
704-
CONF_MOD_UART3_CLK_MODE_R, MOD_CONF_CTRL_0);
703+
(1 << CONF_MOD_UART1_CLK_MODE_R) |
704+
(1 << CONF_MOD_UART3_CLK_MODE_R), MOD_CONF_CTRL_0);
705705
#endif
706706

707707
/* USB_REQ_EN will be disabled later if necessary (usb_dc_ck) */

arch/arm/mach-omap2/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ config ARCH_OMAP4
4242
select PM if CPU_IDLE
4343
select ARM_ERRATA_754322
4444
select ARM_ERRATA_775420
45-
select OMAP_INTERCONNECT
4645

4746
config SOC_OMAP5
4847
bool "TI OMAP5"

arch/arm/mach-omap2/id.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/io.h>
1818
#include <linux/random.h>
1919
#include <linux/slab.h>
20+
#include <linux/string.h>
2021

2122
#ifdef CONFIG_SOC_BUS
2223
#include <linux/sys_soc.h>
@@ -250,7 +251,7 @@ static void __init omap3_cpuinfo(void)
250251
cpu_name = "OMAP3503";
251252
}
252253

253-
scnprintf(soc_name, sizeof(soc_name), "%s", cpu_name);
254+
strscpy(soc_name, cpu_name);
254255

255256
/* Print verbose information */
256257
n += scnprintf(buf, sizeof(buf) - n, "%s %s (", soc_name, soc_rev);

arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static struct notifier_block regulator_quirk_nb = {
141141
static int __init rcar_gen2_regulator_quirk(void)
142142
{
143143
struct regulator_quirk *quirk, *pos, *tmp;
144-
struct of_phandle_args *argsa, *argsb;
144+
struct of_phandle_args *args;
145145
const struct of_device_id *id;
146146
struct device_node *np;
147147
u32 mon, addr;
@@ -171,30 +171,22 @@ static int __init rcar_gen2_regulator_quirk(void)
171171
goto err_mem;
172172
}
173173

174-
argsa = &quirk->irq_args;
174+
args = &quirk->irq_args;
175175
memcpy(&quirk->i2c_msg, id->data, sizeof(quirk->i2c_msg));
176176

177177
quirk->id = id;
178178
quirk->np = of_node_get(np);
179179
quirk->i2c_msg.addr = addr;
180180

181-
ret = of_irq_parse_one(np, 0, argsa);
181+
ret = of_irq_parse_one(np, 0, args);
182182
if (ret) { /* Skip invalid entry and continue */
183183
of_node_put(np);
184184
kfree(quirk);
185185
continue;
186186
}
187187

188188
list_for_each_entry(pos, &quirk_list, list) {
189-
argsb = &pos->irq_args;
190-
191-
if (argsa->args_count != argsb->args_count)
192-
continue;
193-
194-
ret = memcmp(argsa->args, argsb->args,
195-
argsa->args_count *
196-
sizeof(argsa->args[0]));
197-
if (!ret) {
189+
if (of_phandle_args_equal(args, &pos->irq_args)) {
198190
pos->shared = true;
199191
quirk->shared = true;
200192
}

arch/arm64/Kconfig.platforms

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,15 @@ config ARCH_MESON
188188
This enables support for the arm64 based Amlogic SoCs
189189
such as the s905, S905X/D, S912, A113X/D or S905X/D2
190190

191-
menu "Microchip SoC support"
191+
menuconfig ARCH_MICROCHIP
192+
bool "Microchip SoC support"
192193

193-
config ARCH_MICROCHIP
194-
bool
194+
if ARCH_MICROCHIP
195195

196196
config ARCH_LAN969X
197197
bool "Microchip LAN969X SoC family"
198198
select PINCTRL
199199
select DW_APB_TIMER_OF
200-
select ARCH_MICROCHIP
201200
help
202201
This enables support for the Microchip LAN969X ARMv8-based
203202
SoC family of TSN-capable gigabit switches.
@@ -212,7 +211,6 @@ config ARCH_SPARX5
212211
bool "Microchip Sparx5 SoC family"
213212
select PINCTRL
214213
select DW_APB_TIMER_OF
215-
select ARCH_MICROCHIP
216214
help
217215
This enables support for the Microchip Sparx5 ARMv8-based
218216
SoC family of TSN-capable gigabit switches.
@@ -223,7 +221,7 @@ config ARCH_SPARX5
223221
security through TCAM-based frame processing using versatile
224222
content aware processor (VCAP).
225223

226-
endmenu
224+
endif
227225

228226
config ARCH_MMP
229227
bool "Marvell MMP SoC Family"

arch/arm64/configs/defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ CONFIG_ARCH_HISI=y
5757
CONFIG_ARCH_KEEMBAY=y
5858
CONFIG_ARCH_MEDIATEK=y
5959
CONFIG_ARCH_MESON=y
60+
CONFIG_ARCH_MICROCHIP=y
6061
CONFIG_ARCH_MVEBU=y
6162
CONFIG_ARCH_NXP=y
6263
CONFIG_ARCH_LAYERSCAPE=y

include/linux/platform_data/voltage-omap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
/**
1212
* struct omap_volt_data - Omap voltage specific data.
13-
* @voltage_nominal: The possible voltage value in uV
13+
* @volt_nominal: The possible voltage value in uV
1414
* @sr_efuse_offs: The offset of the efuse register(from system
1515
* control module base address) from where to read
1616
* the n-target value for the smartreflex module.
1717
* @sr_errminlimit: Error min limit value for smartreflex. This value
1818
* differs at differnet opp and thus is linked
1919
* with voltage.
20-
* @vp_errorgain: Error gain value for the voltage processor. This
20+
* @vp_errgain: Error gain value for the voltage processor. This
2121
* field also differs according to the voltage/opp.
2222
*/
2323
struct omap_volt_data {

0 commit comments

Comments
 (0)