X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fblock%2Fpata_bfin.c;h=c2673bd05dc6873eb9fa891eaeceb97460d83986;hb=372d7decfe972966c49b337f3d2888e09004dbe4;hp=2b4437efd326bdaf36fc340b3f266285fe449d2d;hpb=974d8014016a97ce7c8690aa0e9e77e161ce746d;p=oweals%2Fu-boot.git diff --git a/drivers/block/pata_bfin.c b/drivers/block/pata_bfin.c index 2b4437efd3..c2673bd05d 100644 --- a/drivers/block/pata_bfin.c +++ b/drivers/block/pata_bfin.c @@ -12,11 +12,13 @@ #include #include #include +#include #include #include #include #include #include +#include #include #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", @@ -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