Skip to contentSkip to conversation

openrisc: add support for LiteX

PATCH New Stafford Horne 1 participant 1 message Nov 11, 2020

Subsystems (3)
lore
Share & tools
lore

Stafford Horne

author maintainer
#0 lore raw

PATCH 1/1 openrisc: add support for LiteX

From: Filip Kokosinski <[email protected]>

This adds support for a basic LiteX-based SoC with a mor1kx soft CPU.

[shorne: Merged in soc-cntl patch, removed CROSS_COMPILE, sort MAINT.]
---
 MAINTAINERS                               |  1 +
 arch/openrisc/boot/dts/or1klitex.dts      | 55 +++++++++++++++++++++++
 arch/openrisc/configs/or1klitex_defconfig | 18 ++++++++
 3 files changed, 74 insertions(+)
 create mode 100644 arch/openrisc/boot/dts/or1klitex.dts
 create mode 100644 arch/openrisc/configs/or1klitex_defconfig
MAINTAINERS +1 -0
index 0b1f39b3938d..9c55a54c9673 100644
@@ -10177,6 +10177,7 @@ M:	Karol Gugala <[email protected]>
 M:	Mateusz Holenko <[email protected]>
 S:	Maintained
 F:	Documentation/devicetree/bindings/*/litex,*.yaml
+F:	arch/openrisc/boot/dts/or1klitex.dts
 F:	drivers/soc/litex/litex_soc_ctrl.c
 F:	drivers/tty/serial/liteuart.c
 F:	include/linux/litex.h
arch/openrisc/boot/dts/or1klitex.dts new file +55 -0

55 lines not on this page · raw message

arch/openrisc/configs/or1klitex_defconfig new file +18 -0
new file mode 100644
index 000000000000..3c2c70d3d740
@@ -0,0 +1,18 @@
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
+CONFIG_BUG_ON_DATA_CORRUPTION=y
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_EMBEDDED=y
+CONFIG_HZ_100=y
+CONFIG_INITRAMFS_SOURCE="openrisc-rootfs.cpio.gz"
+CONFIG_OF_OVERLAY=y
+CONFIG_OPENRISC_BUILTIN_DTB="or1klitex"
+CONFIG_PANIC_ON_OOPS=y
+CONFIG_PRINTK_TIME=y
+CONFIG_LITEX_SOC_CONTROLLER=y
+CONFIG_SERIAL_LITEUART=y
+CONFIG_SERIAL_LITEUART_CONSOLE=y
+CONFIG_SOFTLOCKUP_DETECTOR=y
+CONFIG_TTY_PRINTK=y
Signature · 1 line
2.26.2