projects/linux·commit ff0c4ad2

Merge branch 'for-upstream' of git://openrisc.net/jonas/linux

ff0c4ad2 · Linus Torvalds <[email protected]> · 2011-07-24 09:55:18 -07:00

* 'for-upstream' of git://openrisc.net/jonas/linux: (24 commits)
  OpenRISC: Add MAINTAINERS entry
  OpenRISC: Miscellaneous
  OpenRISC: Library routines
  OpenRISC: Headers
  OpenRISC: Traps
  OpenRISC: Module support
  OpenRISC: GPIO
  OpenRISC: Scheduling/Process management
  OpenRISC: Idle/Power management
  OpenRISC: System calls
  OpenRISC: IRQ
  OpenRISC: Timekeeping
  OpenRISC: DMA
  OpenRISC: PTrace
  OpenRISC: Build infrastructure
  OpenRISC: Signal handling
  OpenRISC: Memory management
  OpenRISC: Device tree
  OpenRISC: Boot code
  iomap: make IOPORT/PCI mapping functions conditional
  ...
Commit
ff0c4ad2c3a75ccfe6adca916e50804eb45bb2d9
Parents
fcda12e7 · 19f9d392

Merge commit. Changes below are compared with the first parent: fcda12e7.

Changes

90 files changed · +10970 −104

FileStatusAddDelContent
MAINTAINERSmodified+8−0View file
arch/avr32/include/asm/delay.hmodified+1−26View file
arch/m32r/include/asm/delay.hmodified+1−26View file
arch/openrisc/Kconfigadded+207−0View file
arch/openrisc/Makefileadded+55−0View file
arch/openrisc/README.openriscadded+99−0View file
arch/openrisc/TODO.openriscadded+16−0View file
arch/openrisc/boot/Makefileadded+15−0View file
arch/openrisc/boot/dts/or1ksim.dtsadded+50−0View file
arch/openrisc/configs/or1ksim_defconfigadded+65−0View file
arch/openrisc/include/asm/Kbuildadded+64−0View file
arch/openrisc/include/asm/asm-offsets.hadded+1−0View file
arch/openrisc/include/asm/bitops.hadded+59−0View file
arch/openrisc/include/asm/bitops/__ffs.hadded+33−0View file
arch/openrisc/include/asm/bitops/__fls.hadded+33−0View file
arch/openrisc/include/asm/bitops/ffs.hadded+32−0View file
arch/openrisc/include/asm/bitops/fls.hadded+33−0View file
arch/openrisc/include/asm/byteorder.hadded+1−0View file
arch/openrisc/include/asm/cache.hadded+29−0View file
arch/openrisc/include/asm/cpuinfo.hadded+34−0View file
arch/openrisc/include/asm/delay.hadded+24−0View file
arch/openrisc/include/asm/dma-mapping.hadded+134−0View file
arch/openrisc/include/asm/elf.hadded+108−0View file
arch/openrisc/include/asm/fixmap.hadded+87−0View file
arch/openrisc/include/asm/gpio.hadded+65−0View file
arch/openrisc/include/asm/io.hadded+51−0View file
arch/openrisc/include/asm/irq.hadded+27−0View file
arch/openrisc/include/asm/irqflags.hadded+29−0View file
arch/openrisc/include/asm/linkage.hadded+25−0View file
arch/openrisc/include/asm/memblock.hadded+24−0View file
arch/openrisc/include/asm/mmu.hadded+26−0View file
arch/openrisc/include/asm/mmu_context.hadded+43−0View file
arch/openrisc/include/asm/mutex.hadded+27−0View file
arch/openrisc/include/asm/page.hadded+110−0View file
arch/openrisc/include/asm/param.hadded+26−0View file
arch/openrisc/include/asm/pgalloc.hadded+102−0View file
arch/openrisc/include/asm/pgtable.hadded+463−0View file
arch/openrisc/include/asm/processor.hadded+113−0View file
arch/openrisc/include/asm/prom.hadded+77−0View file
arch/openrisc/include/asm/ptrace.hadded+131−0View file
arch/openrisc/include/asm/serial.hadded+36−0View file
arch/openrisc/include/asm/sigcontext.hadded+38−0View file
arch/openrisc/include/asm/spinlock.hadded+24−0View file
arch/openrisc/include/asm/spr.hadded+42−0View file
arch/openrisc/include/asm/spr_defs.hadded+604−0View file
arch/openrisc/include/asm/syscall.hadded+77−0View file
arch/openrisc/include/asm/syscalls.hadded+27−0View file
arch/openrisc/include/asm/system.hadded+35−0View file
arch/openrisc/include/asm/thread_info.hadded+134−0View file
arch/openrisc/include/asm/timex.hadded+36−0View file
arch/openrisc/include/asm/tlb.hadded+34−0View file
arch/openrisc/include/asm/tlbflush.hadded+55−0View file
arch/openrisc/include/asm/uaccess.hadded+355−0View file
arch/openrisc/include/asm/unaligned.hadded+51−0View file
arch/openrisc/include/asm/unistd.hadded+31−0View file
arch/openrisc/kernel/Makefileadded+14−0View file
arch/openrisc/kernel/asm-offsets.cadded+70−0View file
arch/openrisc/kernel/dma.cadded+191−0View file
arch/openrisc/kernel/entry.Sadded+1128−0View file
arch/openrisc/kernel/head.Sadded+1607−0View file
arch/openrisc/kernel/idle.cadded+77−0View file
arch/openrisc/kernel/init_task.cadded+41−0View file
arch/openrisc/kernel/irq.cadded+172−0View file
arch/openrisc/kernel/module.cadded+72−0View file
arch/openrisc/kernel/or32_ksyms.cadded+46−0View file
arch/openrisc/kernel/process.cadded+311−0View file
arch/openrisc/kernel/prom.cadded+108−0View file
arch/openrisc/kernel/ptrace.cadded+211−0View file
arch/openrisc/kernel/setup.cadded+381−0View file
arch/openrisc/kernel/signal.cadded+396−0View file
arch/openrisc/kernel/sys_call_table.cadded+28−0View file
arch/openrisc/kernel/sys_or32.cadded+57−0View file
arch/openrisc/kernel/time.cadded+181−0View file
arch/openrisc/kernel/traps.cadded+366−0View file
arch/openrisc/kernel/vmlinux.hadded+12−0View file
arch/openrisc/kernel/vmlinux.lds.Sadded+115−0View file
arch/openrisc/lib/Makefileadded+5−0View file
arch/openrisc/lib/delay.cadded+60−0View file
arch/openrisc/lib/string.Sadded+204−0View file
arch/openrisc/mm/Makefileadded+5−0View file
arch/openrisc/mm/fault.cadded+338−0View file
arch/openrisc/mm/init.cadded+283−0View file
arch/openrisc/mm/ioremap.cadded+137−0View file
arch/openrisc/mm/tlb.cadded+193−0View file
arch/sh/include/asm/delay.hmodified+1−26View file
arch/x86/include/asm/delay.hmodified+1−24View file
include/asm-generic/delay.hmodified+36−1View file
include/asm-generic/io.hmodified+8−1View file
include/asm-generic/iomap.hmodified+4−0View file
lib/iomap.cmodified+4−0View file

Only the first 600 diff lines are shown. Download the complete patch.

MAINTAINERS

View file
diff --git a/MAINTAINERS b/MAINTAINERS
index 63524a0..43392c9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -4688,6 +4688,14 @@ F: drivers/of
F: include/linux/of*.h
K: of_get_property
+OPENRISC ARCHITECTURE
+M: Jonas Bonn <[email protected]>
+W: http://openrisc.net
+S: Maintained
+T: git git://openrisc.net/~jonas/linux
+F: arch/openrisc
+
OPL4 DRIVER
M: Clemens Ladisch <[email protected]>
L: [email protected] (moderated for non-subscribers)

arch/avr32/include/asm/delay.h

View file
diff --git a/arch/avr32/include/asm/delay.h b/arch/avr32/include/asm/delay.h
index a0ed9a9..9670e12 100644
--- a/arch/avr32/include/asm/delay.h
+++ b/arch/avr32/include/asm/delay.h
@@ -1,26 +1 @@
-#ifndef __ASM_AVR32_DELAY_H
-#define __ASM_AVR32_DELAY_H
-
-/*
- * Copyright (C) 1993 Linus Torvalds
- *
- * Delay routines calling functions in arch/avr32/lib/delay.c
- */
-
-extern void __bad_udelay(void);
-extern void __bad_ndelay(void);
-
-extern void __udelay(unsigned long usecs);
-extern void __ndelay(unsigned long nsecs);
-extern void __const_udelay(unsigned long xloops);
-extern void __delay(unsigned long loops);
-
-#define udelay(n) (__builtin_constant_p(n) ? \
- ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c6ul)) : \
- __udelay(n))
-
-#define ndelay(n) (__builtin_constant_p(n) ? \
- ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \
- __ndelay(n))
-
-#endif /* __ASM_AVR32_DELAY_H */
+#include <asm-generic/delay.h>

arch/m32r/include/asm/delay.h

View file
diff --git a/arch/m32r/include/asm/delay.h b/arch/m32r/include/asm/delay.h
index 9dd9e99..9670e12 100644
--- a/arch/m32r/include/asm/delay.h
+++ b/arch/m32r/include/asm/delay.h
@@ -1,26 +1 @@
-#ifndef _ASM_M32R_DELAY_H
-#define _ASM_M32R_DELAY_H
-
-/*
- * Copyright (C) 1993 Linus Torvalds
- *
- * Delay routines calling functions in arch/m32r/lib/delay.c
- */
-
-extern void __bad_udelay(void);
-extern void __bad_ndelay(void);
-
-extern void __udelay(unsigned long usecs);
-extern void __ndelay(unsigned long nsecs);
-extern void __const_udelay(unsigned long xloops);
-extern void __delay(unsigned long loops);
-
-#define udelay(n) (__builtin_constant_p(n) ? \
- ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c7ul)) : \
- __udelay(n))
-
-#define ndelay(n) (__builtin_constant_p(n) ? \
- ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \
- __ndelay(n))
-
-#endif /* _ASM_M32R_DELAY_H */
+#include <asm-generic/delay.h>

arch/openrisc/Kconfig

View file
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
new file mode 100644
index 0000000..4558baf
--- /dev/null
+++ b/arch/openrisc/Kconfig
@@ -0,0 +1,207 @@
+#
+# For a description of the syntax of this configuration file,
+# see Documentation/kbuild/config-language.txt.
+#
+
+config OPENRISC
+ def_bool y
+ select OF
+ select OF_EARLY_FLATTREE
+ select HAVE_MEMBLOCK
+ select ARCH_WANT_OPTIONAL_GPIOLIB
+ select HAVE_ARCH_TRACEHOOK
+ select HAVE_GENERIC_HARDIRQS
+ select GENERIC_IRQ_CHIP
+ select GENERIC_IRQ_PROBE
+ select GENERIC_IRQ_SHOW
+ select GENERIC_IOMAP
+
+config MMU
+ def_bool y
+
+config WISHBONE_BUS_BIG_ENDIAN
+ def_bool y
+
+config SYMBOL_PREFIX
+ string
+ default ""
+
+config HAVE_DMA_ATTRS
+ def_bool y
+
+config UID16
+ def_bool y
+
+config RWSEM_GENERIC_SPINLOCK
+ def_bool y
+
+config RWSEM_XCHGADD_ALGORITHM
+ def_bool n
+
+config GENERIC_HWEIGHT
+ def_bool y
+
+config GENERIC_IOMAP
+ def_bool y
+
+config NO_IOPORT
+ def_bool y
+
+config GENERIC_GPIO
+ def_bool y
+
+config GENERIC_CLOCKEVENTS
+ def_bool y
+
+config TRACE_IRQFLAGS_SUPPORT
+ def_bool y
+
+# For now, use generic checksum functions
+#These can be reimplemented in assembly later if so inclined
+config GENERIC_CSUM
+ def_bool y
+
+config GENERIC_FIND_NEXT_BIT
+ def_bool y
+
+source "init/Kconfig"
+
+
+menu "Processor type and features"
+
+choice
+ prompt "Subarchitecture"
+ default OR1K_1200
+
+config OR1K_1200
+ bool "OR1200"
+ help
+ Generic OpenRISC 1200 architecture
+
+endchoice
+
+config OPENRISC_BUILTIN_DTB
+ string "Builtin DTB"
+ default ""
+
+menu "Class II Instructions"
+
+config OPENRISC_HAVE_INST_FF1
+ bool "Have instruction l.ff1"
+ default y
+ help
+ Select this if your implementation has the Class II instruction l.ff1
+
+config OPENRISC_HAVE_INST_FL1
+ bool "Have instruction l.fl1"
+ default y
+ help
+ Select this if your implementation has the Class II instruction l.fl1
+
+config OPENRISC_HAVE_INST_MUL
+ bool "Have instruction l.mul for hardware multiply"
+ default y
+ help
+ Select this if your implementation has a hardware multiply instruction
+
+config OPENRISC_HAVE_INST_DIV
+ bool "Have instruction l.div for hardware divide"
+ default y
+ help
+ Select this if your implementation has a hardware divide instruction
+endmenu
+
+
+source "kernel/time/Kconfig"
+source kernel/Kconfig.hz
+source kernel/Kconfig.preempt
+source "mm/Kconfig"
+
+config OPENRISC_NO_SPR_SR_DSX
+ bool "use SPR_SR_DSX software emulation" if OR1K_1200
+ default y
+ help
+ SPR_SR_DSX bit is status register bit indicating whether
+ the last exception has happened in delay slot.
+
+ OpenRISC architecture makes it optional to have it implemented
+ in hardware and the OR1200 does not have it.
+
+ Say N here if you know that your OpenRISC processor has
+ SPR_SR_DSX bit implemented. Say Y if you are unsure.
+
+config CMDLINE
+ string "Default kernel command string"
+ default ""
+ help
+ On some architectures there is currently no way for the boot loader
+ to pass arguments to the kernel. For these architectures, you should
+ supply some command-line options at build time by entering them
+ here.
+
+menu "Debugging options"
+
+config DEBUG_STACKOVERFLOW
+ bool "Check for kernel stack overflow"
+ default y
+ help
+ Make extra checks for space avaliable on stack in some
+ critical functions. This will cause kernel to run a bit slower,
+ but will catch most of kernel stack overruns and exit gracefuly.
+
+ Say Y if you are unsure.
+
+config JUMP_UPON_UNHANDLED_EXCEPTION
+ bool "Try to die gracefully"
+ default y
+ help
+ Now this puts kernel into infinite loop after first oops. Till
+ your kernel crashes this doesn't have any influence.
+
+ Say Y if you are unsure.
+
+config OPENRISC_EXCEPTION_DEBUG
+ bool "Print processor state at each exception"
+ default n
+ help
+ This option will make your kernel unusable for all but kernel
+ debugging.
+
+ Say N if you are unsure.
+
+config OPENRISC_ESR_EXCEPTION_BUG_CHECK
+ bool "Check for possible ESR exception bug"
+ default n
+ help
+ This option enables some checks that might expose some problems
+ in kernel.
+
+ Say N if you are unsure.
+
+endmenu
+
+endmenu
+
+menu "Executable file formats"
+
+source "fs/Kconfig.binfmt"
+
+endmenu
+
+source "net/Kconfig"
+
+source "drivers/Kconfig"
+
+source "fs/Kconfig"
+
+source "security/Kconfig"
+
+source "crypto/Kconfig"
+
+source "lib/Kconfig"
+
+menu "Kernel hacking"
+
+source "lib/Kconfig.debug"
+
+endmenu

arch/openrisc/Makefile

View file
diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile
new file mode 100644
index 0000000..158ae4c
--- /dev/null
+++ b/arch/openrisc/Makefile
@@ -0,0 +1,55 @@
+# BK Id: %F% %I% %G% %U% %#%
+#
+# This file is included by the global makefile so that you can add your own
+# architecture-specific flags and dependencies. Remember to do have actions
+# for "archclean" and "archdep" for cleaning up and making dependencies for
+# this architecture
+#
+# 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.
+#
+# Copyright (C) 1994 by Linus Torvalds
+# Modifications for the OpenRISC architecture:
+# Copyright (C) 2003 Matjaz Breskvar <[email protected]>
+# Copyright (C) 2010-2011 Jonas Bonn <[email protected]>
+#
+# Based on:
+# arch/i386/Makefile
+
+KBUILD_DEFCONFIG := or1ksim_defconfig
+
+LDFLAGS :=
+OBJCOPYFLAGS := -O binary -R .note -R .comment -S
+LDFLAGS_vmlinux :=
+LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
+
+KBUILD_CFLAGS += -pipe -ffixed-r10
+
+ifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y)
+ KBUILD_CFLAGS += $(call cc-option,-mhard-mul)
+else
+ KBUILD_CFLAGS += $(call cc-option,-msoft-mul)
+endif
+
+ifeq ($(CONFIG_OPENRISC_HAVE_INST_DIV),y)
+ KBUILD_CFLAGS += $(call cc-option,-mhard-div)
+else
+ KBUILD_CFLAGS += $(call cc-option,-msoft-div)
+endif
+
+head-y := arch/openrisc/kernel/head.o arch/openrisc/kernel/init_task.o
+
+core-y += arch/openrisc/lib/ \
+ arch/openrisc/kernel/ \
+ arch/openrisc/mm/
+libs-y += $(LIBGCC)
+
+ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""'
+BUILTIN_DTB := y
+else
+BUILTIN_DTB := n
+endif
+core-$(BUILTIN_DTB) += arch/openrisc/boot/
+
+all: vmlinux

arch/openrisc/README.openrisc

View file
diff --git a/arch/openrisc/README.openrisc b/arch/openrisc/README.openrisc
new file mode 100644
index 0000000..c9f7edf
--- /dev/null
+++ b/arch/openrisc/README.openrisc
@@ -0,0 +1,99 @@
+OpenRISC Linux
+==============
+
+This is a port of Linux to the OpenRISC class of microprocessors; the initial
+target architecture, specifically, is the 32-bit OpenRISC 1000 family (or1k).
+
+For information about OpenRISC processors and ongoing development:
+
+ website http://openrisc.net
+
+For more information about Linux on OpenRISC, please contact South Pole AB.
+
+
+ website: http://southpole.se
+ http://southpoleconsulting.com
+
+---------------------------------------------------------------------
+
+Build instructions for OpenRISC toolchain and Linux
+===================================================
+
+In order to build and run Linux for OpenRISC, you'll need at least a basic
+toolchain and, perhaps, the architectural simulator. Steps to get these bits
+in place are outlined here.
+
+1) The toolchain can be obtained from openrisc.net. Instructions for building
+a toolchain can be found at:
+
+http://openrisc.net/toolchain-build.html
+
+2) or1ksim (optional)
+
+or1ksim is the architectural simulator which will allow you to actually run
+your OpenRISC Linux kernel if you don't have an OpenRISC processor at hand.
+
+ git clone git://openrisc.net/jonas/or1ksim-svn
+
+ cd or1ksim
+ ./configure --prefix=$OPENRISC_PREFIX
+ make
+ make install
+
+3) Linux kernel
+
+Build the kernel as usual
+
+ make ARCH=openrisc defconfig
+ make ARCH=openrisc
+
+4) Run in architectural simulator
+
+Grab the or1ksim platform configuration file (from the or1ksim source) and
+together with your freshly built vmlinux, run your kernel with the following
+incantation:
+
+ sim -f arch/openrisc/or1ksim.cfg vmlinux
+
+---------------------------------------------------------------------
+
+Terminology
+===========
+
+In the code, the following particles are used on symbols to limit the scope
+to more or less specific processor implementations:
+
+openrisc: the OpenRISC class of processors
+or1k: the OpenRISC 1000 family of processors
+or1200: the OpenRISC 1200 processor
+
+---------------------------------------------------------------------
+
+History
+========
+
+18. 11. 2003 Matjaz Breskvar ([email protected])
+ initial port of linux to OpenRISC/or32 architecture.
+ all the core stuff is implemented and seams usable.
+
+08. 12. 2003 Matjaz Breskvar ([email protected])
+ complete change of TLB miss handling.
+ rewrite of exceptions handling.
+ fully functional sash-3.6 in default initrd.
+ a much improved version with changes all around.
+
+10. 04. 2004 Matjaz Breskvar ([email protected])
+ alot of bugfixes all over.
+ ethernet support, functional http and telnet servers.
+ running many standard linux apps.
+
+26. 06. 2004 Matjaz Breskvar ([email protected])
+ port to 2.6.x
+
+30. 11. 2004 Matjaz Breskvar ([email protected])
+ lots of bugfixes and enhancments.
+ added opencores framebuffer driver.
+
+09. 10. 2010 Jonas Bonn ([email protected])
+ major rewrite to bring up to par with upstream Linux 2.6.36

arch/openrisc/TODO.openrisc

View file
diff --git a/arch/openrisc/TODO.openrisc b/arch/openrisc/TODO.openrisc
new file mode 100644
index 0000000..acfeef9
--- /dev/null
+++ b/arch/openrisc/TODO.openrisc
@@ -0,0 +1,16 @@
+The OpenRISC Linux port is fully functional and has been tracking upstream
+since 2.6.35. There are, however, remaining items to be completed within
+the coming months. Here's a list of known-to-be-less-than-stellar items
+that are due for investigation shortly, i.e. our TODO list:
+
+-- Implement the rest of the DMA API... dma_map_sg, etc.
+
+-- Consolidate usage of memblock and bootmem... move everything over to
+ memblock.
+
+-- Finish the renaming cleanup... there are references to or32 in the code
+ which was an older name for the architecture. The name we've settled on is
+ or1k and this change is slowly trickling through the stack. For the time
+ being, or32 is equivalent to or1k.
+
+-- Implement optimized version of memcpy and memset

arch/openrisc/boot/Makefile

View file
diff --git a/arch/openrisc/boot/Makefile b/arch/openrisc/boot/Makefile
new file mode 100644
index 0000000..98ca185
--- /dev/null
+++ b/arch/openrisc/boot/Makefile
@@ -0,0 +1,15 @@
+
+
+ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""'
+BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_OPENRISC_BUILTIN_DTB)).dtb.o
+else
+BUILTIN_DTB :=
+endif
+obj-y += $(BUILTIN_DTB)
+
+clean-files := *.dtb.S
+
+#DTC_FLAGS ?= -p 1024
+
+$(obj)/%.dtb: $(src)/dts/%.dts
+ $(call cmd,dtc)

arch/openrisc/boot/dts/or1ksim.dts

View file
diff --git a/arch/openrisc/boot/dts/or1ksim.dts b/arch/openrisc/boot/dts/or1ksim.dts
new file mode 100644
index 0000000..5d4f902
--- /dev/null
+++ b/arch/openrisc/boot/dts/or1ksim.dts
@@ -0,0 +1,50 @@
+/dts-v1/;
+/ {
+ compatible = "opencores,or1ksim";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ interrupt-parent = <&pic>;
+
+ chosen {
+ bootargs = "console=uart,mmio,0x90000000,115200";
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x00000000 0x02000000>;
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ cpu@0 {
+ compatible = "opencores,or1200-rtlsvn481";
+ reg = <0>;
+ clock-frequency = <20000000>;
+ };
+ };
+
+ /*
+ * OR1K PIC is built into CPU and accessed via special purpose
+ * registers. It is not addressable and, hence, has no 'reg'
+ * property.
+ */
+ pic: pic {
+ compatible = "opencores,or1k-pic";
+ #interrupt-cells = <1>;
+ interrupt-controller;
+ };
+
+ serial0: serial@90000000 {
+ compatible = "opencores,uart16550-rtlsvn105", "ns16550a";
+ reg = <0x90000000 0x100>;
+ interrupts = <2>;
+ clock-frequency = <20000000>;
+ };
+
+ enet0: ethoc@92000000 {
+ compatible = "opencores,ethmac-rtlsvn338";
+ reg = <0x92000000 0x100>;
+ interrupts = <4>;
+ };
+};

arch/openrisc/configs/or1ksim_defconfig

View file
diff --git a/arch/openrisc/configs/or1ksim_defconfig b/arch/openrisc/configs/or1ksim_defconfig
new file mode 100644
index 0000000..ea172bd
--- /dev/null
+++ b/arch/openrisc/configs/or1ksim_defconfig
@@ -0,0 +1,65 @@
+CONFIG_CROSS_COMPILE="or32-linux-"
+CONFIG_LOG_BUF_SHIFT=14
+CONFIG_BLK_DEV_INITRD=y
+# CONFIG_RD_GZIP is not set
+CONFIG_EXPERT=y
+# CONFIG_SYSCTL_SYSCALL is not set
+# CONFIG_KALLSYMS is not set
+# CONFIG_EPOLL is not set
+# CONFIG_TIMERFD is not set
+# CONFIG_EVENTFD is not set
+# CONFIG_AIO is not set
+# CONFIG_VM_EVENT_COUNTERS is not set
+# CONFIG_COMPAT_BRK is not set
+CONFIG_SLOB=y
+CONFIG_MODULES=y
+# CONFIG_BLOCK is not set
+CONFIG_OPENRISC_BUILTIN_DTB="or1ksim"
+CONFIG_NO_HZ=y
+CONFIG_HZ_100=y
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_INET=y
+# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
+# CONFIG_INET_XFRM_MODE_TUNNEL is not set
+# CONFIG_INET_XFRM_MODE_BEET is not set
+# CONFIG_INET_LRO is not set
+# CONFIG_INET_DIAG is not set
+CONFIG_TCP_CONG_ADVANCED=y
+# CONFIG_TCP_CONG_BIC is not set
+# CONFIG_TCP_CONG_CUBIC is not set
+# CONFIG_TCP_CONG_WESTWOOD is not set
+# CONFIG_TCP_CONG_HTCP is not set

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/asm-offsets.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/bitops.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/bitops/__ffs.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/bitops/__fls.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/bitops/ffs.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/bitops/fls.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/byteorder.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/cache.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/cpuinfo.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/delay.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/dma-mapping.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/elf.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/fixmap.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/gpio.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/io.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/irq.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/irqflags.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/linkage.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/memblock.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/mmu.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/mmu_context.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/mutex.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/page.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/param.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/pgalloc.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/pgtable.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/processor.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/prom.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/ptrace.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/serial.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/sigcontext.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/spinlock.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/spr.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/spr_defs.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/syscall.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/syscalls.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/system.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/thread_info.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/timex.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/tlb.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/tlbflush.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/unaligned.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/unistd.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/asm-offsets.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/dma.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/entry.S

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/head.S

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/idle.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/init_task.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/irq.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/module.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/or32_ksyms.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/process.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/prom.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/ptrace.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/setup.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/signal.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/sys_call_table.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/sys_or32.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/time.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/traps.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/vmlinux.h

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/kernel/vmlinux.lds.S

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/lib/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/lib/delay.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/lib/string.S

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/mm/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/mm/fault.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/mm/init.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/mm/ioremap.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/mm/tlb.c

View file

This diff is incomplete. Download the complete patch.

arch/sh/include/asm/delay.h

View file

This diff is incomplete. Download the complete patch.

arch/x86/include/asm/delay.h

View file

This diff is incomplete. Download the complete patch.

include/asm-generic/delay.h

View file

This diff is incomplete. Download the complete patch.

include/asm-generic/io.h

View file

This diff is incomplete. Download the complete patch.

include/asm-generic/iomap.h

View file

This diff is incomplete. Download the complete patch.

lib/iomap.c

View file

This diff is incomplete. Download the complete patch.