]> Git Repo - u-boot.git/blobdiff - drivers/ata/sata_sil.c
Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"
[u-boot.git] / drivers / ata / sata_sil.c
index b213ebac2fb987bc0d5ac13ac959cf0136f7a820..5b80f6249d767e3e22bb1aec94f399ca57a0c253 100644 (file)
@@ -5,7 +5,6 @@
  * Author: Tang Yuantian <[email protected]>
  */
 
-#include <common.h>
 #include <blk.h>
 #include <cpu_func.h>
 #include <dm.h>
@@ -699,9 +698,11 @@ static int sil_pci_probe(struct udevice *dev)
 
        /* Read out all BARs */
        sata_info.iobase[0] = (ulong)dm_pci_map_bar(dev,
-                       PCI_BASE_ADDRESS_0, PCI_REGION_MEM);
+                       PCI_BASE_ADDRESS_0, 0, 0, PCI_REGION_TYPE,
+                       PCI_REGION_MEM);
        sata_info.iobase[1] = (ulong)dm_pci_map_bar(dev,
-                       PCI_BASE_ADDRESS_2, PCI_REGION_MEM);
+                       PCI_BASE_ADDRESS_2, 0, 0, PCI_REGION_TYPE,
+                       PCI_REGION_MEM);
 
        /* mask out the unused bits */
        sata_info.iobase[0] &= 0xffffff80;
@@ -728,7 +729,8 @@ static int sil_pci_probe(struct udevice *dev)
        for (i = sata_info.portbase; i < sata_info.maxport; i++) {
                snprintf(sata_name, sizeof(sata_name), "sil_sata%d", i);
                ret = blk_create_devicef(dev, "sata_sil_blk", sata_name,
-                                        IF_TYPE_SATA, -1, 512, 0, &blk);
+                                        UCLASS_AHCI, -1, DEFAULT_BLKSZ,
+                                        0, &blk);
                if (ret) {
                        debug("Can't create device\n");
                        return ret;
This page took 0.024367 seconds and 4 git commands to generate.