diff options
author | Praneeth Bajjuri | 2016-12-21 17:07:16 -0600 |
---|---|---|
committer | Praneeth Bajjuri | 2016-12-21 17:07:16 -0600 |
commit | 2ca14f39e5fc027036c21b51d748e3149659b624 (patch) | |
tree | 719626518628522e85a69d26ebfd9a0505b7b038 | |
parent | 6270f1033ea854fb7eee56518e130112a6f394fe (diff) | |
parent | aa5a3ec38c4151ad6528d786d70c26aa5eeddd33 (diff) | |
download | u-boot-2ca14f39e5fc027036c21b51d748e3149659b624.tar.gz u-boot-2ca14f39e5fc027036c21b51d748e3149659b624.tar.xz u-boot-2ca14f39e5fc027036c21b51d748e3149659b624.zip |
Merge branch 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot into p-ti-u-boot-2016.05
* 'ti-u-boot-2016.05' of git://git.ti.com/ti-u-boot/ti-u-boot:
drivers: mmc: omap_hsmmc: update phase delay value per latest TRM
drivers: block: Fixed capacity message
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r-- | disk/part.c | 4 | ||||
-rw-r--r-- | drivers/mmc/omap_hsmmc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/disk/part.c b/disk/part.c index 543cab8103..d93a643067 100644 --- a/disk/part.c +++ b/disk/part.c | |||
@@ -241,13 +241,13 @@ void dev_print (struct blk_desc *dev_desc) | |||
241 | printf (" Supports 48-bit addressing\n"); | 241 | printf (" Supports 48-bit addressing\n"); |
242 | #endif | 242 | #endif |
243 | #if defined(CONFIG_SYS_64BIT_LBA) | 243 | #if defined(CONFIG_SYS_64BIT_LBA) |
244 | printf (" Capacity: %ld.%ld MB = %ld.%ld GB (%Ld x %ld)\n", | 244 | printf (" Capacity: %lu.%lu MB = %lu.%lu GB (%llu x %lu)\n", |
245 | mb_quot, mb_rem, | 245 | mb_quot, mb_rem, |
246 | gb_quot, gb_rem, | 246 | gb_quot, gb_rem, |
247 | lba, | 247 | lba, |
248 | dev_desc->blksz); | 248 | dev_desc->blksz); |
249 | #else | 249 | #else |
250 | printf (" Capacity: %ld.%ld MB = %ld.%ld GB (%ld x %ld)\n", | 250 | printf (" Capacity: %lu.%lu MB = %lu.%lu GB (%lu x %lu)\n", |
251 | mb_quot, mb_rem, | 251 | mb_quot, mb_rem, |
252 | gb_quot, gb_rem, | 252 | gb_quot, gb_rem, |
253 | (ulong)lba, | 253 | (ulong)lba, |
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index e3c64bb05b..2849519a58 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c | |||
@@ -633,7 +633,7 @@ static int omap_hsmmc_execute_tuning(struct mmc *mmc, uint opcode) | |||
633 | goto tuning_error; | 633 | goto tuning_error; |
634 | } | 634 | } |
635 | 635 | ||
636 | phase_delay = max_window + 4 * (max_len >> 1); | 636 | phase_delay = max_window + 4 * ((3 * max_len) >> 2); |
637 | omap_hsmmc_set_dll(mmc, phase_delay); | 637 | omap_hsmmc_set_dll(mmc, phase_delay); |
638 | 638 | ||
639 | mmc_reset_controller_fsm(mmc_base, SYSCTL_SRD); | 639 | mmc_reset_controller_fsm(mmc_base, SYSCTL_SRD); |