i.MX: split GPT and EPIT timer implementation
PATCH 1/1 i.MX: split GPT and EPIT timer implementation
There is no common code between these 2 timer implementation. So it is better to split them.
Signed-off-by Jean-Christophe DUBOIS <[email protected]>
--- hw/timer/Makefile.objs | 3 +- hw/timer/imx_epit.c | 404 ++++++++++++++++++++++++ hw/timer/imx_gpt.c | 465 ++++++++++++++++++++++++++++ hw/timer/imx_timer.c | 823 ------------------------------------------------- 4 files changed, 871 insertions(+), 824 deletions(-) create mode 100644 hw/timer/imx_epit.c create mode 100644 hw/timer/imx_gpt.c delete mode 100644 hw/timer/imx_timer.c
hw/timer/Makefile.objs +2 -1
@@ -11,7 +11,8 @@ common-obj-$(CONFIG_XILINX) += xilinx_timer.o common-obj-$(CONFIG_SLAVIO) += slavio_timer.o common-obj-$(CONFIG_ETRAXFS) += etraxfs_timer.o common-obj-$(CONFIG_GRLIB) += grlib_gptimer.o -common-obj-$(CONFIG_IMX) += imx_timer.o +common-obj-$(CONFIG_IMX) += imx_epit.o +common-obj-$(CONFIG_IMX) += imx_gpt.o common-obj-$(CONFIG_LM32) += lm32_timer.o common-obj-$(CONFIG_MILKYMIST) += milkymist-sysctl.o
hw/timer/imx_epit.c new file +404 -0
404 lines not on this page · raw message
hw/timer/imx_gpt.c new file +465 -0
465 lines not on this page · raw message
hw/timer/imx_timer.c deleted +0 -823
823 lines not on this page · raw message
Signature · 1 line
1.8.1.2
Peter Maydell
AppliedQuoted 4 lines · Jean-Christophe DUBOIS
There is no common code between these 2 timer implementation. So it is better to split them.
Signed-off-by Jean-Christophe DUBOIS <[email protected]>
Thanks, applied to arm-devs.next.
-- PMM