Skip to contentSkip to conversation

i.MX: split GPT and EPIT timer implementation

PATCH Applied Jean-Christophe DUBOIS 2 participants 2 messages May 19, 2013 – May 24, 2013 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index e4bd17f..32b5c1a 100644
@@ -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