From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Fri, 3 Jul 2015 09:09:36 +0800 Subject: [U-Boot] [PATCH 04/11] imx-common: add syscounter driver In-Reply-To: <201507022031.37143.marex@denx.de> References: <1435834988-13032-1-git-send-email-Peng.Fan@freescale.com> <1435834988-13032-5-git-send-email-Peng.Fan@freescale.com> <201507022031.37143.marex@denx.de> Message-ID: <20150703010935.GB12208@shlinux2> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 >> Signed-off-by: Peng Fan >> --- >> 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. --