oxnas: bring in new oxnas target
authorDaniel Golle <daniel@makrotopia.org>
Thu, 31 May 2018 17:41:28 +0000 (19:41 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 1 Jun 2018 13:45:06 +0000 (15:45 +0200)
commitdcc34574efba524cf75608c3b61bfa579bfb8aa4
tree7ed7970952f1e9a705ae8819c3983844efd79d86
parentd44b7b7d312b1d4b920042cac35b86e4f089cd04
oxnas: bring in new oxnas target

Reboot the oxnas target based on Linux 4.14 by rebasing our support on
top of the now-existing upstream kernel support.
This commit brings oxnas support to the level of v4.17 having upstream
drivers for Ethernet, Serial and NAND flash.
Botch up OpenWrt's local drivers for EHCI, SATA and PCIe based on the
new platform code and device-tree.
Re-introduce base-files from old oxnas target which works for now but
needs further clean-up towards generic board support.

Functional issues:
 * PCIe won't come up (hence no USB3 on Shuttle KD20)
 * I2C bus of Akitio myCloud device is likely not to work (missing
   debounce support in new pinctrl driver)

Code-style issues:
 * plla/pllb needs further cleanup -- currently their users or writing
   into the syscon regmap after acquireling the clk instead of using
   defined clk_*_*() functions to setup multipliers and dividors.
 * PCIe phy needs its own little driver.
 * SATA driver is a monster and should be split into an mfd having
   a raidctrl regmap, sata controller, sata ports and sata phy.

Tested on MitraStar STG-212 aka. Medion Akoya MD86xxx and Shuttle KD20.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
39 files changed:
package/boot/uboot-oxnas/src/include/configs/ox820.h
target/linux/oxnas/Makefile [new file with mode: 0644]
target/linux/oxnas/base-files/etc/board.d/01_leds [new file with mode: 0755]
target/linux/oxnas/base-files/etc/board.d/02_network [new file with mode: 0755]
target/linux/oxnas/base-files/etc/diag.sh [new file with mode: 0644]
target/linux/oxnas/base-files/init.d/set-irq-affinity [new file with mode: 0755]
target/linux/oxnas/base-files/lib/oxnas.sh [new file with mode: 0755]
target/linux/oxnas/base-files/lib/preinit/01_preinit_do_oxnas.sh [new file with mode: 0644]
target/linux/oxnas/base-files/lib/upgrade/platform.sh [new file with mode: 0644]
target/linux/oxnas/config-4.14 [new file with mode: 0644]
target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts [new file with mode: 0644]
target/linux/oxnas/files/arch/arm/boot/dts/ox820-cloudengines-pogoplug-pro.dts [new file with mode: 0644]
target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg212.dts [new file with mode: 0644]
target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts [new file with mode: 0644]
target/linux/oxnas/files/arch/arm/include/debug/uncompress-ox820.h [new file with mode: 0644]
target/linux/oxnas/files/drivers/ata/sata_oxnas.c [new file with mode: 0644]
target/linux/oxnas/files/drivers/pci/host/pcie-oxnas.c [new file with mode: 0644]
target/linux/oxnas/files/drivers/usb/host/ehci-oxnas.c [new file with mode: 0644]
target/linux/oxnas/image/Makefile [new file with mode: 0644]
target/linux/oxnas/image/ox810se.mk [new file with mode: 0644]
target/linux/oxnas/image/ox820.mk [new file with mode: 0644]
target/linux/oxnas/modules.mk [new file with mode: 0644]
target/linux/oxnas/ox810se/config-default [new file with mode: 0644]
target/linux/oxnas/ox810se/profiles/00-default.mk [new file with mode: 0644]
target/linux/oxnas/ox810se/target.mk [new file with mode: 0644]
target/linux/oxnas/ox820/config-default [new file with mode: 0644]
target/linux/oxnas/ox820/profiles/00-default.mk [new file with mode: 0644]
target/linux/oxnas/ox820/target.mk [new file with mode: 0644]
target/linux/oxnas/patches-4.14/0001-ARM-dts-rename-oxnas-dts-files.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/0002-MAINTAINERS-update-ARM-OXNAS-platform-support-patter.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/0003-ARM-configs-add-OXNAS-v6-defconfig.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/050-ox820-remove-left-overs.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/100-oxnas-clk-plla-pllb.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/340-oxnas-pcie.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/500-oxnas-sata.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/510-ox820-libata-leds.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/800-oxnas-ehci.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/996-generic-Mangle-bootloader-s-kernel-arguments.patch [new file with mode: 0644]
target/linux/oxnas/patches-4.14/999-libata-hacks.patch [new file with mode: 0644]