Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

openrisc: add simple_smp dts and defconfig for simulators

Simple enough to be compatible with simulation environments,
such as verilated systems, QEMU and other targets supporting OpenRISC
SMP. This also supports our base FPGA SoC's if the cpu frequency is
upped to 50Mhz.

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
[shorne@gmail.com: Added defconfig]
Signed-off-by: Stafford Horne <shorne@gmail.com>

authored by

Stefan Kristiansson and committed by
Stafford Horne
306e5e50 4ee93d80

+129
+63
arch/openrisc/boot/dts/simple_smp.dts
··· 1 + /dts-v1/; 2 + / { 3 + compatible = "opencores,or1ksim"; 4 + #address-cells = <1>; 5 + #size-cells = <1>; 6 + interrupt-parent = <&pic>; 7 + 8 + aliases { 9 + uart0 = &serial0; 10 + }; 11 + 12 + chosen { 13 + bootargs = "earlycon"; 14 + stdout-path = "uart0:115200"; 15 + }; 16 + 17 + memory@0 { 18 + device_type = "memory"; 19 + reg = <0x00000000 0x02000000>; 20 + }; 21 + 22 + cpus { 23 + #address-cells = <1>; 24 + #size-cells = <0>; 25 + cpu@0 { 26 + compatible = "opencores,or1200-rtlsvn481"; 27 + reg = <0>; 28 + clock-frequency = <20000000>; 29 + }; 30 + cpu@1 { 31 + compatible = "opencores,or1200-rtlsvn481"; 32 + reg = <1>; 33 + clock-frequency = <20000000>; 34 + }; 35 + }; 36 + 37 + ompic: ompic@98000000 { 38 + compatible = "openrisc,ompic"; 39 + reg = <0x98000000 16>; 40 + interrupt-controller; 41 + #interrupt-cells = <0>; 42 + interrupts = <1>; 43 + }; 44 + 45 + /* 46 + * OR1K PIC is built into CPU and accessed via special purpose 47 + * registers. It is not addressable and, hence, has no 'reg' 48 + * property. 49 + */ 50 + pic: pic { 51 + compatible = "opencores,or1k-pic-level"; 52 + #interrupt-cells = <1>; 53 + interrupt-controller; 54 + }; 55 + 56 + serial0: serial@90000000 { 57 + compatible = "opencores,uart16550-rtlsvn105", "ns16550a"; 58 + reg = <0x90000000 0x100>; 59 + interrupts = <2>; 60 + clock-frequency = <20000000>; 61 + }; 62 + 63 + };
+66
arch/openrisc/configs/simple_smp_defconfig
··· 1 + CONFIG_CROSS_COMPILE="or1k-linux-" 2 + CONFIG_LOCALVERSION="-simple-smp" 3 + CONFIG_NO_HZ=y 4 + CONFIG_LOG_BUF_SHIFT=14 5 + CONFIG_BLK_DEV_INITRD=y 6 + # CONFIG_RD_GZIP is not set 7 + # CONFIG_RD_BZIP2 is not set 8 + # CONFIG_RD_LZMA is not set 9 + # CONFIG_RD_XZ is not set 10 + # CONFIG_RD_LZO is not set 11 + # CONFIG_RD_LZ4 is not set 12 + CONFIG_EXPERT=y 13 + # CONFIG_KALLSYMS is not set 14 + # CONFIG_EPOLL is not set 15 + # CONFIG_TIMERFD is not set 16 + # CONFIG_EVENTFD is not set 17 + # CONFIG_AIO is not set 18 + # CONFIG_VM_EVENT_COUNTERS is not set 19 + # CONFIG_COMPAT_BRK is not set 20 + CONFIG_SLOB=y 21 + CONFIG_MODULES=y 22 + # CONFIG_BLOCK is not set 23 + CONFIG_OPENRISC_BUILTIN_DTB="simple_smp" 24 + CONFIG_SMP=y 25 + CONFIG_HZ_100=y 26 + CONFIG_OPENRISC_HAVE_SHADOW_GPRS=y 27 + CONFIG_NET=y 28 + CONFIG_PACKET=y 29 + CONFIG_UNIX=y 30 + CONFIG_INET=y 31 + # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 32 + # CONFIG_INET_XFRM_MODE_TUNNEL is not set 33 + # CONFIG_INET_XFRM_MODE_BEET is not set 34 + # CONFIG_INET_DIAG is not set 35 + CONFIG_TCP_CONG_ADVANCED=y 36 + # CONFIG_TCP_CONG_BIC is not set 37 + # CONFIG_TCP_CONG_CUBIC is not set 38 + # CONFIG_TCP_CONG_WESTWOOD is not set 39 + # CONFIG_TCP_CONG_HTCP is not set 40 + # CONFIG_IPV6 is not set 41 + # CONFIG_WIRELESS is not set 42 + CONFIG_DEVTMPFS=y 43 + CONFIG_DEVTMPFS_MOUNT=y 44 + # CONFIG_PREVENT_FIRMWARE_BUILD is not set 45 + # CONFIG_FW_LOADER is not set 46 + CONFIG_NETDEVICES=y 47 + CONFIG_ETHOC=y 48 + CONFIG_MICREL_PHY=y 49 + # CONFIG_WLAN is not set 50 + # CONFIG_INPUT is not set 51 + # CONFIG_SERIO is not set 52 + # CONFIG_VT is not set 53 + # CONFIG_LEGACY_PTYS is not set 54 + CONFIG_SERIAL_8250=y 55 + CONFIG_SERIAL_8250_CONSOLE=y 56 + CONFIG_SERIAL_OF_PLATFORM=y 57 + # CONFIG_HW_RANDOM is not set 58 + # CONFIG_HWMON is not set 59 + # CONFIG_USB_SUPPORT is not set 60 + # CONFIG_DNOTIFY is not set 61 + CONFIG_TMPFS=y 62 + CONFIG_NFS_FS=y 63 + CONFIG_XZ_DEC=y 64 + # CONFIG_ENABLE_WARN_DEPRECATED is not set 65 + # CONFIG_ENABLE_MUST_CHECK is not set 66 + # CONFIG_RCU_TRACE is not set