]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/block/pata_bfin.c
dm: part: Rename some partition functions
[people/ms/u-boot.git] / drivers / block / pata_bfin.c
index 2b4437efd326bdaf36fc340b3f266285fe449d2d..26569d70aaeff4dc4a87b435380bbac5b1b95db5 100644 (file)
 #include <command.h>
 #include <config.h>
 #include <asm/byteorder.h>
+#include <asm/clock.h>
 #include <asm/io.h>
 #include <asm/errno.h>
 #include <asm/portmux.h>
 #include <asm/mach-common/bits/pata.h>
 #include <ata.h>
+#include <sata.h>
 #include <libata.h>
 #include "pata_bfin.h"
 
@@ -896,6 +898,8 @@ static void bfin_ata_identify(struct ata_port *ap, int dev)
        /* assuming HD */
        sata_dev_desc[ap->port_no].type = DEV_TYPE_HARDDISK;
        sata_dev_desc[ap->port_no].blksz = ATA_SECT_SIZE;
+       sata_dev_desc[ap->port_no].log2blksz =
+               LOG2(sata_dev_desc[ap->port_no].blksz);
        sata_dev_desc[ap->port_no].lun = 0;     /* just to fill something in... */
 
        printf("PATA device#%d %s is found on ata port#%d.\n",
@@ -961,7 +965,7 @@ int scan_sata(int dev)
                /* Probe device and set xfer mode */
                bfin_ata_identify(ap, dev%PATA_DEV_NUM_PER_PORT);
                bfin_ata_set_Feature_cmd(ap, dev%PATA_DEV_NUM_PER_PORT);
-               init_part(&sata_dev_desc[dev]);
+               part_init(&sata_dev_desc[dev]);
                return 0;
        }
 
@@ -1005,6 +1009,11 @@ int init_sata(int dev)
        return res;
 }
 
+int reset_sata(int dev)
+{
+       return 0;
+}
+
 /* Read up to 255 sectors
  *
  * Returns sectors read