summaryrefslogtreecommitdiffstats
path: root/arch/sh/lib/time.c
Commit message (Collapse)AuthorAgeFilesLines
* sh: convert to common timer codeRob Herring2013-11-041-60/+2
| | | | | | | Convert sh to use the commmon timer code. Remove reset_timer and set_timer as they are unused on sh. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
* sh: timer: Remove static global variableNobuhiro Iwamatsu2013-10-171-4/+4
| | | | | | | | "static u16 bit" is not necessary to use this as static global variable. This patch fixes this. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: timer: Mask bit of timer prescalerNobuhiro Iwamatsu2013-10-171-1/+3
| | | | | | | | | timer_init function sets timer prescaler bit. The previous code so did not mask this bit, this function was to overwrite the bit. This will fix this problem. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Add GPL-2.0+ SPDX-License-Identifier to source filesWolfgang Denk2013-07-241-17/+1
| | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
* sh: tmu: Removed arch/sh/include/asm/clk.hNobuhiro Iwamatsu2012-08-211-1/+0
| | | | | | | | | asm/clk.h was included get_peripheral_clk_rate function. But this is not used from anywhere. This removed asm/clk.h, and deleted include line from arch/sh/lib/time.c Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: tmu: Changed switch statement to shift operationNobuhiro Iwamatsu2012-08-211-30/+18
| | | | | | | | | Calculation of the bit position using switch statement can substitute shift operation using ffs. And removed unsed macro and variable. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: tmu: Changed TMU driver using array of structuresNobuhiro Iwamatsu2012-08-211-12/+15
| | | | | | | | | This changed into access using array of structure from access to the register using the definition of the register by macro. And removed white space. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* sh: timer: Remove unnecessary variable 'ticks'Nobuhiro Iwamatsu2012-03-081-6/+1
| | | | | | Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Reported-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Timer: Remove reset_timer() for non-Nios2 archesGraeme Russ2011-07-261-7/+0
|
* Timer: Remove set_timer completelyGraeme Russ2011-07-261-6/+1
|
* sh: Fix overflow problem in get_ticksNobuhiro Iwamatsu2010-06-281-2/+18
| | | | Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Move lib_$ARCH directories to arch/$ARCH/libPeter Tyser2010-04-131-0/+141
Also move lib_$ARCH/config.mk to arch/$ARCH/config.mk This change is intended to clean up the top-level directory structure and more closely mimic Linux's directory organization. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
OpenPOWER on IntegriCloud