J-core J2 cpu and SoC peripherals support
Rich Felker
maintainercover J-core J2 cpu and SoC peripherals support
The following patchset adds support for the J-core J2, an open-source VHDL reimplementation of the SH-2 ISA, and drivers for the associated SoC devices (interrupt controller, clocksource, and SPI).
This version is posted for review, discussion, and testing. Before merge it needs at least official assignment (and documentation) of device tree bindings. Feedback on other improvements that could be made is welcome too, especially if there are places where the motivation is not clear and better commit messages or comments could clarify.
Rich Felker (7):
sh: add support for J-Core J2 processor
sh: add AT_HWCAP flag for J-Core cas.l instruction
irqchip: add J-Core AIC driver
clocksource: add J-Core PIT/RTC driver
spi: add driver for J-Core SPI controller
sh: add defconfig for J-Core J2
sh: add device tree source for J2 FPGA on Mimas v2 board
arch/sh/Kconfig | 8 + arch/sh/Makefile | 1 + arch/sh/boot/dts/j2_mimas_v2.dts | 98 ++++++++++++ arch/sh/configs/j2_defconfig | 38 +++++ arch/sh/include/asm/processor.h | 2 +- arch/sh/include/uapi/asm/cpu-features.h | 1 + arch/sh/kernel/cpu/init.c | 40 ++++- arch/sh/kernel/cpu/proc.c | 1 + arch/sh/kernel/cpu/sh2/entry.S | 5 + arch/sh/kernel/cpu/sh2/probe.c | 13 ++ arch/sh/mm/Makefile | 3 +- arch/sh/mm/cache-j2.c | 58 +++++++ arch/sh/mm/cache.c | 6 +- drivers/clocksource/Kconfig | 4 + drivers/clocksource/Makefile | 2 + drivers/clocksource/jcore-pit.c | 176 +++++++++++++++++++++ drivers/irqchip/Kconfig | 6 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-jcore-aic.c | 95 ++++++++++++ drivers/spi/Kconfig | 4 + drivers/spi/Makefile | 1 + drivers/spi/spi-jcore.c | 266 ++++++++++++++++++++++++++++++++ 22 files changed, 825 insertions(+), 4 deletions(-) create mode 100755 arch/sh/boot/dts/j2_mimas_v2.dts create mode 100644 arch/sh/configs/j2_defconfig create mode 100644 arch/sh/mm/cache-j2.c create mode 100644 drivers/clocksource/jcore-pit.c create mode 100644 drivers/irqchip/irq-jcore-aic.c create mode 100644 drivers/spi/spi-jcore.c
Signature · 1 line
2.8.1
Hi Rich,
Quoted 3 lines · Rich Felker
The following patchset adds support for the J-core J2, an open-source VHDL reimplementation of the SH-2 ISA, and drivers for the associated SoC devices (interrupt controller, clocksource, and SPI).
Thanks for your series!
Quoted 6 lines
This version is posted for review, discussion, and testing. Before merge it needs at least official assignment (and documentation) of device tree bindings. Feedback on other improvements that could be made is welcome too, especially if there are places where the motivation is not clear and better commit messages or comments could clarify.
For clocksource, irqchip, and spi drivers, other mailing lists should be CCed.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds