oxnas: add support for 2nd S-ATA port to sata_oxnas driver
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 10 Dec 2014 15:51:07 +0000 (15:51 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 10 Dec 2014 15:51:07 +0000 (15:51 +0000)
commit874a0c9ffabd1627bc5148367ccdeb59cb52648e
treef6931f2a6b54524ce5025451f044f2640c874497
parenteaab8ba3e877b6434ac0f8a897bdb22e236bf4e4
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43598 3c298f89-4303-0410-b956-a3cf2f4a3e73
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]