
Hi Marek,
On Thu, Jul 02, 2015 at 08:31:37PM +0200, Marek Vasut wrote:
On Thursday, July 02, 2015 at 01:03:01 PM, Peng Fan wrote:
syscounter exists on i.MX6UL and i.MX7D, so implement the driver in imx-common. If want to use syscounter, define CONFIG_SYSCOUNTER_TIMER; if still want to use GPT timer, #define CONFIG_GPT_TIMER.
Signed-off-by: Ye.Li B37916@freescale.com Signed-off-by: Peng Fan Peng.Fan@freescale.com
arch/arm/imx-common/Makefile | 7 +- arch/arm/imx-common/syscounter.c | 124 +++++++++++++++++++++++++++ arch/arm/imx-common/timer.c | 8 +- arch/arm/include/asm/imx-common/syscounter.h | 29 +++++++ 4 files changed, 164 insertions(+), 4 deletions(-) create mode 100644 arch/arm/imx-common/syscounter.c create mode 100644 arch/arm/include/asm/imx-common/syscounter.h
Can this be converted to generic timer framework (see lib/time.c) ? I think it can , which would trim down this body of code considerably.
Will try lib/time.c. Thanks for suggestion.
Best regards, Marek Vasut
Regards, Peng. --