projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bootm: Require boot function only if it is about to be used
[oweals/u-boot.git]
/
common
/
cmd_sata.c
diff --git
a/common/cmd_sata.c
b/common/cmd_sata.c
index 8d57285d053d27489080f4e7c4e74f659d92f26a..5a57a379443b42829f8d83295bc1a321f33263b1 100644
(file)
--- a/
common/cmd_sata.c
+++ b/
common/cmd_sata.c
@@
-44,6
+44,7
@@
int __sata_initialize(void)
sata_dev_desc[i].type = DEV_TYPE_HARDDISK;
sata_dev_desc[i].lba = 0;
sata_dev_desc[i].blksz = 512;
sata_dev_desc[i].type = DEV_TYPE_HARDDISK;
sata_dev_desc[i].lba = 0;
sata_dev_desc[i].blksz = 512;
+ sata_dev_desc[i].log2blksz = LOG2(sata_dev_desc[i].blksz);
sata_dev_desc[i].block_read = sata_read;
sata_dev_desc[i].block_write = sata_write;
sata_dev_desc[i].block_read = sata_read;
sata_dev_desc[i].block_write = sata_write;