sh: Add support SH2/SH2A which is CPU of Renesas Technology
PATCH 1/3 sh: Add support SH2/SH2A which is CPU of Renesas Technology
Add support SH2/SH2A basic function.
--- cpu/sh2/Makefile | 46 ++++++++++++++++++ cpu/sh2/cache.c | 112 ++++++++++++++++++++++++++++++++++++++++++++ cpu/sh2/config.mk | 29 +++++++++++ cpu/sh2/cpu.c | 98 ++++++++++++++++++++++++++++++++++++++ cpu/sh2/interrupts.c | 39 +++++++++++++++ cpu/sh2/start.S | 84 +++++++++++++++++++++++++++++++++ cpu/sh2/time.c | 111 +++++++++++++++++++++++++++++++++++++++++++ cpu/sh2/watchdog.c | 33 +++++++++++++ examples/Makefile | 3 + include/asm-sh/cpu_sh2.h | 36 ++++++++++++++ include/asm-sh/processor.h | 5 ++- 11 files changed, 595 insertions(+), 1 deletions(-) create mode 100644 cpu/sh2/Makefile create mode 100644 cpu/sh2/cache.c create mode 100644 cpu/sh2/config.mk create mode 100644 cpu/sh2/cpu.c create mode 100644 cpu/sh2/interrupts.c create mode 100644 cpu/sh2/start.S create mode 100644 cpu/sh2/time.c create mode 100644 cpu/sh2/watchdog.c create mode 100644 include/asm-sh/cpu_sh2.h
cpu/sh2/Makefile new file +46 -0
@@ -0,0 +1,46 @@ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]> +# Copyright (C) 2008 Renesas Solutions Corp. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(CPU).a + +START = start.o +OBJS = cpu.o interrupts.o watchdog.o time.o # cache.o + +all: .depend $(START) $(LIB) + +$(LIB): $(OBJS) + $(AR) crv $@ $(OBJS) + +######################################################################### + +.depend: Makefile $(START:.o=.S) $(OBJS:.o=.c) + $(CC) -M $(CFLAGS) $(START:.o=.S) $(OBJS:.o=.c) > $@ + +sinclude .depend + +#########################################################################
cpu/sh2/cache.c new file +112 -0
112 lines not on this page · raw message
cpu/sh2/config.mk new file +29 -0
@@ -0,0 +1,29 @@ +# +# (C) Copyright 2007-2008 +# Nobuhiro Iwamatsu <[email protected]> +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +# +#export CFLAGS = -m3e -mb +#export LDFLAGS = -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 + +PLATFORM_CPPFLAGS += -m3e -mb +PLATFORM_RELFLAGS += -ffixed-r13 +PLATFORM_LDFLAGS += -EB
cpu/sh2/cpu.c new file +98 -0
98 lines not on this page · raw message
cpu/sh2/interrupts.c new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Copyright 2007,2008 Nobuhiro Iwamatsu <[email protected]> +* Copyright (C) 2008 Renesas Solutions Corp. +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> + +int interrupt_init (void ) +{ +return 0 ; +} + +void enable_interrupts (void ) +{ + +} + +int disable_interrupts (void ) +{ +return 0 ; +}
cpu/sh2/start.S new file +84 -0
84 lines not on this page · raw message
cpu/sh2/time.c new file +111 -0
111 lines not on this page · raw message
cpu/sh2/watchdog.c new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2008 Nobuhiro Iwamatsu <[email protected]> +* Copyright (C) 2008 Renesas Solutions Corp. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> +#include <asm/processor.h> + +int watchdog_init (void ) +{ +return 0 ; +} + +void reset_cpu (unsigned long ignored) +{ +while (1 ) + ; +}
examples/Makefile +3 -0
@@ -67,6 +67,9 @@ endif ifeq ($(ARCH),sh) LOAD_ADDR = 0x8C000000 +ifeq ($(CPU),sh2) +BIG_ENDIAN=y +endif endif ifeq ($(ARCH),sparc)
include/asm-sh/cpu_sh2.h new file +36 -0
@@ -0,0 +1,36 @@ +/* +* Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]> +* Copyright (C) 2008 Renesas Solutions Corp. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef _ASM_CPU_SH2_H_ +#define _ASM_CPU_SH2_H_ + +/* cache control */ +#define CCR_CACHE_STOP 0x00000008 +#define CCR_CACHE_ENABLE 0x00000005 +#define CCR_CACHE_ICI 0x00000008 + +#define CACHE_OC_ADDRESS_ARRAY 0xf0000000 +#define CACHE_OC_WAY_SHIFT 13 +#define CACHE_OC_NUM_ENTRIES 256 +#define CACHE_OC_ENTRY_SHIFT 4 + +# error "Unknown SH2 variant" + +#endif /* _ASM_CPU_SH2_H_ */
include/asm-sh/processor.h +4 -1
@@ -1,6 +1,9 @@#ifndef _ASM_SH_PROCESSOR_H_#define _ASM_SH_PROCESSOR_H_ -#if definedCONFIG_SH3 +#if defined(CONFIG_SH2 ) || \ + defined (CONFIG_SH2A ) +# include <asm/cpu_sh2.h> +#elif defined (CONFIG_SH3 )# include <asm/cpu_sh3.h> #elif defined (CONFIG_SH4 ) || \ defined (CONFIG_SH4A )
Signature · 1 line
1.5.5.1
PATCH v2 1/1 sh: Add support SH2/SH2A which is CPU of Renesas Technology (Re: [U-Boot-Users] [PATCH 1/3] sh: Add support SH2/SH2A which is CPU of Renesas Technology)
In reply to a message not in the archiveAdd support SH2/SH2A basic function.
---
PATCH v2 :
- Apply Jean-Christophe's comments
cpu/sh2/Makefile | 49 +++++++++++++++++++ cpu/sh2/cache.c | 112 ++++++++++++++++++++++++++++++++++++++++++++ cpu/sh2/config.mk | 26 ++++++++++ cpu/sh2/cpu.c | 98 ++++++++++++++++++++++++++++++++++++++ cpu/sh2/interrupts.c | 39 +++++++++++++++ cpu/sh2/start.S | 78 ++++++++++++++++++++++++++++++ cpu/sh2/time.c | 111 +++++++++++++++++++++++++++++++++++++++++++ cpu/sh2/watchdog.c | 33 +++++++++++++ examples/Makefile | 3 + include/asm-sh/cpu_sh2.h | 40 ++++++++++++++++ include/asm-sh/processor.h | 5 ++- 11 files changed, 593 insertions(+), 1 deletions(-) create mode 100644 cpu/sh2/Makefile create mode 100644 cpu/sh2/cache.c create mode 100644 cpu/sh2/config.mk create mode 100644 cpu/sh2/cpu.c create mode 100644 cpu/sh2/interrupts.c create mode 100644 cpu/sh2/start.S create mode 100644 cpu/sh2/time.c create mode 100644 cpu/sh2/watchdog.c create mode 100644 include/asm-sh/cpu_sh2.h
cpu/sh2/Makefile new file +49 -0
@@ -0,0 +1,49 @@ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]> +# Copyright (C) 2008 Renesas Solutions Corp. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(CPU).a + +START = start.o +OBJS = cpu.o interrupts.o watchdog.o time.o # cache.o + +all: .depend $(START) $(LIB) + +$(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +######################################################################### + +.depend: Makefile $(START:.o=.S) $(OBJS:.o=.c) + $(CC) -M $(CFLAGS) $(START:.o=.S) $(OBJS:.o=.c) > $@ + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
cpu/sh2/cache.c new file +112 -0
112 lines not on this page · raw message
cpu/sh2/config.mk new file +26 -0
@@ -0,0 +1,26 @@ +# +# (C) Copyright 2007-2008 +# Nobuhiro Iwamatsu <[email protected]> +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +# +PLATFORM_CPPFLAGS += -m3e -mb +PLATFORM_RELFLAGS += -ffixed-r13 +PLATFORM_LDFLAGS += -EB
cpu/sh2/cpu.c new file +98 -0
98 lines not on this page · raw message
cpu/sh2/interrupts.c new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Copyright 2007,2008 Nobuhiro Iwamatsu <[email protected]> +* Copyright (C) 2008 Renesas Solutions Corp. +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> + +int interrupt_init (void ) +{ +return 0 ; +} + +void enable_interrupts (void ) +{ + +} + +int disable_interrupts (void ) +{ +return 0 ; +}
cpu/sh2/start.S new file +78 -0
78 lines not on this page · raw message
cpu/sh2/time.c new file +111 -0
111 lines not on this page · raw message
cpu/sh2/watchdog.c new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2008 Nobuhiro Iwamatsu <[email protected]> +* Copyright (C) 2008 Renesas Solutions Corp. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> +#include <asm/processor.h> + +int watchdog_init (void ) +{ +return 0 ; +} + +void reset_cpu (unsigned long ignored) +{ +while (1 ) + ; +}
examples/Makefile +3 -0
@@ -67,6 +67,9 @@ endif ifeq ($(ARCH),sh) LOAD_ADDR = 0x8C000000 +ifeq ($(CPU),sh2) +BIG_ENDIAN=y +endif endif ifeq ($(ARCH),sparc)
include/asm-sh/cpu_sh2.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]> +* Copyright (C) 2008 Renesas Solutions Corp. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef _ASM_CPU_SH2_H_ +#define _ASM_CPU_SH2_H_ + +/* cache control */ +#define CCR_CACHE_STOP 0x00000008 +#define CCR_CACHE_ENABLE 0x00000005 +#define CCR_CACHE_ICI 0x00000008 + +#define CACHE_OC_ADDRESS_ARRAY 0xf0000000 +#define CACHE_OC_WAY_SHIFT 13 +#define CACHE_OC_NUM_ENTRIES 256 +#define CACHE_OC_ENTRY_SHIFT 4 + +#if defined(CONFIG_CPU_SH7203 ) +# include <asm/cpu_sh7203.h> +#else +# error "Unknown SH2 variant" +#endif + +#endif /* _ASM_CPU_SH2_H_ */
include/asm-sh/processor.h +4 -1
@@ -1,6 +1,9 @@#ifndef _ASM_SH_PROCESSOR_H_#define _ASM_SH_PROCESSOR_H_ -#if definedCONFIG_SH3 +#if defined(CONFIG_SH2 ) || \ + defined (CONFIG_SH2A ) +# include <asm/cpu_sh2.h> +#elif defined (CONFIG_SH3 )# include <asm/cpu_sh3.h> #elif defined (CONFIG_SH4 ) || \ defined (CONFIG_SH4A )
Signature · 1 line
1.5.6.3
PATCH v2 1/1 sh: Add support SH2/SH2A which is CPU of Renesas Technology (Re: [U-Boot-Users] [PATCH 1/3] sh: Add support SH2/SH2A which is CPU of Renesas Technology)
Quoted 60 lines · Nobuhiro Iwamatsu
Add support SH2/SH2A basic function.
Signed-off-by Nobuhiro Iwamatsu <[email protected]>Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
PATCH v2 :
- Apply Jean-Christophe's commentscpu/sh2/Makefile | 49 +++++++++++++++++++ cpu/sh2/cache.c | 112 ++++++++++++++++++++++++++++++++++++++++++++ cpu/sh2/config.mk | 26 ++++++++++ cpu/sh2/cpu.c | 98 ++++++++++++++++++++++++++++++++++++++ cpu/sh2/interrupts.c | 39 +++++++++++++++ cpu/sh2/start.S | 78 ++++++++++++++++++++++++++++++ cpu/sh2/time.c | 111 +++++++++++++++++++++++++++++++++++++++++++ cpu/sh2/watchdog.c | 33 +++++++++++++ examples/Makefile | 3 + include/asm-sh/cpu_sh2.h | 40 ++++++++++++++++ include/asm-sh/processor.h | 5 ++- 11 files changed, 593 insertions(+), 1 deletions(-) create mode 100644 cpu/sh2/Makefile create mode 100644 cpu/sh2/cache.c create mode 100644 cpu/sh2/config.mk create mode 100644 cpu/sh2/cpu.c create mode 100644 cpu/sh2/interrupts.c create mode 100644 cpu/sh2/start.S create mode 100644 cpu/sh2/time.c create mode 100644 cpu/sh2/watchdog.c create mode 100644 include/asm-sh/cpu_sh2.hcpu/sh2/Makefile new file +24
-0@@ -0,0 +1,49 @@ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]> +# Copyright (C) 2008 Renesas Solutions Corp. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA
cpu/sh2/Makefile line 34
Quoted 10 lines
cpu/sh2/Makefile new file +10
-0+# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(CPU).a + +START = start.o +OBJS = cpu.o interrupts.o watchdog.o time.o # cache.o + +all: .depend $(START) $(LIB)
please use $(obj).depend
cpu/sh2/Makefile line 42
Quoted 10 lines
cpu/sh2/Makefile new file +8
-0+ +$(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +######################################################################### + +.depend: Makefile $(START:.o=.S) $(OBJS:.o=.c) + $(CC) -M $(CFLAGS) $(START:.o=.S) $(OBJS:.o=.c) > $@
please remove
Quoted 26 lines
cpu/sh2/Makefile new file +26
-0+ +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +######################################################################### +/* + * Copyright (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]> + * Copyright (C) 2008 Renesas Solutions Corp. + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software
cpu/sh2/Makefile
Quoted 10 lines
cpu/sh2/Makefile new file +10
-0+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#include <common.h> +#include <command.h> +#include <asm/processor.h> +#include <asm/io.h> + +#define STBCR4 0xFFFE040C
^^^^^^
whitespace
Quoted 30 lines
cpu/sh2/Makefile new file +29
-0+#define cmt_clock_enable() do {\ + writeb(readb(STBCR4) & ~0x04, STBCR4);\ + } while (0) +#define scif0_enable() do {\ + writeb(readb(STBCR4) & ~0x80, STBCR4);\ + } while (0) + +++ b/cpu/sh2/time.c@@ -0,0 +1,111 @@ +/* + * Copyright (C) 2007,2008 Nobobuhiro Iwamatsu <[email protected]> + * Copyright (C) 2008 Renesas Solutions Corp. + * + * (C) Copyright 2003 + * Wolfgang Denk, DENX Software Engineering, wd at denx.de. + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License
cpu/sh2/Makefile line 31
Quoted 10 lines
cpu/sh2/Makefile new file +10
-0+ * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#include <common.h> +#include <asm/io.h> +#include <asm/processor.h> + +#define CMT_CMCSR_INIT 0x0001 /* PCLK/32 */
^^
whitespace
cpu/sh2/Makefile line 37
Quoted 6 lines
cpu/sh2/Makefile new file +6
-0+#define CMT_CMCSR_CALIB 0x0000 +#define CMT_MAX_COUNTER (0xFFFFFFFF) +#define CMT_TIMER_RESET (0xFFFF) + +static vu_long cmt0_timer; +
Best Regards,
J.