[U-Boot] [PATCH 04/11] imx-common: add syscounter driver
Marek Vasut
marex at denx.de
Thu Jul 2 20:31:37 CEST 2015
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 at freescale.com>
> Signed-off-by: Peng Fan <Peng.Fan at 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.
Best regards,
Marek Vasut
More information about the U-Boot
mailing list