Skip to content

Commit c049ecc

Browse files
committed
Merge tag 'timers-core-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull clockevent/clocksource updates from Thomas Gleixner: - Device tree bindings for MT8186 - Tell the kernel that the RISC-V SBI timer stops in deeper power states - Make device tree parsing in sp804 more robust - Dead code removal and tiny fixes here and there - Add the missing SPDX identifiers * tag 'timers-core-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: clocksource/drivers/oxnas-rps: Fix irq_of_parse_and_map() return value clocksource/drivers/timer-ti-dm: Remove unnecessary NULL check clocksource/drivers/timer-sun5i: Convert to SPDX identifier clocksource/drivers/timer-sun4i: Convert to SPDX identifier clocksource/drivers/pistachio: Convert to SPDX identifier clocksource/drivers/orion: Convert to SPDX identifier clocksource/drivers/lpc32xx: Convert to SPDX identifier clocksource/drivers/digicolor: Convert to SPDX identifier clocksource/drivers/armada-370-xp: Convert to SPDX identifier clocksource/drivers/mips-gic-timer: Convert to SPDX identifier clocksource/drivers/jcore: Convert to SPDX identifier clocksource/drivers/bcm_kona: Convert to SPDX identifier clocksource/drivers/sp804: Avoid error on multiple instances clocksource/drivers/riscv: Events are stopped during CPU suspend clocksource/drivers/ixp4xx: Drop boardfile probe path dt-bindings: timer: Add compatible for Mediatek MT8186
2 parents bc1e02c + 57963a9 commit c049ecc

File tree

18 files changed

+22
-98
lines changed

18 files changed

+22
-98
lines changed

Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Required properties:
2323

2424
For those SoCs that use SYST
2525
* "mediatek,mt8183-timer" for MT8183 compatible timers (SYST)
26+
* "mediatek,mt8186-timer" for MT8186 compatible timers (SYST)
2627
* "mediatek,mt8192-timer" for MT8192 compatible timers (SYST)
2728
* "mediatek,mt8195-timer" for MT8195 compatible timers (SYST)
2829
* "mediatek,mt7629-timer" for MT7629 compatible timers (SYST)

drivers/clocksource/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ config IXP4XX_TIMER
8080
bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST
8181
depends on HAS_IOMEM
8282
select CLKSRC_MMIO
83-
select TIMER_OF if OF
83+
select TIMER_OF
8484
help
8585
Enables support for the Intel XScale IXP4xx SoC timer.
8686

drivers/clocksource/bcm_kona_timer.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
/*
2-
* Copyright (C) 2012 Broadcom Corporation
3-
*
4-
* This program is free software; you can redistribute it and/or
5-
* modify it under the terms of the GNU General Public License as
6-
* published by the Free Software Foundation version 2.
7-
*
8-
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
9-
* kind, whether express or implied; without even the implied warranty
10-
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
* GNU General Public License for more details.
12-
*/
1+
// SPDX-License-Identifier: GPL-2.0
2+
// Copyright (C) 2012 Broadcom Corporation
133

144
#include <linux/init.h>
155
#include <linux/irq.h>

drivers/clocksource/jcore-pit.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
/*
23
* J-Core SoC PIT/clocksource driver
34
*
45
* Copyright (C) 2015-2016 Smart Energy Instruments, Inc.
5-
*
6-
* This file is subject to the terms and conditions of the GNU General Public
7-
* License. See the file "COPYING" in the main directory of this archive
8-
* for more details.
96
*/
107

118
#include <linux/kernel.h>

drivers/clocksource/mips-gic-timer.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
/*
2-
* This file is subject to the terms and conditions of the GNU General Public
3-
* License. See the file "COPYING" in the main directory of this archive
4-
* for more details.
5-
*
6-
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
7-
*/
1+
// SPDX-License-Identifier: GPL-2.0
2+
// Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
83

94
#define pr_fmt(fmt) "mips-gic-timer: " fmt
105

drivers/clocksource/timer-armada-370-xp.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
/*
23
* Marvell Armada 370/XP SoC timer handling.
34
*
@@ -7,10 +8,6 @@
78
* Gregory CLEMENT <[email protected]>
89
* Thomas Petazzoni <[email protected]>
910
*
10-
* This file is licensed under the terms of the GNU General Public
11-
* License version 2. This program is licensed "as is" without any
12-
* warranty of any kind, whether express or implied.
13-
*
1411
* Timer 0 is used as free-running clocksource, while timer 1 is
1512
* used as clock_event_device.
1613
*

drivers/clocksource/timer-digicolor.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
/*
23
* Conexant Digicolor timer driver
34
*
@@ -11,10 +12,6 @@
1112
* Copyright (C) 2013 Maxime Ripard
1213
*
1314
* Maxime Ripard <[email protected]>
14-
*
15-
* This file is licensed under the terms of the GNU General Public
16-
* License version 2. This program is licensed "as is" without any
17-
* warranty of any kind, whether express or implied.
1815
*/
1916

2017
/*

drivers/clocksource/timer-ixp4xx.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include <linux/of_address.h>
2020
#include <linux/of_irq.h>
2121
#include <linux/platform_device.h>
22-
/* Goes away with OF conversion */
23-
#include <linux/platform_data/timer-ixp4xx.h>
2422

2523
/*
2624
* Constants to make it easy to access Timer Control/Status registers
@@ -263,28 +261,6 @@ static struct platform_driver ixp4xx_timer_driver = {
263261
};
264262
builtin_platform_driver(ixp4xx_timer_driver);
265263

266-
/**
267-
* ixp4xx_timer_setup() - Timer setup function to be called from boardfiles
268-
* @timerbase: physical base of timer block
269-
* @timer_irq: Linux IRQ number for the timer
270-
* @timer_freq: Fixed frequency of the timer
271-
*/
272-
void __init ixp4xx_timer_setup(resource_size_t timerbase,
273-
int timer_irq,
274-
unsigned int timer_freq)
275-
{
276-
void __iomem *base;
277-
278-
base = ioremap(timerbase, 0x100);
279-
if (!base) {
280-
pr_crit("IXP4xx: can't remap timer\n");
281-
return;
282-
}
283-
ixp4xx_timer_register(base, timer_irq, timer_freq);
284-
}
285-
EXPORT_SYMBOL_GPL(ixp4xx_timer_setup);
286-
287-
#ifdef CONFIG_OF
288264
static __init int ixp4xx_of_timer_init(struct device_node *np)
289265
{
290266
void __iomem *base;
@@ -315,4 +291,3 @@ static __init int ixp4xx_of_timer_init(struct device_node *np)
315291
return ret;
316292
}
317293
TIMER_OF_DECLARE(ixp4xx, "intel,ixp4xx-timer", ixp4xx_of_timer_init);
318-
#endif

drivers/clocksource/timer-lpc32xx.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
/*
23
* Clocksource driver for NXP LPC32xx/18xx/43xx timer
34
*
@@ -6,11 +7,6 @@
67
* Based on:
78
* time-efm32 Copyright (C) 2013 Pengutronix
89
* mach-lpc32xx/timer.c Copyright (C) 2009 - 2010 NXP Semiconductors
9-
*
10-
* This file is licensed under the terms of the GNU General Public
11-
* License version 2. This program is licensed "as is" without any
12-
* warranty of any kind, whether express or implied.
13-
*
1410
*/
1511

1612
#define pr_fmt(fmt) "%s: " fmt, __func__

drivers/clocksource/timer-orion.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
/*
23
* Marvell Orion SoC timer handling.
34
*
45
* Sebastian Hesselbarth <[email protected]>
56
*
6-
* This file is licensed under the terms of the GNU General Public
7-
* License version 2. This program is licensed "as is" without any
8-
* warranty of any kind, whether express or implied.
9-
*
107
* Timer 0 is used as free-running clocksource, while timer 1 is
118
* used as clock_event_device.
129
*/

0 commit comments

Comments
 (0)