freebsd-nq/sys/arm
Luiz Otavio O Souza 7ec8c789c3 Add AHCI attachment code for Allwinner A10/A20 SoCs.
The Allwinner SoC has an AHCI device on its internal main bus rather
than the PCI bus.  This SoC is somewhat underdocumented, and its SATA
controller is no exception.  The methods to support this chip were
harvested from the Linux Allwinner SDK, and then constants invented to
describe what's going on based on low-level constants contained in the
SATA standard and guess work.

This SoC requires a specific AHCI channel setup in order to start the
operations on the channel properly.

Clock setup and AHCI channel setup idea came from NetBSD.

Tested on Cubieboard 2 and Banana pi (and attachment on Cubieboard by
Pratik Singhal).

Differential Revision:	https://reviews.freebsd.org/D737
Submitted by:	imp
Reviewed by:	imp, ganbold, mav, andrew
2015-07-03 14:11:01 +00:00
..
allwinner Add AHCI attachment code for Allwinner A10/A20 SoCs. 2015-07-03 14:11:01 +00:00
altera/socfpga Use the new gic option on all configs that need it. 2015-05-10 12:13:27 +00:00
amlogic/aml8726 CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
annapurna/alpine More tr -d '\r' t make config happy and 2015-05-16 20:04:49 +00:00
arm pc_curpmap is only in the armv6 pcpu data. 2015-06-26 09:02:40 +00:00
at91 Need to handle the !FDT case still too... I thought in r270025 we 2015-05-22 05:02:53 +00:00
broadcom/bcm2835 Add a missing wakeup when releasing ownership of the SPI hardware. 2015-06-02 16:07:28 +00:00
cavium/cns11xx Build the cpufunc_asm_* files based on the cpu type, not which config file 2015-03-29 22:43:39 +00:00
conf Add AHCI attachment code for Allwinner A10/A20 SoCs. 2015-07-03 14:11:01 +00:00
freescale Include a header required for vtophys(). 2015-06-06 14:26:40 +00:00
include Stop using VFP in pcpu.h when we mean ARMv6 and later. 2015-06-11 13:58:40 +00:00
lpc Build the cpufunc_asm_* files based on the cpu type, not which config file 2015-03-29 22:43:39 +00:00
mv Include vm/pmap.h for pmap_kextract. 2015-04-04 23:03:11 +00:00
qemu Enable SMP on the qemu virt platform. We use the device tree to find which 2015-05-24 12:33:12 +00:00
rockchip Use the new gic option on all configs that need it. 2015-05-10 12:13:27 +00:00
samsung Use the new gic option on all configs that need it. 2015-05-10 12:13:27 +00:00
ti Add missing driver for TDA19988 HDMI framer 2015-06-18 16:51:49 +00:00
versatile Include vm/pmap.h for pmap_kextract. 2015-04-04 23:03:11 +00:00
xilinx Use the new gic option on all configs that need it. 2015-05-10 12:13:27 +00:00
xscale Build the cpufunc_asm_* files based on the cpu type, not which config file 2015-03-29 22:43:39 +00:00