[U-Boot] [PATCH] sh: Update sh timer function

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Nov 17 13:14:54 CET 2008


On 16:51 Mon 17 Nov     , Nobuhiro Iwamatsu wrote:
> Change to write/readX fcuntion and fix timer bug.
> 
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
> ---
>  cpu/sh3/Makefile |    2 +-
>  cpu/sh3/time.c   |  103 ------------------------------------------------------
>  cpu/sh4/time.c   |   76 ++++++++++++++++++++++++++-------------
>  3 files changed, 52 insertions(+), 129 deletions(-)
>  delete mode 100644 cpu/sh3/time.c
> 
> diff --git a/cpu/sh3/Makefile b/cpu/sh3/Makefile
> index 587413d..e3e5777 100644
> --- a/cpu/sh3/Makefile
> +++ b/cpu/sh3/Makefile
> @@ -32,7 +32,7 @@ include $(TOPDIR)/config.mk
>  LIB	= $(obj)lib$(CPU).a
> 
>  SOBJS	= start.o
> -COBJS	= cpu.o interrupts.o watchdog.o time.o cache.o
> +COBJS	= cpu.o interrupts.o watchdog.o cache.o ../sh4/time.o
I'm not a fan of this

Maybe you could change the current storrage as this

cpu/sh
    |- cpu/sh/time.c
    here the common sh code
cpu/sh/sh4/
    sh4 specific
cpu/sh/sh3/
    sh3 specific

Best Regards,
J.


More information about the U-Boot mailing list