oxnas: reboot target
authorDaniel Golle <daniel@makrotopia.org>
Thu, 31 May 2018 15:28:38 +0000 (17:28 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 18 Jun 2018 16:44:14 +0000 (18:44 +0200)
commit6f398aa76248dfdbd1ea31b8ef32431be0f762ee
treee9c8f6380fdabb0a5e00b6bdd335c9397e93b6ad
parentd6ee5e462c34a337a1b53994df5581a507e2c342
oxnas: reboot 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 are 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>
(squash-picked commit 17511a7ea8 and commit dcc34574ef from master)
81 files changed:
package/boot/uboot-oxnas/src/include/configs/ox820.h
target/linux/oxnas/Makefile
target/linux/oxnas/config-4.14 [new file with mode: 0644]
target/linux/oxnas/config-4.4 [deleted file]
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-akitio.dts [deleted file]
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-kd20.dts [deleted file]
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-pogoplug-pro.dts [deleted file]
target/linux/oxnas/files/arch/arm/boot/dts/ox820-pogoplug-v3.dts [deleted file]
target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts [new file with mode: 0644]
target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts [deleted file]
target/linux/oxnas/files/arch/arm/boot/dts/ox820.dtsi [deleted file]
target/linux/oxnas/files/arch/arm/configs/ox820_defconfig [deleted file]
target/linux/oxnas/files/arch/arm/include/debug/uncompress-ox820.h [new file with mode: 0644]
target/linux/oxnas/files/arch/arm/mach-oxnas/Kconfig [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/Makefile [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/Makefile.boot [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/fiq.S [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/headsmp.S [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/include/mach/hardware.h [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/include/mach/iomap.h [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/include/mach/irqs.h [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/include/mach/smp.h [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/include/mach/timex.h [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/include/mach/uncompress.h [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/include/mach/utils.h [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/mach-ox820.c [deleted file]
target/linux/oxnas/files/arch/arm/mach-oxnas/platsmp.c [deleted file]
target/linux/oxnas/files/drivers/ata/sata_oxnas.c
target/linux/oxnas/files/drivers/clk/clk-oxnas.c [deleted file]
target/linux/oxnas/files/drivers/clocksource/oxnas_rps_timer.c [deleted file]
target/linux/oxnas/files/drivers/irqchip/irq-rps.c [deleted file]
target/linux/oxnas/files/drivers/mtd/nand/oxnas_nand.c [deleted file]
target/linux/oxnas/files/drivers/net/ethernet/stmicro/stmmac/dwmac-oxnas.c [deleted file]
target/linux/oxnas/files/drivers/pci/host/pcie-oxnas.c
target/linux/oxnas/files/drivers/pinctrl/pinctrl-oxnas.c [deleted file]
target/linux/oxnas/files/drivers/reset/reset-ox820.c [deleted file]
target/linux/oxnas/files/drivers/usb/host/ehci-oxnas.c
target/linux/oxnas/image/Makefile
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
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]
target/linux/oxnas/patches-4.4/0072-mtd-backport-v4.7-0day-patches-from-Boris.patch [deleted file]
target/linux/oxnas/patches-4.4/0073-of-mtd-prepare-helper-reading-NAND-ECC-algo-from-DT.patch [deleted file]
target/linux/oxnas/patches-4.4/0074-mtd-nand-import-nand_hw_control_init.patch [deleted file]
target/linux/oxnas/patches-4.4/010-arm_introduce-dma-fiq-irq-broadcast.patch [deleted file]
target/linux/oxnas/patches-4.4/250-add-plxtech-vendor-prefix.patch [deleted file]
target/linux/oxnas/patches-4.4/300-introduce-oxnas-platform.patch [deleted file]
target/linux/oxnas/patches-4.4/310-oxnas-clocksource.patch [deleted file]
target/linux/oxnas/patches-4.4/320-oxnas-irqchip.patch [deleted file]
target/linux/oxnas/patches-4.4/330-oxnas-pinctrl.patch [deleted file]
target/linux/oxnas/patches-4.4/340-oxnas-pcie.patch [deleted file]
target/linux/oxnas/patches-4.4/350-oxnas-reset.patch [deleted file]
target/linux/oxnas/patches-4.4/400-oxnas-nand.patch [deleted file]
target/linux/oxnas/patches-4.4/500-oxnas-sata.patch [deleted file]
target/linux/oxnas/patches-4.4/700-oxnas-dwmac.patch [deleted file]
target/linux/oxnas/patches-4.4/800-oxnas-ehci.patch [deleted file]
target/linux/oxnas/patches-4.4/900-more-boards.patch [deleted file]
target/linux/oxnas/patches-4.4/996-ATAG_DTB_COMPAT_CMDLINE_MANGLE.patch [deleted file]
target/linux/oxnas/patches-4.4/999-libata-hacks.patch [deleted file]
target/linux/oxnas/profiles/00-default.mk [deleted file]