From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schwierzeck Date: Wed, 14 Jan 2015 22:01:43 +0100 Subject: [U-Boot] [PATCH] MIPS: use common code from lib/time.c In-Reply-To: <593AEF6C47F46446852B067021A273D6FBA1F750@MUCSE037.lantiq.com> References: <593AEF6C47F46446852B067021A273D6FBA1F750@MUCSE037.lantiq.com> Message-ID: <54B6D937.5060503@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Thomas, On 14.01.2015 19:44, thomas.langer at lantiq.com wrote: > From: Thomas Langer > > The common code just needs the C0_COUNT as free running counter, > without the need of writing and checking C0_COMPARE. > > The function get_tbclk() is still implemented here instead of changing > all places of CONFIG_SYS_MIPS_TIMER_FREQ to CONFIG_SYS_TIMER_RATE. > > The change was tested on a MIPS32 system, but as the MIPS64 code > was/is the same, this should be no problem. > > Signed-off-by: Thomas Langer > --- > arch/mips/cpu/mips32/time.c | 59 +++---------------------------------------- > arch/mips/cpu/mips64/time.c | 59 +++---------------------------------------- > 2 files changed, 8 insertions(+), 110 deletions(-) applied to u-boot-mips/next, thanks -- - Daniel