Remove NIOS2 and openrisc architectures
Subsystems (8)
v2 cover Remove NIOS2 and openrisc architectures
I am sending this once again, I forgot to add some hunks last time.
Sascha
Sascha Hauer (2):
nios2: Remove architecture
openrisc: Remove architecture
Documentation/boards/openrisc.rst | 57 -- Documentation/user/barebox.rst | 2 - arch/nios2/Kconfig | 29 - arch/nios2/Makefile | 27 - arch/nios2/boards/generic/Makefile | 2 - arch/nios2/boards/generic/config.h | 63 -- .../boards/generic/defaultenv-generic/config | 20 - arch/nios2/boards/generic/generic.c | 77 --- arch/nios2/boards/generic/nios_sopc.h | 406 ------------ arch/nios2/configs/generic_defconfig | 32 - arch/nios2/cpu/.gitignore | 1 - arch/nios2/cpu/Makefile | 5 - arch/nios2/cpu/barebox.lds.S | 114 ---- arch/nios2/cpu/cpu.c | 36 -- arch/nios2/cpu/exceptions.S | 144 ----- arch/nios2/cpu/start.S | 158 ----- arch/nios2/cpu/traps.c | 36 -- arch/nios2/include/asm/bitops.h | 35 -- arch/nios2/include/asm/bitsperlong.h | 1 - arch/nios2/include/asm/byteorder.h | 1 - arch/nios2/include/asm/cache.h | 21 - arch/nios2/include/asm/common.h | 4 - arch/nios2/include/asm/dma-mapping.h | 48 -- arch/nios2/include/asm/dma.h | 8 - arch/nios2/include/asm/early_printf.h | 10 - arch/nios2/include/asm/elf.h | 165 ----- arch/nios2/include/asm/io.h | 51 -- arch/nios2/include/asm/mmu.h | 6 - arch/nios2/include/asm/nios2-io.h | 175 ------ arch/nios2/include/asm/nios2.h | 56 -- arch/nios2/include/asm/opcodes.h | 124 ---- arch/nios2/include/asm/posix_types.h | 1 - arch/nios2/include/asm/ptrace.h | 26 - arch/nios2/include/asm/sections.h | 1 - arch/nios2/include/asm/spi.h | 22 - arch/nios2/include/asm/string.h | 40 -- arch/nios2/include/asm/swab.h | 4 - arch/nios2/include/asm/system.h | 57 -- arch/nios2/include/asm/types.h | 6 - arch/nios2/include/asm/unaligned.h | 15 - arch/nios2/lib/Makefile | 7 - arch/nios2/lib/asm-offsets.c | 22 - arch/nios2/lib/board.c | 29 - arch/nios2/lib/bootm.c | 80 --- arch/nios2/lib/cache.c | 77 --- arch/nios2/lib/clock.c | 53 -- arch/nios2/lib/early_printf.c | 49 -- arch/nios2/lib/libgcc.c | 524 ---------------- arch/nios2/lib/longlong.h | 253 -------- arch/openrisc/Kconfig | 29 - arch/openrisc/Makefile | 30 - arch/openrisc/boards/generic/Makefile | 1 - arch/openrisc/boards/generic/config.h | 24 - arch/openrisc/boards/generic/env/config | 19 - arch/openrisc/boards/generic/generic.c | 10 - arch/openrisc/configs/generic_defconfig | 35 -- arch/openrisc/cpu/.gitignore | 1 - arch/openrisc/cpu/Makefile | 5 - arch/openrisc/cpu/barebox.lds.S | 78 --- arch/openrisc/cpu/cache.c | 151 ----- arch/openrisc/cpu/cpu.c | 38 -- arch/openrisc/cpu/exceptions.c | 84 --- arch/openrisc/cpu/start.S | 358 ----------- arch/openrisc/dts/Makefile | 5 - arch/openrisc/dts/or1ksim.dts | 51 -- arch/openrisc/include/asm/bitops.h | 35 -- arch/openrisc/include/asm/bitops/ffs.h | 26 - arch/openrisc/include/asm/bitops/fls.h | 26 - arch/openrisc/include/asm/bitsperlong.h | 1 - arch/openrisc/include/asm/byteorder.h | 1 - arch/openrisc/include/asm/cache.h | 43 -- arch/openrisc/include/asm/common.h | 4 - arch/openrisc/include/asm/dma.h | 13 - arch/openrisc/include/asm/elf.h | 107 ---- arch/openrisc/include/asm/io.h | 24 - arch/openrisc/include/asm/mmu.h | 6 - arch/openrisc/include/asm/openrisc_exc.h | 37 -- arch/openrisc/include/asm/posix_types.h | 1 - arch/openrisc/include/asm/ptrace.h | 131 ---- arch/openrisc/include/asm/sections.h | 1 - arch/openrisc/include/asm/spr-defs.h | 578 ----------------- arch/openrisc/include/asm/string.h | 4 - arch/openrisc/include/asm/swab.h | 4 - arch/openrisc/include/asm/system.h | 35 -- arch/openrisc/include/asm/types.h | 21 - arch/openrisc/include/asm/unaligned.h | 51 -- arch/openrisc/lib/Makefile | 8 - arch/openrisc/lib/ashldi3.S | 41 -- arch/openrisc/lib/ashrdi3.S | 55 -- arch/openrisc/lib/asm-offsets.c | 18 - arch/openrisc/lib/board.c | 31 - arch/openrisc/lib/clock.c | 41 -- arch/openrisc/lib/cpuinfo.c | 200 ------ arch/openrisc/lib/dtb.c | 35 -- arch/openrisc/lib/lshrdi3.S | 41 -- arch/openrisc/lib/muldi3.S | 58 -- drivers/net/Kconfig | 9 - drivers/net/Makefile | 1 - drivers/net/ethoc.c | 580 ------------------ drivers/of/Kconfig | 2 +- 100 files changed, 1 insertion(+), 6367 deletions(-) delete mode 100644 Documentation/boards/openrisc.rst delete mode 100644 arch/nios2/Kconfig delete mode 100644 arch/nios2/Makefile delete mode 100644 arch/nios2/boards/generic/Makefile delete mode 100644 arch/nios2/boards/generic/config.h delete mode 100644 arch/nios2/boards/generic/defaultenv-generic/config delete mode 100644 arch/nios2/boards/generic/generic.c delete mode 100644 arch/nios2/boards/generic/nios_sopc.h delete mode 100644 arch/nios2/configs/generic_defconfig delete mode 100644 arch/nios2/cpu/.gitignore delete mode 100644 arch/nios2/cpu/Makefile delete mode 100644 arch/nios2/cpu/barebox.lds.S delete mode 100644 arch/nios2/cpu/cpu.c delete mode 100644 arch/nios2/cpu/exceptions.S delete mode 100644 arch/nios2/cpu/start.S delete mode 100644 arch/nios2/cpu/traps.c delete mode 100644 arch/nios2/include/asm/bitops.h delete mode 100644 arch/nios2/include/asm/bitsperlong.h delete mode 100644 arch/nios2/include/asm/byteorder.h delete mode 100644 arch/nios2/include/asm/cache.h delete mode 100644 arch/nios2/include/asm/common.h delete mode 100644 arch/nios2/include/asm/dma-mapping.h delete mode 100644 arch/nios2/include/asm/dma.h delete mode 100644 arch/nios2/include/asm/early_printf.h delete mode 100644 arch/nios2/include/asm/elf.h delete mode 100644 arch/nios2/include/asm/io.h delete mode 100644 arch/nios2/include/asm/mmu.h delete mode 100644 arch/nios2/include/asm/nios2-io.h delete mode 100644 arch/nios2/include/asm/nios2.h delete mode 100644 arch/nios2/include/asm/opcodes.h delete mode 100644 arch/nios2/include/asm/posix_types.h delete mode 100644 arch/nios2/include/asm/ptrace.h delete mode 100644 arch/nios2/include/asm/sections.h delete mode 100644 arch/nios2/include/asm/spi.h delete mode 100644 arch/nios2/include/asm/string.h delete mode 100644 arch/nios2/include/asm/swab.h delete mode 100644 arch/nios2/include/asm/system.h delete mode 100644 arch/nios2/include/asm/types.h delete mode 100644 arch/nios2/include/asm/unaligned.h delete mode 100644 arch/nios2/lib/Makefile delete mode 100644 arch/nios2/lib/asm-offsets.c delete mode 100644 arch/nios2/lib/board.c delete mode 100644 arch/nios2/lib/bootm.c delete mode 100644 arch/nios2/lib/cache.c delete mode 100644 arch/nios2/lib/clock.c delete mode 100644 arch/nios2/lib/early_printf.c delete mode 100644 arch/nios2/lib/libgcc.c delete mode 100644 arch/nios2/lib/longlong.h delete mode 100644 arch/openrisc/Kconfig delete mode 100644 arch/openrisc/Makefile delete mode 100644 arch/openrisc/boards/generic/Makefile delete mode 100644 arch/openrisc/boards/generic/config.h delete mode 100644 arch/openrisc/boards/generic/env/config delete mode 100644 arch/openrisc/boards/generic/generic.c delete mode 100644 arch/openrisc/configs/generic_defconfig delete mode 100644 arch/openrisc/cpu/.gitignore delete mode 100644 arch/openrisc/cpu/Makefile delete mode 100644 arch/openrisc/cpu/barebox.lds.S delete mode 100644 arch/openrisc/cpu/cache.c delete mode 100644 arch/openrisc/cpu/cpu.c delete mode 100644 arch/openrisc/cpu/exceptions.c delete mode 100644 arch/openrisc/cpu/start.S delete mode 100644 arch/openrisc/dts/Makefile delete mode 100644 arch/openrisc/dts/or1ksim.dts delete mode 100644 arch/openrisc/include/asm/bitops.h delete mode 100644 arch/openrisc/include/asm/bitops/ffs.h delete mode 100644 arch/openrisc/include/asm/bitops/fls.h delete mode 100644 arch/openrisc/include/asm/bitsperlong.h delete mode 100644 arch/openrisc/include/asm/byteorder.h delete mode 100644 arch/openrisc/include/asm/cache.h delete mode 100644 arch/openrisc/include/asm/common.h delete mode 100644 arch/openrisc/include/asm/dma.h delete mode 100644 arch/openrisc/include/asm/elf.h delete mode 100644 arch/openrisc/include/asm/io.h delete mode 100644 arch/openrisc/include/asm/mmu.h delete mode 100644 arch/openrisc/include/asm/openrisc_exc.h delete mode 100644 arch/openrisc/include/asm/posix_types.h delete mode 100644 arch/openrisc/include/asm/ptrace.h delete mode 100644 arch/openrisc/include/asm/sections.h delete mode 100644 arch/openrisc/include/asm/spr-defs.h delete mode 100644 arch/openrisc/include/asm/string.h delete mode 100644 arch/openrisc/include/asm/swab.h delete mode 100644 arch/openrisc/include/asm/system.h delete mode 100644 arch/openrisc/include/asm/types.h delete mode 100644 arch/openrisc/include/asm/unaligned.h delete mode 100644 arch/openrisc/lib/Makefile delete mode 100644 arch/openrisc/lib/ashldi3.S delete mode 100644 arch/openrisc/lib/ashrdi3.S delete mode 100644 arch/openrisc/lib/asm-offsets.c delete mode 100644 arch/openrisc/lib/board.c delete mode 100644 arch/openrisc/lib/clock.c delete mode 100644 arch/openrisc/lib/cpuinfo.c delete mode 100644 arch/openrisc/lib/dtb.c delete mode 100644 arch/openrisc/lib/lshrdi3.S delete mode 100644 arch/openrisc/lib/muldi3.S delete mode 100644 drivers/net/ethoc.c
Signature · 7 lines
2.29.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 1/2 nios2: Remove architecture
barebox nios2 support was merged in 2011. It hasn't seen very much active development since then and appears to have no active users. Remove the architecture.
--- Documentation/user/barebox.rst | 1 - arch/nios2/Kconfig | 29 - arch/nios2/Makefile | 27 - arch/nios2/boards/generic/Makefile | 2 - arch/nios2/boards/generic/config.h | 63 --- .../boards/generic/defaultenv-generic/config | 20 - arch/nios2/boards/generic/generic.c | 77 --- arch/nios2/boards/generic/nios_sopc.h | 406 -------------- arch/nios2/configs/generic_defconfig | 32 -- arch/nios2/cpu/.gitignore | 1 - arch/nios2/cpu/Makefile | 5 - arch/nios2/cpu/barebox.lds.S | 114 ---- arch/nios2/cpu/cpu.c | 36 -- arch/nios2/cpu/exceptions.S | 144 ----- arch/nios2/cpu/start.S | 158 ------ arch/nios2/cpu/traps.c | 36 -- arch/nios2/include/asm/bitops.h | 35 -- arch/nios2/include/asm/bitsperlong.h | 1 - arch/nios2/include/asm/byteorder.h | 1 - arch/nios2/include/asm/cache.h | 21 - arch/nios2/include/asm/common.h | 4 - arch/nios2/include/asm/dma-mapping.h | 48 -- arch/nios2/include/asm/dma.h | 8 - arch/nios2/include/asm/early_printf.h | 10 - arch/nios2/include/asm/elf.h | 165 ------ arch/nios2/include/asm/io.h | 51 -- arch/nios2/include/asm/mmu.h | 6 - arch/nios2/include/asm/nios2-io.h | 175 ------ arch/nios2/include/asm/nios2.h | 56 -- arch/nios2/include/asm/opcodes.h | 124 ----- arch/nios2/include/asm/posix_types.h | 1 - arch/nios2/include/asm/ptrace.h | 26 - arch/nios2/include/asm/sections.h | 1 - arch/nios2/include/asm/spi.h | 22 - arch/nios2/include/asm/string.h | 40 -- arch/nios2/include/asm/swab.h | 4 - arch/nios2/include/asm/system.h | 57 -- arch/nios2/include/asm/types.h | 6 - arch/nios2/include/asm/unaligned.h | 15 - arch/nios2/lib/Makefile | 7 - arch/nios2/lib/asm-offsets.c | 22 - arch/nios2/lib/board.c | 29 - arch/nios2/lib/bootm.c | 80 --- arch/nios2/lib/cache.c | 77 --- arch/nios2/lib/clock.c | 53 -- arch/nios2/lib/early_printf.c | 49 -- arch/nios2/lib/libgcc.c | 524 ------------------ arch/nios2/lib/longlong.h | 253 --------- 48 files changed, 3122 deletions(-) delete mode 100644 arch/nios2/Kconfig delete mode 100644 arch/nios2/Makefile delete mode 100644 arch/nios2/boards/generic/Makefile delete mode 100644 arch/nios2/boards/generic/config.h delete mode 100644 arch/nios2/boards/generic/defaultenv-generic/config delete mode 100644 arch/nios2/boards/generic/generic.c delete mode 100644 arch/nios2/boards/generic/nios_sopc.h delete mode 100644 arch/nios2/configs/generic_defconfig delete mode 100644 arch/nios2/cpu/.gitignore delete mode 100644 arch/nios2/cpu/Makefile delete mode 100644 arch/nios2/cpu/barebox.lds.S delete mode 100644 arch/nios2/cpu/cpu.c delete mode 100644 arch/nios2/cpu/exceptions.S delete mode 100644 arch/nios2/cpu/start.S delete mode 100644 arch/nios2/cpu/traps.c delete mode 100644 arch/nios2/include/asm/bitops.h delete mode 100644 arch/nios2/include/asm/bitsperlong.h delete mode 100644 arch/nios2/include/asm/byteorder.h delete mode 100644 arch/nios2/include/asm/cache.h delete mode 100644 arch/nios2/include/asm/common.h delete mode 100644 arch/nios2/include/asm/dma-mapping.h delete mode 100644 arch/nios2/include/asm/dma.h delete mode 100644 arch/nios2/include/asm/early_printf.h delete mode 100644 arch/nios2/include/asm/elf.h delete mode 100644 arch/nios2/include/asm/io.h delete mode 100644 arch/nios2/include/asm/mmu.h delete mode 100644 arch/nios2/include/asm/nios2-io.h delete mode 100644 arch/nios2/include/asm/nios2.h delete mode 100644 arch/nios2/include/asm/opcodes.h delete mode 100644 arch/nios2/include/asm/posix_types.h delete mode 100644 arch/nios2/include/asm/ptrace.h delete mode 100644 arch/nios2/include/asm/sections.h delete mode 100644 arch/nios2/include/asm/spi.h delete mode 100644 arch/nios2/include/asm/string.h delete mode 100644 arch/nios2/include/asm/swab.h delete mode 100644 arch/nios2/include/asm/system.h delete mode 100644 arch/nios2/include/asm/types.h delete mode 100644 arch/nios2/include/asm/unaligned.h delete mode 100644 arch/nios2/lib/Makefile delete mode 100644 arch/nios2/lib/asm-offsets.c delete mode 100644 arch/nios2/lib/board.c delete mode 100644 arch/nios2/lib/bootm.c delete mode 100644 arch/nios2/lib/cache.c delete mode 100644 arch/nios2/lib/clock.c delete mode 100644 arch/nios2/lib/early_printf.c delete mode 100644 arch/nios2/lib/libgcc.c delete mode 100644 arch/nios2/lib/longlong.h
Documentation/user/barebox.rst +0 -1
@@ -54,7 +54,6 @@ variable. Currently, ``ARCH`` must be one of: * arm * mips -* nios2 * openrisc * ppc * riscv
arch/nios2/Kconfig deleted +0 -29
@@ -1,29 +0,0 @@ -config NIOS2 - bool - select HAS_KALLSYMS - select HAS_MODULES - select HAS_CACHE - select HAVE_CONFIGURABLE_MEMORY_LAYOUT - select GENERIC_FIND_NEXT_BIT - default y - -config ARCH_TEXT_BASE - hex - default 0x00000000 - -choice - prompt "Select your board" - -config GENERIC - bool "Generic" - select NIOS2 - -endchoice - -menu "Board configuration" - -config EARLY_PRINTF - default n - bool "Enable early printf functions" - -endmenu
arch/nios2/Makefile deleted +0 -27
@@ -1,27 +0,0 @@ -KBUILD_DEFCONFIG := generic_defconfig - -KBUILD_CPPFLAGS += -fno-strict-aliasing -mno-hw-mul - -board-$(CONFIG_GENERIC) := generic - -KALLSYMS += --symbol-prefix=_ - -archprepare: maketools - - @$(kecho) " SYMLINK include/nios_sopc.h -> arch/nios2/boards/$(board-y)/nios_sopc.h" - @ln -fsn $(src)/arch/nios2/boards/$(board-y)/nios_sopc.h $(obj)/include/nios_sopc.h - -PHONY += maketools - -ifneq ($(board-y),) -BOARD := arch/nios2/boards/$(board-y)/ -else -BOARD := -endif - -common-y += $(BOARD) -common-y += arch/nios2/lib/ -common-y += arch/nios2/cpu/ - -lds-y += arch/nios2/cpu/barebox.lds -
arch/nios2/boards/generic/Makefile deleted +0 -2
@@ -1,2 +0,0 @@ -obj-y += generic.o -bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC) += defaultenv-generic
arch/nios2/boards/generic/config.h deleted +0 -63
63 lines not on this page · raw message
arch/nios2/boards/generic/defaultenv-generic/config deleted +0 -20
@@ -1,20 +0,0 @@ -#!/bin/sh - -# can be either 'net' or 'flash' -kernel=flash -root=flash - -kernel_loc=nor - -# use 'dhcp' todo dhcp in barebox and in kernel -ip=none - -autoboot_timeout=3 - -nor_parts="256k(barebox),128k(env),4M(kernel),-(rootfs)" - -bootargs="console=ttyS0,9600" - -# set a fancy prompt (if support is compiled in) -PS1="\e[1;33mbarebox@\e[1;32mgeneric:\w\e[0m " -
arch/nios2/boards/generic/generic.c deleted +0 -77
77 lines not on this page · raw message
arch/nios2/boards/generic/nios_sopc.h deleted +0 -406
406 lines not on this page · raw message
arch/nios2/configs/generic_defconfig deleted +0 -32
@@ -1,32 +0,0 @@ -CONFIG_EARLY_PRINTF=y -CONFIG_BAUDRATE=9600 -CONFIG_HUSH_FANCY_PROMPT=y -CONFIG_CMDLINE_EDITING=y -CONFIG_AUTO_COMPLETE=y -CONFIG_BOOTM_SHOW_TYPE=y -CONFIG_BOOTM_VERBOSE=y -CONFIG_PARTITION=y -CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y -CONFIG_LONGHELP=y -CONFIG_CMD_GO=y -CONFIG_CMD_RESET=y -CONFIG_CMD_UIMAGE=y -CONFIG_CMD_PARTITION=y -CONFIG_CMD_EXPORT=y -CONFIG_CMD_LOADENV=y -CONFIG_CMD_PRINTENV=y -CONFIG_CMD_SAVEENV=y -CONFIG_CMD_SLEEP=y -CONFIG_CMD_PING=y -CONFIG_CMD_TFTP=y -CONFIG_CMD_ECHO_E=y -CONFIG_CMD_EDIT=y -CONFIG_CMD_READLINE=y -CONFIG_CMD_TIMEOUT=y -CONFIG_CMD_FLASH=y -CONFIG_NET=y -CONFIG_DRIVER_NET_TSE=y -CONFIG_MTD=y -CONFIG_DRIVER_CFI=y -CONFIG_FS_TFTP=y -CONFIG_ZLIB=y
arch/nios2/cpu/.gitignore deleted +0 -1
@@ -1 +0,0 @@ -barebox.lds
arch/nios2/cpu/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -obj-y += start.o -obj-y += exceptions.o -obj-y += cpu.o -obj-y += traps.o -extra-y += barebox.lds
arch/nios2/cpu/barebox.lds.S deleted +0 -114
114 lines not on this page · raw message
arch/nios2/cpu/cpu.c deleted +0 -36
@@ -1,36 +0,0 @@ -/* -* (C) Copyright 2004, Psyent Corporation <www.psyent.com> -* Scott McNutt <[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. -* -*/ - -#include <common.h> -#include <init.h> -#include <restart.h> -#include <asm/system.h> - -static void __noreturn nios2_restart_soc (struct restart_handler *rst) -{ -/* indirect call to go beyond 256MB limitation of toolchain */ -nios2_callr (RESET_ADDR ); - -/* Not reached */ -hang (); -} - -static int restart_register_feature (void ) -{ -return restart_handler_register_fn ("vector" , nios2_restart_soc); -} -coredevice_initcall (restart_register_feature); -
arch/nios2/cpu/exceptions.S deleted +0 -144
144 lines not on this page · raw message
arch/nios2/cpu/start.S deleted +0 -158
158 lines not on this page · raw message
arch/nios2/cpu/traps.c deleted +0 -36
@@ -1,36 +0,0 @@ -/* -* (C) Copyright 2004, Psyent Corporation <www.psyent.com> -* Scott McNutt <[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. -* -*/ - -#include <asm/ptrace.h> -#include <common.h> - -void trap_handler (struct pt_regs *regs) -{ -/* Just issue warning */ -printf ("\n\n*** WARNING: unimplemented trap @ %08x\n\n" , - regs->reg[29 ] -4 ); -} - -void soft_emulation (struct pt_regs *regs) -{ -/* TODO: Software emulation of mul/div etc. Until this is -* implemented, generate warning and hang. -*/ -printf ("\n\n*** ERROR: unimplemented instruction @ %08x\n" , - regs->reg[29 ] -4 ); - -hang (); -}
arch/nios2/include/asm/bitops.h deleted +0 -35
@@ -1,35 +0,0 @@ -/* -* 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. -* -* -*/ - -#ifndef _ASM_BITOPS_H_ -#define _ASM_BITOPS_H_ - -#include <asm-generic/bitops/__ffs.h> -#include <asm-generic/bitops/__fls.h> -#include <asm-generic/bitops/ffs.h> -#include <asm-generic/bitops/fls.h> -#include <asm-generic/bitops/ffz.h> -#include <asm-generic/bitops/hweight.h> -#include <asm-generic/bitops/fls64.h> -#include <asm-generic/bitops/find.h> -#include <asm-generic/bitops/ops.h> - -#define set_bit (x, y) __set_bit(x, y) -#define clear_bit (x, y) __clear_bit(x, y) -#define change_bit (x, y) __change_bit(x, y) -#define test_and_set_bit (x, y) __test_and_set_bit(x, y) -#define test_and_clear_bit (x, y) __test_and_clear_bit(x, y) -#define test_and_change_bit (x, y) __test_and_change_bit(x, y) - -#endif /* _ASM_BITOPS_H_ */
arch/nios2/include/asm/bitsperlong.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/bitsperlong.h>
arch/nios2/include/asm/byteorder.h deleted +0 -1
@@ -1 +0,0 @@ -#include <linux/byteorder/little_endian.h>
arch/nios2/include/asm/cache.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* -* Copyright (C) 2003 Microtronix Datacom Ltd. -* Copyright (C) 2000-2002 Greg Ungerer <[email protected]> -* -* Ported from m68knommu. -* -* This file is subject to the terms and conditions of the GNU General Public -* License. See the file "COPYING" in the main directory of this archive -* for more details. -*/ - -#ifndef _ASM_NIOS2_CACHEFLUSH_H -#define _ASM_NIOS2_CACHEFLUSH_H - -void flush_cache_all (void ); -void flush_dcache_all (void ); -void flush_icache_all (void ); -void flush_icache_range (unsigned long start,unsigned long end); -void flush_dcache_range (unsigned long start,unsigned long end); - -#endif /* _ASM_NIOS2_CACHEFLUSH_H */
arch/nios2/include/asm/common.h deleted +0 -4
@@ -1,4 +0,0 @@ -#ifndef _ASM_COMMON_H -#define __ASM_COMMON_H - -#endif /* _ASM_COMMON_H */
arch/nios2/include/asm/dma-mapping.h deleted +0 -48
48 lines not on this page · raw message
arch/nios2/include/asm/dma.h deleted +0 -8
@@ -1,8 +0,0 @@ -/* -* Copyright (C) 2012 by Marc Kleine-Budde <[email protected]> -* -* This file is released under the GPLv2 -* -*/ - -#include <asm/dma-mapping.h>
arch/nios2/include/asm/early_printf.h deleted +0 -10
@@ -1,10 +0,0 @@ -#ifndef _EARLY_PRINTF_ -#define _EARLY_PRINTF_ - -#include <asm/nios2-io.h> - -void early_putc (char ch); -void early_puts (const char *s); -int early_printf (const char *fmt, ...); - -#endif /* _EARLY_PRINTF_ */
arch/nios2/include/asm/elf.h deleted +0 -165
165 lines not on this page · raw message
arch/nios2/include/asm/io.h deleted +0 -51
51 lines not on this page · raw message
arch/nios2/include/asm/mmu.h deleted +0 -6
@@ -1,6 +0,0 @@ -#ifndef __ASM_MMU_H -#define __ASM_MMU_H - -#define MAP_ARCH_DEFAULT MAP_UNCACHED - -#endif /* __ASM_MMU_H */
arch/nios2/include/asm/nios2-io.h deleted +0 -175
175 lines not on this page · raw message
arch/nios2/include/asm/nios2.h deleted +0 -56
56 lines not on this page · raw message
arch/nios2/include/asm/opcodes.h deleted +0 -124
124 lines not on this page · raw message
arch/nios2/include/asm/posix_types.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/posix_types.h>
arch/nios2/include/asm/ptrace.h deleted +0 -26
@@ -1,26 +0,0 @@ -/* -* (C) Copyright 2004, Psyent Corporation <www.psyent.com> -* Scott McNutt <[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. -* -*/ - -#ifndef __ASM_NIOS2_PTRACE_H_ -#define __ASM_NIOS2_PTRACE_H_ - -struct pt_regs { -unsigned reg[32 ]; -unsigned status; -}; - - -#endif /* __ASM_NIOS2_PTRACE_H_ */
arch/nios2/include/asm/sections.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/sections.h>
arch/nios2/include/asm/spi.h deleted +0 -22
@@ -1,22 +0,0 @@ -#ifndef __ALTERA_SPI_H_ -#define __ALTERA_SPI_H_ - -#include <spi/spi.h> - -struct spi_altera_master { -int num_chipselect; -int spi_mode; -int databits; -int speed; -int bus_num; -}; - -struct altera_spi { -struct spi_master master; -int databits; -int speed; -int mode; -void __iomem *regs; -}; - -#endif /*__ALTERA_SPI_H_*/
arch/nios2/include/asm/string.h deleted +0 -40
@@ -1,40 +0,0 @@ -/* -* (C) Copyright 2004, Psyent Corporation <www.psyent.com> -* Scott McNutt <[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. -* -*/ -#ifndef __ASM_NIOS2_STRING_H_ -#define __ASM_NIOS2_STRING_H_ -/* -#undef __HAVE_ARCH_STRRCHR -extern char *strrchr(const char * s, int c); - -#undef __HAVE_ARCH_STRCHR -extern char *strchr(const char * s, int c); -*/ -#undef __HAVE_ARCH_MEMCPY -extern void *memcpy (void *,const void *,__kernel_size_t ); - -#undef __HAVE_ARCH_MEMMOVE -extern void *memmove (void *,const void *,__kernel_size_t ); - -#undef __HAVE_ARCH_MEMCHR -extern void *memchr (const void *,int ,__kernel_size_t ); - -#undef __HAVE_ARCH_MEMSET -extern void *memset (void *,int ,__kernel_size_t ); - -#undef __HAVE_ARCH_MEMZERO -extern void memzero (void *ptr,__kernel_size_t n); - -#endif /* __ASM_NIOS2_STRING_H_ */
arch/nios2/include/asm/swab.h deleted +0 -4
@@ -1,4 +0,0 @@ -#ifndef _ASM_SWAB_H -#define _ASM_SWAB_H - -#endif /* _ASM_SWAB_H */
arch/nios2/include/asm/system.h deleted +0 -57
57 lines not on this page · raw message
arch/nios2/include/asm/types.h deleted +0 -6
@@ -1,6 +0,0 @@ -#ifndef __ASM_TYPES_H -#define __ASM_TYPES_H - -#include <asm-generic/int-ll64.h> - -#endif
arch/nios2/include/asm/unaligned.h deleted +0 -15
@@ -1,15 +0,0 @@ -#ifndef _ASM_NIOS_UNALIGNED_H -#define _ASM_NIOS_UNALIGNED_H - -#include <linux/unaligned/le_byteshift.h> -#include <linux/unaligned/be_byteshift.h> -#include <linux/unaligned/generic.h> - -/* -* Select endianness -*/ - -#define get_unaligned __get_unaligned_le -#define put_unaligned __put_unaligned_le - -#endif /* _ASM_NIOS_UNALIGNED_H */
arch/nios2/lib/Makefile deleted +0 -7
@@ -1,7 +0,0 @@ -obj-y += board.o -obj-y += libgcc.o -obj-y += clock.o -obj-y += cache.o -obj-$(CONFIG_CMD_BOOTM) += bootm.o -obj-$(CONFIG_EARLY_PRINTF) += early_printf.o -
arch/nios2/lib/asm-offsets.c deleted +0 -22
@@ -1,22 +0,0 @@ -/* -* 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, see <http://www.gnu.org/licenses/>. -* -*/ - -#include <linux/kbuild.h> - -int main (void ) -{ -return 0 ; -}
arch/nios2/lib/board.c deleted +0 -29
@@ -1,29 +0,0 @@ -/* -* (C) Copyright 2011 - Franck JULLIEN <[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. -* -*/ - -#include <common.h> -#include <malloc.h> -#include <memory.h> -#include <asm-generic/memory_layout.h> -#include <cache.h> - -void __noreturn nios_start_barebox (void ) -{ - -mem_malloc_init ((void *)(NIOS_SOPC_TEXT_BASE -MALLOC_SIZE ), - (void *)(NIOS_SOPC_TEXT_BASE -1 )); - -start_barebox (); -}
arch/nios2/lib/bootm.c deleted +0 -80
80 lines not on this page · raw message
arch/nios2/lib/cache.c deleted +0 -77
77 lines not on this page · raw message
arch/nios2/lib/clock.c deleted +0 -53
53 lines not on this page · raw message
arch/nios2/lib/early_printf.c deleted +0 -49
49 lines not on this page · raw message
arch/nios2/lib/libgcc.c deleted +0 -524
524 lines not on this page · raw message
arch/nios2/lib/longlong.h deleted +0 -253
125 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 7 lines
2.29.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Part of the diff is not shown here. View the raw message.
PATCH v2 2/2 openrisc: Remove architecture
In reply to Sascha Hauerbarebox openrisc support was merged in 2011. It hasn't seen very much active development since then and appears to have no active users. Remove the architecture. Along with it also remove the ethoc driver which depends on and is only used with openrisc.
--- Documentation/boards/openrisc.rst | 57 --- Documentation/user/barebox.rst | 1 - arch/openrisc/Kconfig | 29 -- arch/openrisc/Makefile | 30 -- arch/openrisc/boards/generic/Makefile | 1 - arch/openrisc/boards/generic/config.h | 24 - arch/openrisc/boards/generic/env/config | 19 - arch/openrisc/boards/generic/generic.c | 10 - arch/openrisc/configs/generic_defconfig | 35 -- arch/openrisc/cpu/.gitignore | 1 - arch/openrisc/cpu/Makefile | 5 - arch/openrisc/cpu/barebox.lds.S | 78 --- arch/openrisc/cpu/cache.c | 151 ------ arch/openrisc/cpu/cpu.c | 38 -- arch/openrisc/cpu/exceptions.c | 84 ---- arch/openrisc/cpu/start.S | 358 -------------- arch/openrisc/dts/Makefile | 5 - arch/openrisc/dts/or1ksim.dts | 51 -- arch/openrisc/include/asm/bitops.h | 35 -- arch/openrisc/include/asm/bitops/ffs.h | 26 - arch/openrisc/include/asm/bitops/fls.h | 26 - arch/openrisc/include/asm/bitsperlong.h | 1 - arch/openrisc/include/asm/byteorder.h | 1 - arch/openrisc/include/asm/cache.h | 43 -- arch/openrisc/include/asm/common.h | 4 - arch/openrisc/include/asm/dma.h | 13 - arch/openrisc/include/asm/elf.h | 107 ----- arch/openrisc/include/asm/io.h | 24 - arch/openrisc/include/asm/mmu.h | 6 - arch/openrisc/include/asm/openrisc_exc.h | 37 -- arch/openrisc/include/asm/posix_types.h | 1 - arch/openrisc/include/asm/ptrace.h | 131 ----- arch/openrisc/include/asm/sections.h | 1 - arch/openrisc/include/asm/spr-defs.h | 578 ---------------------- arch/openrisc/include/asm/string.h | 4 - arch/openrisc/include/asm/swab.h | 4 - arch/openrisc/include/asm/system.h | 35 -- arch/openrisc/include/asm/types.h | 21 - arch/openrisc/include/asm/unaligned.h | 51 -- arch/openrisc/lib/Makefile | 8 - arch/openrisc/lib/ashldi3.S | 41 -- arch/openrisc/lib/ashrdi3.S | 55 --- arch/openrisc/lib/asm-offsets.c | 18 - arch/openrisc/lib/board.c | 31 -- arch/openrisc/lib/clock.c | 41 -- arch/openrisc/lib/cpuinfo.c | 200 -------- arch/openrisc/lib/dtb.c | 35 -- arch/openrisc/lib/lshrdi3.S | 41 -- arch/openrisc/lib/muldi3.S | 58 --- drivers/net/Kconfig | 9 - drivers/net/Makefile | 1 - drivers/net/ethoc.c | 580 ----------------------- drivers/of/Kconfig | 2 +- 53 files changed, 1 insertion(+), 3245 deletions(-) delete mode 100644 Documentation/boards/openrisc.rst delete mode 100644 arch/openrisc/Kconfig delete mode 100644 arch/openrisc/Makefile delete mode 100644 arch/openrisc/boards/generic/Makefile delete mode 100644 arch/openrisc/boards/generic/config.h delete mode 100644 arch/openrisc/boards/generic/env/config delete mode 100644 arch/openrisc/boards/generic/generic.c delete mode 100644 arch/openrisc/configs/generic_defconfig delete mode 100644 arch/openrisc/cpu/.gitignore delete mode 100644 arch/openrisc/cpu/Makefile delete mode 100644 arch/openrisc/cpu/barebox.lds.S delete mode 100644 arch/openrisc/cpu/cache.c delete mode 100644 arch/openrisc/cpu/cpu.c delete mode 100644 arch/openrisc/cpu/exceptions.c delete mode 100644 arch/openrisc/cpu/start.S delete mode 100644 arch/openrisc/dts/Makefile delete mode 100644 arch/openrisc/dts/or1ksim.dts delete mode 100644 arch/openrisc/include/asm/bitops.h delete mode 100644 arch/openrisc/include/asm/bitops/ffs.h delete mode 100644 arch/openrisc/include/asm/bitops/fls.h delete mode 100644 arch/openrisc/include/asm/bitsperlong.h delete mode 100644 arch/openrisc/include/asm/byteorder.h delete mode 100644 arch/openrisc/include/asm/cache.h delete mode 100644 arch/openrisc/include/asm/common.h delete mode 100644 arch/openrisc/include/asm/dma.h delete mode 100644 arch/openrisc/include/asm/elf.h delete mode 100644 arch/openrisc/include/asm/io.h delete mode 100644 arch/openrisc/include/asm/mmu.h delete mode 100644 arch/openrisc/include/asm/openrisc_exc.h delete mode 100644 arch/openrisc/include/asm/posix_types.h delete mode 100644 arch/openrisc/include/asm/ptrace.h delete mode 100644 arch/openrisc/include/asm/sections.h delete mode 100644 arch/openrisc/include/asm/spr-defs.h delete mode 100644 arch/openrisc/include/asm/string.h delete mode 100644 arch/openrisc/include/asm/swab.h delete mode 100644 arch/openrisc/include/asm/system.h delete mode 100644 arch/openrisc/include/asm/types.h delete mode 100644 arch/openrisc/include/asm/unaligned.h delete mode 100644 arch/openrisc/lib/Makefile delete mode 100644 arch/openrisc/lib/ashldi3.S delete mode 100644 arch/openrisc/lib/ashrdi3.S delete mode 100644 arch/openrisc/lib/asm-offsets.c delete mode 100644 arch/openrisc/lib/board.c delete mode 100644 arch/openrisc/lib/clock.c delete mode 100644 arch/openrisc/lib/cpuinfo.c delete mode 100644 arch/openrisc/lib/dtb.c delete mode 100644 arch/openrisc/lib/lshrdi3.S delete mode 100644 arch/openrisc/lib/muldi3.S delete mode 100644 drivers/net/ethoc.c
Documentation/boards/openrisc.rst deleted +0 -57
@@ -1,57 +0,0 @@ -OpenRISC -======== - -or1ksim -------- - -Compile or1ksim emulator: - -.. code-block:: console - - $ cd ~/ - $ git clone https://github.com/openrisc/or1ksim - $ cd or1ksim - $ ./configure - $ make - -Create minimal or1ksim.cfg file: - -.. code-block:: none - - section cpu - ver = 0x12 - cfgr = 0x20 - rev = 0x0001 - end - - section memory - name = "RAM" - type = unknown - baseaddr = 0x00000000 - size = 0x02000000 - delayr = 1 - delayw = 2 - end - - section uart - enabled = 1 - baseaddr = 0x90000000 - irq = 2 - 16550 = 1 - /* channel = "tcp:10084" */ - channel = "xterm:" - end - - section ethernet - enabled = 1 - baseaddr = 0x92000000 - irq = 4 - rtx_type = "tap" - tap_dev = "tap0" - end - -Run or1ksim: - -.. code-block:: console - - $ ~/or1ksim/sim -f or1ksim.cfg barebox
Documentation/user/barebox.rst +0 -1
@@ -54,7 +54,6 @@ variable. Currently, ``ARCH`` must be one of: * arm * mips -* openrisc * ppc * riscv * sandbox
arch/openrisc/Kconfig deleted +0 -29
@@ -1,29 +0,0 @@ -config OPENRISC - bool - select OFTREE - select HAS_CACHE - select HAVE_CONFIGURABLE_MEMORY_LAYOUT - select GENERIC_FIND_NEXT_BIT - default y - -# not used -config ARCH_TEXT_BASE - hex - default 0x00000000 - -config BUILTIN_DTB - bool "link a DTB into the barebox image" - depends on OFTREE - -config BUILTIN_DTB_NAME - string "DTB to build into the barebox image" - depends on BUILTIN_DTB - -choice - prompt "Select your board" - -config GENERIC - bool "Generic" - select OPENRISC - -endchoice
arch/openrisc/Makefile deleted +0 -30
@@ -1,30 +0,0 @@ -KBUILD_DEFCONFIG := generic_defconfig - -KBUILD_CPPFLAGS += -D__OR1K__ -ffixed-r10 -mhard-mul -mhard-div - -board-$(CONFIG_GENERIC) := generic - -KALLSYMS += --symbol-prefix=_ - -archprepare: maketools - -PHONY += maketools - -ifneq ($(board-y),) -BOARD := arch/openrisc/boards/$(board-y)/ -else -BOARD := -endif - -common-y += $(BOARD) -common-y += arch/openrisc/lib/ -common-y += arch/openrisc/cpu/ - -lds-y += arch/openrisc/cpu/barebox.lds - -common-$(CONFIG_BUILTIN_DTB) += arch/openrisc/dts/ - -dts := arch/openrisc/dts - -%.dtb: scripts - $(Q)$(MAKE) $(build)=$(dts) $(dts)/$@
arch/openrisc/boards/generic/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-y += generic.o
arch/openrisc/boards/generic/config.h deleted +0 -24
@@ -1,24 +0,0 @@ -#ifndef _GENERIC_NAMES_H_ -#define _GENERIC_NAMES_H_ - -#define CONFIG_SYS_CLK_FREQ 50000000 - -#define OPENRISC_TIMER_FREQ CONFIG_SYS_CLK_FREQ - -#define OPENRISC_SOPC_MEMORY_BASE 0x00000000 -#define OPENRISC_SOPC_MEMORY_SIZE 0x02000000 - -/* We reserve 512K for barebox */ -#define BAREBOX_RESERVED_SIZE 0x80000 - -/* Barebox will be at top of main memory */ -#define OPENRISC_SOPC_TEXT_BASE (OPENRISC_SOPC_MEMORY_BASE + OPENRISC_SOPC_MEMORY_SIZE - BAREBOX_RESERVED_SIZE) - -/* -* TEXT_BASE is defined here because STACK_BASE definition -* in include/asm-generic/memory_layout.h uses this name -*/ - -#define TEXT_BASE OPENRISC_SOPC_TEXT_BASE - -#endif
arch/openrisc/boards/generic/env/config deleted +0 -19
@@ -1,19 +0,0 @@ -#!/bin/sh - -# can be either 'net' or 'flash' -kernel=flash -root=flash - -kernel_loc=nor - -# use 'dhcp' todo dhcp in barebox and in kernel -ip=none - -autoboot_timeout=3 - -nor_parts="256k(barebox),128k(env),4M(kernel),-(rootfs)" - -bootargs="console=ttyS0,9600" - -# set a fancy prompt (if support is compiled in) -PS1="\e[1;33mbarebox@\e[1;32mor32:\w\e[0m "
arch/openrisc/boards/generic/generic.c deleted +0 -10
@@ -1,10 +0,0 @@ -#include <common.h> -#include <init.h> - -static int openrisc_core_init (void ) -{ -barebox_set_hostname ("or1k" ); - -return 0 ; -} -core_initcall (openrisc_core_init);
arch/openrisc/configs/generic_defconfig deleted +0 -35
@@ -1,35 +0,0 @@ -CONFIG_BUILTIN_DTB=y -CONFIG_BUILTIN_DTB_NAME="or1ksim" -CONFIG_HUSH_FANCY_PROMPT=y -CONFIG_CMDLINE_EDITING=y -CONFIG_AUTO_COMPLETE=y -CONFIG_PARTITION=y -CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y -CONFIG_LONGHELP=y -CONFIG_CMD_IOMEM=y -CONFIG_CMD_MEMINFO=y -# CONFIG_CMD_BOOTM is not set -CONFIG_CMD_GO=y -CONFIG_CMD_RESET=y -CONFIG_CMD_PARTITION=y -CONFIG_CMD_EXPORT=y -CONFIG_CMD_PRINTENV=y -CONFIG_CMD_SAVEENV=y -CONFIG_CMD_DHCP=y -CONFIG_CMD_MIITOOL=y -CONFIG_CMD_PING=y -CONFIG_CMD_TFTP=y -CONFIG_CMD_ECHO_E=y -CONFIG_CMD_EDIT=y -CONFIG_CMD_TIMEOUT=y -CONFIG_CMD_FLASH=y -CONFIG_CMD_OF_NODE=y -CONFIG_CMD_OF_PROPERTY=y -CONFIG_CMD_OFTREE=y -CONFIG_CMD_TIME=y -CONFIG_NET=y -CONFIG_OFDEVICE=y -CONFIG_OF_BAREBOX_DRIVERS=y -CONFIG_DRIVER_SERIAL_NS16550=y -CONFIG_DRIVER_NET_ETHOC=y -CONFIG_FS_TFTP=y
arch/openrisc/cpu/.gitignore deleted +0 -1
@@ -1 +0,0 @@ -barebox.lds
arch/openrisc/cpu/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ -obj-y += start.o -obj-y += cpu.o -obj-y += exceptions.o -obj-y += cache.o -extra-y += barebox.lds
arch/openrisc/cpu/barebox.lds.S deleted +0 -78
78 lines not on this page · raw message
arch/openrisc/cpu/cache.c deleted +0 -151
151 lines not on this page · raw message
arch/openrisc/cpu/cpu.c deleted +0 -38
@@ -1,38 +0,0 @@ -/* -* (C) Copyright 2011, Stefan Kristiansson <[email protected]> -* (C) Copyright 2011, Julius Baxter <[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. -* -*/ - -#include <common.h> -#include <init.h> -#include <restart.h> -#include <asm/system.h> -#include <asm/openrisc_exc.h> - -extern void __reset (void ); - -static void __noreturn openrisc_restart_cpu (struct restart_handler *rst) -{ -__reset (); -/* not reached, __reset does not return */ - -/* Not reached */ -hang (); -} - -static int restart_register_feature (void ) -{ -return restart_handler_register_fn ("vector" , openrisc_restart_cpu); -} -coredevice_initcall (restart_register_feature);
arch/openrisc/cpu/exceptions.c deleted +0 -84
84 lines not on this page · raw message
arch/openrisc/cpu/start.S deleted +0 -358
358 lines not on this page · raw message
arch/openrisc/dts/Makefile deleted +0 -5
@@ -1,5 +0,0 @@ - -BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_NAME)) -obj-$(CONFIG_BUILTIN_DTB) += $(BUILTIN_DTB).dtb.o - -clean-files := *.dtb *.dtb.S
arch/openrisc/dts/or1ksim.dts deleted +0 -51
51 lines not on this page · raw message
arch/openrisc/include/asm/bitops.h deleted +0 -35
@@ -1,35 +0,0 @@ -/* -* 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. -* -* -*/ - -#ifndef _ASM_BITOPS_H_ -#define _ASM_BITOPS_H_ - -#include <asm-generic/bitops/__ffs.h> -#include <asm-generic/bitops/__fls.h> -#include <asm-generic/bitops/ffs.h> -#include <asm-generic/bitops/fls.h> -#include <asm-generic/bitops/ffz.h> -#include <asm-generic/bitops/hweight.h> -#include <asm-generic/bitops/fls64.h> -#include <asm-generic/bitops/find.h> -#include <asm-generic/bitops/ops.h> - -#define set_bit (x, y) __set_bit(x, y) -#define clear_bit (x, y) __clear_bit(x, y) -#define change_bit (x, y) __change_bit(x, y) -#define test_and_set_bit (x, y) __test_and_set_bit(x, y) -#define test_and_clear_bit (x, y) __test_and_clear_bit(x, y) -#define test_and_change_bit (x, y) __test_and_change_bit(x, y) - -#endif /* _ASM_BITOPS_H_ */
arch/openrisc/include/asm/bitops/ffs.h deleted +0 -26
@@ -1,26 +0,0 @@ -/* -* OpenRISC Linux -* -* Copyright (C) 2010-2011 Jonas Bonn <[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. -*/ - -#ifndef __ASM_OPENRISC_FFS_H -#define __ASM_OPENRISC_FFS_H - -static inline int ffs (int x) -{ -int ret; - - __asm__ ("l.ff1 %0,%1" - :"=r" (ret) - :"r" (x)); - -return ret; -} - -#endif /* __ASM_OPENRISC_FFS_H */
arch/openrisc/include/asm/bitops/fls.h deleted +0 -26
@@ -1,26 +0,0 @@ -/* -* OpenRISC Linux -* -* Copyright (C) 2010-2011 Jonas Bonn <[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. -*/ - -#ifndef __ASM_OPENRISC_FLS_H -#define __ASM_OPENRISC_FLS_H - -static inline int fls (int x) -{ -int ret; - - __asm__ ("l.fl1 %0,%1" - :"=r" (ret) - :"r" (x)); - -return ret; -} - -#endif /* __ASM_OPENRISC_FLS_H */
arch/openrisc/include/asm/bitsperlong.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/bitsperlong.h>
arch/openrisc/include/asm/byteorder.h deleted +0 -1
@@ -1 +0,0 @@ -#include <linux/byteorder/big_endian.h>
arch/openrisc/include/asm/cache.h deleted +0 -43
43 lines not on this page · raw message
arch/openrisc/include/asm/common.h deleted +0 -4
@@ -1,4 +0,0 @@ -#ifndef _ASM_COMMON_H -#define __ASM_COMMON_H - -#endif /* _ASM_COMMON_H */
arch/openrisc/include/asm/dma.h deleted +0 -13
@@ -1,13 +0,0 @@ -/* -* Copyright (C) 2012 by Marc Kleine-Budde <[email protected]> -* -* This file is released under the GPLv2 -* -*/ - -#ifndef __ASM_DMA_H -#define __ASM_DMA_H - -/* empty */ - -#endif /* __ASM_DMA_H */
arch/openrisc/include/asm/elf.h deleted +0 -107
107 lines not on this page · raw message
arch/openrisc/include/asm/io.h deleted +0 -24
@@ -1,24 +0,0 @@ -/* -* (C) Copyright 2011, Julius Baxter <[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. -* -*/ - -#ifndef __ASM_OPENRISC_IO_H -#define __ASM_OPENRISC_IO_H - -#define IO_SPACE_LIMIT 0x0 - -#include <asm/byteorder.h> -#include <asm-generic/io.h> - -#endif
arch/openrisc/include/asm/mmu.h deleted +0 -6
@@ -1,6 +0,0 @@ -#ifndef __ASM_MMU_H -#define __ASM_MMU_H - -#define MAP_ARCH_DEFAULT MAP_UNCACHED - -#endif /* __ASM_MMU_H */
arch/openrisc/include/asm/openrisc_exc.h deleted +0 -37
@@ -1,37 +0,0 @@ -/* -* (C) Copyright 2011, Stefan Kristiansson <[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. -* -*/ - -#ifndef _OPENRISC_EXC_H_ -#define _OPENRISC_EXC_H_ - -#define EXC_RESET 0x01 -#define EXC_BUS_ERROR 0x02 -#define EXC_DATA_PAGE_FAULT 0x03 -#define EXC_INSTR_PAGE_FAULT 0x04 -#define EXC_TIMER 0x05 -#define EXC_ALIGNMENT 0x06 -#define EXC_ILLEGAL_INSTR 0x07 -#define EXC_EXT_IRQ 0x08 -#define EXC_DTLB_MISS 0x09 -#define EXC_ITLB_MISS 0x0a -#define EXC_RANGE 0x0b -#define EXC_SYSCALL 0x0c -#define EXC_FLOAT_POINT 0x0d -#define EXC_TRAP 0x0e - -void exception_install_handler (int exception,void (*handler)(void )); -void exception_free_handler (int exception); - -#endif
arch/openrisc/include/asm/posix_types.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/posix_types.h>
arch/openrisc/include/asm/ptrace.h deleted +0 -131
131 lines not on this page · raw message
arch/openrisc/include/asm/sections.h deleted +0 -1
@@ -1 +0,0 @@ -#include <asm-generic/sections.h>
arch/openrisc/include/asm/spr-defs.h deleted +0 -578
578 lines not on this page · raw message
arch/openrisc/include/asm/string.h deleted +0 -4
@@ -1,4 +0,0 @@ -#ifndef __ASM_OPENRISC_STRING_H -#define __ASM_OPENRISC_STRING_H - -#endif
arch/openrisc/include/asm/swab.h deleted +0 -4
@@ -1,4 +0,0 @@ -#ifndef _ASM_SWAB_H -#define _ASM_SWAB_H - -#endif /* _ASM_SWAB_H */
arch/openrisc/include/asm/system.h deleted +0 -35
@@ -1,35 +0,0 @@ -/* -* (C) Copyright 2011, Julius Baxter <[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. -* -*/ - -#ifndef __ASM_OPENRISC_SYSTEM_H -#define __ASM_OPENRISC_SYSTEM_H - -#include <asm/spr-defs.h> - -static inline unsigned long mfspr (unsigned long add) -{ -unsigned long ret; - - __asm__ __volatile__ ("l.mfspr %0,r0,%1" :"=r" (ret) :"K" (add)); - -return ret; -} - -static inline void mtspr (unsigned long add,unsigned long val) -{ - __asm__ __volatile__ ("l.mtspr r0,%1,%0" : :"K" (add),"r" (val)); -} - -#endif /* __ASM_OPENRISC_SYSTEM_H */
arch/openrisc/include/asm/types.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* -* (C) Copyright 2011, Julius Baxter <[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. -* -*/ - -#ifndef _ASM_TYPES_H -#define _ASM_TYPES_H - -#include <asm-generic/int-ll64.h> - -#endif /* _ASM_TYPES_H */
arch/openrisc/include/asm/unaligned.h deleted +0 -51
51 lines not on this page · raw message
arch/openrisc/lib/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -obj-y += clock.o -obj-y += board.o -obj-y += cpuinfo.o -obj-y += muldi3.o -obj-y += lshrdi3.o -obj-y += ashldi3.o -obj-y += ashrdi3.o -obj-$(CONFIG_BUILTIN_DTB) += dtb.o
arch/openrisc/lib/ashldi3.S deleted +0 -41
41 lines not on this page · raw message
arch/openrisc/lib/ashrdi3.S deleted +0 -55
55 lines not on this page · raw message
arch/openrisc/lib/asm-offsets.c deleted +0 -18
@@ -1,18 +0,0 @@ -/* -* OpenRISC asm-offsets.c -* -* This program is used to generate definitions needed by -* assembly language modules. -* -* We use the technique used in the OSF Mach kernel code: -* generate asm statements containing #defines, -* compile this file to assembler, and then extract the -* #defines from the assembly-language output. -*/ - -#include <linux/kbuild.h> - -int main (void ) -{ -return 0 ; -}
arch/openrisc/lib/board.c deleted +0 -31
@@ -1,31 +0,0 @@ -/* -* (C) Copyright 2011 - Franck JULLIEN <[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. -* -*/ - -#include <common.h> -#include <malloc.h> -#include <init.h> -#include <memory.h> -#include <asm-generic/memory_layout.h> - -/* Called from assembly */ -void openrisc_start_barebox (void ); - -void __noreturn openrisc_start_barebox (void ) -{ -mem_malloc_init ((void *)(OPENRISC_SOPC_TEXT_BASE -MALLOC_SIZE ), - (void *)(OPENRISC_SOPC_TEXT_BASE -1 )); - -start_barebox (); -}
arch/openrisc/lib/clock.c deleted +0 -41
41 lines not on this page · raw message
arch/openrisc/lib/cpuinfo.c deleted +0 -200
200 lines not on this page · raw message
arch/openrisc/lib/dtb.c deleted +0 -35
@@ -1,35 +0,0 @@ -/* -* Copyright (C) 2014 Antony Pavlov <[email protected]> -* -* Based on arch/arm/cpu/dtb.c: -* Copyright (C) 2013 Sascha Hauer <[email protected]>, Pengutronix -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 -* as published by the Free Software Foundation. -* -* 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. -* -*/ -#include <common.h> -#include <init.h> -#include <of.h> - -extern char __dtb_start[]; - -static int of_openrisc_init (void ) -{ -struct device_node *root; - - root =of_get_root_node (); -if (root) -return 0 ; - -barebox_register_fdt (__dtb_start); - -return 0 ; -} -core_initcall (of_openrisc_init);
arch/openrisc/lib/lshrdi3.S deleted +0 -41
41 lines not on this page · raw message
arch/openrisc/lib/muldi3.S deleted +0 -58
58 lines not on this page · raw message
drivers/net/Kconfig +0 -9
@@ -143,15 +143,6 @@ config DRIVER_NET_EP93XX depends on ARCH_EP93XX select PHYLIB -config DRIVER_NET_ETHOC - bool "OpenCores ethernet MAC driver" - depends on OPENRISC - depends on HAS_CACHE - select PHYLIB - help - This option enables support for the OpenCores 10/100 Mbps - Ethernet MAC core. - config DRIVER_NET_FEC_IMX bool "i.MX FEC Ethernet driver" depends on ARCH_HAS_FEC_IMX || COMPILE_TEST
drivers/net/Makefile +0 -1
@@ -18,7 +18,6 @@ obj-$(CONFIG_DRIVER_NET_DM9K) += dm9k.o obj-$(CONFIG_DRIVER_NET_E1000) += e1000/regio.o e1000/main.o e1000/eeprom.o obj-$(CONFIG_DRIVER_NET_ENC28J60) += enc28j60.o obj-$(CONFIG_DRIVER_NET_EP93XX) += ep93xx.o -obj-$(CONFIG_DRIVER_NET_ETHOC) += ethoc.o obj-$(CONFIG_DRIVER_NET_FEC_IMX) += fec_imx.o obj-$(CONFIG_DRIVER_NET_FSL_FMAN) += fsl-fman.o obj-$(CONFIG_DRIVER_NET_GIANFAR) += gianfar.o
drivers/net/ethoc.c deleted +0 -580
318 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 7 lines
2.29.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Part of the diff is not shown here. View the raw message.