x86: ivybridge: Add SATA init

Add code to set up the SATA interfaces on boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2014-11-14 18:18:38 -07:00
parent 05efc3961c
commit 3ac839352d
8 changed files with 334 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
Intel Pantherpoint SATA Device Binding
======================================
The device tree node which describes the operation of the Intel Pantherpoint
SATA device is as follows:
Required properties :
- compatible = "intel,pantherpoint-ahci"
- intel,sata-mode : string, one of:
"ahci" : Use AHCI mode (default)
"combined" : Use combined IDE + legacy mode
"plain-ide" : Use plain IDE mode
- intel,sata-port-map : Which SATA ports are enabled, bit 0=enable first port,
bit 1=enable second port, etc.
- intel,sata-port0-gen3-tx : Value for the IOBP_SP0G3IR register
- intel,sata-port1-gen3-tx : Value for the IOBP_SP1G3IR register
Example
-------
sata {
compatible = "intel,pantherpoint-ahci";
intel,sata-mode = "ahci";
intel,sata-port-map = <1>;
intel,sata-port0-gen3-tx = <0x00880a7f>;
};