oxnas: add support for 2nd S-ATA port to sata_oxnas driver
authorJohn Crispin <john@openwrt.org>
Wed, 10 Dec 2014 15:51:07 +0000 (15:51 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 10 Dec 2014 15:51:07 +0000 (15:51 +0000)
commit9432cbd577561f047ff13da7519a0ba3a93a252e
treeb8e2e7ed5430f9616b04e71f75d001b321afcf76
parent1fa7c8587dda724dcd19294dc8932d790ec5acb3
oxnas: add support for 2nd S-ATA port to sata_oxnas driver

similar to mv_sata, use nr-ports attribute from device tree.
import and adapt locking code from vendor GPL sources.
add dma controller handling, it may be used in future to avoid
full core resets similar to the vendor SDK's "progressive cleanup"
function.

this is still very dirty and aimed to first of all do things
quite exactly like the reference code. and it somehow works.
obviously there is lots of room for improvement :)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 43598
target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
target/linux/oxnas/files/arch/arm/boot/dts/ox820.dtsi
target/linux/oxnas/files/drivers/ata/sata_oxnas.c
target/linux/oxnas/patches-3.14/999-libata-hacks.patch [new file with mode: 0644]
target/linux/oxnas/patches-3.18/999-libata-hacks.patch [new file with mode: 0644]