Skip to content

Commit 281bf6b

Browse files
Uwe Kleine-Königdlezcano
authored andcommitted
clocksource/drivers/imx-gpt: Fold <soc/imx/timer.h> into its only user
Only the imx-gpt timer driver makes use of enum imx_gpt_type that is otherwise unused. Move its definition into the timer-imx-gpt driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230328100531.879485-3-u.kleine-koenig@pengutronix.de
1 parent 011da16 commit 281bf6b

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

drivers/clocksource/timer-imx-gpt.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/of.h>
1717
#include <linux/of_address.h>
1818
#include <linux/of_irq.h>
19-
#include <soc/imx/timer.h>
2019

2120
/*
2221
* There are 4 versions of the timer hardware on Freescale MXC hardware.
@@ -25,6 +24,12 @@
2524
* - MX25, MX31, MX35, MX37, MX51, MX6Q(rev1.0)
2625
* - MX6DL, MX6SX, MX6Q(rev1.1+)
2726
*/
27+
enum imx_gpt_type {
28+
GPT_TYPE_IMX1, /* i.MX1 */
29+
GPT_TYPE_IMX21, /* i.MX21/27 */
30+
GPT_TYPE_IMX31, /* i.MX31/35/25/37/51/6Q */
31+
GPT_TYPE_IMX6DL, /* i.MX6DL/SX/SL */
32+
};
2833

2934
/* defines common for all i.MX */
3035
#define MXC_TCTL 0x00

include/soc/imx/timer.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)