oxnas: add support for 2nd S-ATA port to sata_oxnas driver
authorJohn Crispin <blogic@openwrt.org>
Wed, 10 Dec 2014 15:51:07 +0000 (15:51 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 10 Dec 2014 15:51:07 +0000 (15:51 +0000)
commitb689b5cb8ac3e67e663a3a4b0cf17ba8f334d052
treef6931f2a6b54524ce5025451f044f2640c874497
parentbbbf88ec21e1aad12b0b1372314bf61ed1536301
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]