mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
dcc34574ef
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>
23 lines
387 B
Bash
Executable File
23 lines
387 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
|
|
get_irq() {
|
|
local name="$1"
|
|
grep -m 1 "$name" /proc/interrupts | cut -d: -f1 | sed 's, *,,'
|
|
}
|
|
|
|
set_irq_affinity() {
|
|
local name="$1"
|
|
local val="$2"
|
|
local irq="$(get_irq "$name")"
|
|
[ -n "$irq" ] || return
|
|
echo "$val" > "/proc/irq/$irq/smp_affinity"
|
|
}
|
|
|
|
start() {
|
|
set_irq_affinity ehci_hcd 2
|
|
set_irq_affinity xhci_hcd 2
|
|
set_irq_affinity sata 2
|
|
}
|