From a2bcd7539ce1931b7aec0077ea71dadd62c96edd Mon Sep 17 00:00:00 2001 From: Juan Carrano Date: Tue, 16 Jul 2019 11:09:48 +0200 Subject: [PATCH] cpu/mips32r2_generic: remove cpu. The `mips32r2_generic` CPU was only used by the `mips-malta` board which has been removed. The reasons for this removal are the same as for the board: - No hardware to test. - The board that used this CPU is not available off the shelf. - No UART input. - No integrated flasher (one needs to use a separate Windows tool) For more information and discussion around MIPS, see issues: - #11831 (Removal of mips-malta) - #11788 (General MIPS removal) --- cpu/mips32r2_generic/Makefile | 5 -- cpu/mips32r2_generic/Makefile.features | 1 - cpu/mips32r2_generic/Makefile.include | 8 --- cpu/mips32r2_generic/include/cpu.h | 48 ---------------- cpu/mips32r2_generic/include/cpu_conf.h | 67 ----------------------- cpu/mips32r2_generic/include/periph_cpu.h | 37 ------------- 6 files changed, 166 deletions(-) delete mode 100644 cpu/mips32r2_generic/Makefile delete mode 100644 cpu/mips32r2_generic/Makefile.features delete mode 100644 cpu/mips32r2_generic/Makefile.include delete mode 100644 cpu/mips32r2_generic/include/cpu.h delete mode 100644 cpu/mips32r2_generic/include/cpu_conf.h delete mode 100644 cpu/mips32r2_generic/include/periph_cpu.h diff --git a/cpu/mips32r2_generic/Makefile b/cpu/mips32r2_generic/Makefile deleted file mode 100644 index daf75bfdb8..0000000000 --- a/cpu/mips32r2_generic/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -MODULE = cpu - -DIRS += $(RIOTCPU)/mips32r2_common - -include $(RIOTBASE)/Makefile.base diff --git a/cpu/mips32r2_generic/Makefile.features b/cpu/mips32r2_generic/Makefile.features deleted file mode 100644 index df468eb838..0000000000 --- a/cpu/mips32r2_generic/Makefile.features +++ /dev/null @@ -1 +0,0 @@ --include $(RIOTCPU)/mips32r2_common/Makefile.features diff --git a/cpu/mips32r2_generic/Makefile.include b/cpu/mips32r2_generic/Makefile.include deleted file mode 100644 index efb2a88b13..0000000000 --- a/cpu/mips32r2_generic/Makefile.include +++ /dev/null @@ -1,8 +0,0 @@ -export MEMORY_BASE=0x80000000 -export MEMORY_SIZE=1M -export APP_START=0x80000000 - -include $(RIOTMAKE)/arch/mips.inc.mk -include $(RIOTCPU)/mips32r2_common/Makefile.include - -export LINKFLAGS += -Tuhi32.ld diff --git a/cpu/mips32r2_generic/include/cpu.h b/cpu/mips32r2_generic/include/cpu.h deleted file mode 100644 index 8b910ba585..0000000000 --- a/cpu/mips32r2_generic/include/cpu.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2016, Imagination Technologies Limited and/or its - * affiliated group companies. - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @defgroup cpu_mips32r2_generic Imagination Technologies MIPS32R2 generic - * @ingroup cpu - * @brief Imagination Technologies MIPS32R2 generic - * @{ - * - * @file - * @brief Common implementations and headers for Imagination Technologies MIPS32R2 compliant devices - * - * @author Neil Jones - */ - -#ifndef CPU_H -#define CPU_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include - -#include "irq.h" - -/** - * @brief Print the last instruction's address - * - * @todo: Not supported - */ -static inline void cpu_print_last_instruction(void) -{ - /* This function must exist else RIOT won't compile */ -} - -#ifdef __cplusplus -} -#endif - -#endif /* CPU_H */ -/** @} */ diff --git a/cpu/mips32r2_generic/include/cpu_conf.h b/cpu/mips32r2_generic/include/cpu_conf.h deleted file mode 100644 index 4349f2ec84..0000000000 --- a/cpu/mips32r2_generic/include/cpu_conf.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2016, Imagination Technologies Limited and/or its - * affiliated group companies. - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @ingroup cpu_mips32r2_generic - * @{ - * - * @file - * @brief Common CPU definitions for MIPS32R2 compliant devices. - * - * @author Neil Jones - */ - -#ifndef CPU_CONF_H -#define CPU_CONF_H - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief Configuration of default stack sizes - * - * printf takes a pretty tortured route through the C lib - * then via UHI syscall exception to end up at the UART - * driver. - * - * When debugging timer code we get printfs on the idle threads - * stack which can easily blow its limits. - * - * Note code must be compiled at -Os with these values, using -O0 - * you'll overflow these stacks. - * - * NO ISR stack is in use yet, interrupt use the current running stack - * hence the big-ish default stack size. - * @{ - */ - -#ifndef THREAD_EXTRA_STACKSIZE_PRINTF -#define THREAD_EXTRA_STACKSIZE_PRINTF (1024) -#endif - -#ifndef THREAD_STACKSIZE_DEFAULT -#define THREAD_STACKSIZE_DEFAULT (2048) -#endif - -#ifndef THREAD_STACKSIZE_IDLE -#ifdef NDEBUG -#define THREAD_STACKSIZE_IDLE (512) -#else -#define THREAD_STACKSIZE_IDLE (512 + THREAD_EXTRA_STACKSIZE_PRINTF) -#endif -#endif -/** @} */ - - -#ifdef __cplusplus -} -#endif - -#endif /* CPU_CONF_H */ -/** @} */ diff --git a/cpu/mips32r2_generic/include/periph_cpu.h b/cpu/mips32r2_generic/include/periph_cpu.h deleted file mode 100644 index 98bac93ceb..0000000000 --- a/cpu/mips32r2_generic/include/periph_cpu.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2016, Imagination Technologies Limited and/or its - * affiliated group companies. - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/* This file must exist to get timer code to build */ - -/* No peripherals I/O via JTAG or Bootloader using UHI */ - -#ifndef PERIPH_CPU_H -#define PERIPH_CPU_H - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Power management configuration - * @{ - */ -#define PROVIDES_PM_SET_LOWEST -/** @} */ - -/** - * @brief Prevent shared timer functions from being used - */ -#define PERIPH_TIMER_PROVIDES_SET - -#ifdef __cplusplus -} -#endif - -#endif /* PERIPH_CPU_H */ -/** @} */