Add h8300 architecture part1 - core
PATCH 1/5 Add h8300 architecture part1 - core
This part of h8300 cpu support
Signed-off-by Yoshinori Sato <[email protected]>
--- arch/h8300/config.mk | 35 ++++++++ arch/h8300/cpu/h8300s/Makefile | 53 ++++++++++++ arch/h8300/cpu/h8300s/config.mk | 26 ++++++ arch/h8300/cpu/h8300s/cpu.c | 83 +++++++++++++++++++ arch/h8300/cpu/h8300s/interrupts.c | 38 +++++++++ arch/h8300/cpu/h8300s/start.S | 87 ++++++++++++++++++++ arch/h8300/cpu/h8300s/watchdog.c | 36 ++++++++ arch/h8300/lib/Makefile | 43 ++++++++++ arch/h8300/lib/board.c | 158 ++++++++++++++++++++++++++++++++++++ arch/h8300/lib/bootm.c | 70 ++++++++++++++++ arch/h8300/lib/time.c | 87 ++++++++++++++++++++ 11 files changed, 716 insertions(+), 0 deletions(-) create mode 100644 arch/h8300/config.mk create mode 100644 arch/h8300/cpu/h8300s/Makefile create mode 100644 arch/h8300/cpu/h8300s/config.mk create mode 100644 arch/h8300/cpu/h8300s/cpu.c create mode 100644 arch/h8300/cpu/h8300s/interrupts.c create mode 100644 arch/h8300/cpu/h8300s/start.S create mode 100644 arch/h8300/cpu/h8300s/watchdog.c create mode 100644 arch/h8300/lib/Makefile create mode 100644 arch/h8300/lib/board.c create mode 100644 arch/h8300/lib/bootm.c create mode 100644 arch/h8300/lib/time.c
arch/h8300/config.mk new file +35 -0
@@ -0,0 +1,35 @@ +# +# (C) Copyright 2000-2002 +# 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 +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +ifneq ($(CONFIG_H8300S),) +PLATFORM_CPPFLAGS += -ms -mint32 +PLATFORM_LDFLAGS += -mh8300self +STANDALONE_LOAD_ADDR = 0x00000000 -mh8300self +endif +ifneq ($(CONFIG_H8300H),) +PLATFORM_CPPFLAGS += -mh -mint32 +PLATFORM_LDFLAGS += -mh8300helf +STANDALONE_LOAD_ADDR = 0x00000000 -mh8300helf +endif + +SYM_PREFIX = _
arch/h8300/cpu/h8300s/Makefile new file +53 -0
53 lines not on this page · raw message
arch/h8300/cpu/h8300s/config.mk new file +26 -0
@@ -0,0 +1,26 @@ +# +# Copyright (C) 2010 Yoshinori Sato <[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 += -ms +USE_PRIVATE_LIBGCC = $(shell dirname `$(CC) $(CFLAGS) -ms -mint32 -print-libgcc-file-name`) +LDEMUL = -mh8300self +LDFLAGS += $(LDEMUL)
arch/h8300/cpu/h8300s/cpu.c new file +83 -0
83 lines not on this page · raw message
arch/h8300/cpu/h8300s/interrupts.c new file +38 -0
@@ -0,0 +1,38 @@ +/* +* Copyright 2010 Yoshinori Sato <[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 +*/ + +#include <common.h> + +int interrupt_init (void ) +{ +return 0 ; +} + +void enable_interrupts (void ) +{ + +} + +int disable_interrupts (void ) +{ +return 0 ; +}
arch/h8300/cpu/h8300s/start.S new file +87 -0
87 lines not on this page · raw message
arch/h8300/cpu/h8300s/watchdog.c new file +36 -0
@@ -0,0 +1,36 @@ +/* +* Copyright (C) 2010 Yoshinori Sato <[email protected]> +* +* 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> +#include <asm/io.h> + +int watchdog_init (void ) +{ +return 0 ; +} + +void reset_cpu (unsigned long ignored) +{ +__raw_writew (0x5a80 ,0xffffbc ); +__raw_writew (0x5a40 ,0xffffbe ); +__raw_writew (0xa578 ,0xffffbc ); +while (1 ) + ; +}
arch/h8300/lib/Makefile new file +43 -0
43 lines not on this page · raw message
arch/h8300/lib/board.c new file +158 -0
158 lines not on this page · raw message
arch/h8300/lib/bootm.c new file +70 -0
70 lines not on this page · raw message
arch/h8300/lib/time.c new file +87 -0
87 lines not on this page · raw message
Signature · 1 line
1.7.2.3