@ -99,7 +99,7 @@ int ppa_init(void)
cnt = DIV_ROUND_UP ( fdt_header_len , 512 ) ;
cnt = DIV_ROUND_UP ( fdt_header_len , 512 ) ;
debug ( " %s: MMC read PPA FIT header: dev # %u, block # %u, count %u \n " ,
debug ( " %s: MMC read PPA FIT header: dev # %u, block # %u, count %u \n " ,
__func__ , dev , blk , cnt ) ;
__func__ , dev , blk , cnt ) ;
ret = mmc - > block_dev . block_read ( & mmc - > block_dev , blk , cnt , fitp ) ;
ret = blk_dread ( mmc_get_blk_desc ( mmc ) , blk , cnt , fitp ) ;
if ( ret ! = cnt ) {
if ( ret ! = cnt ) {
free ( fitp ) ;
free ( fitp ) ;
printf ( " MMC/SD read of PPA FIT header at offset 0x%x failed \n " ,
printf ( " MMC/SD read of PPA FIT header at offset 0x%x failed \n " ,
@ -123,7 +123,7 @@ int ppa_init(void)
blk = CONFIG_SYS_LS_PPA_ESBC_ADDR > > 9 ;
blk = CONFIG_SYS_LS_PPA_ESBC_ADDR > > 9 ;
cnt = DIV_ROUND_UP ( CONFIG_LS_PPA_ESBC_HDR_SIZE , 512 ) ;
cnt = DIV_ROUND_UP ( CONFIG_LS_PPA_ESBC_HDR_SIZE , 512 ) ;
ret = mmc - > block_dev . block_read ( & mmc - > block_dev , blk , cnt , ppa_hdr_ddr ) ;
ret = blk_dread ( mmc_get_blk_desc ( mmc ) , blk , cnt , ppa_hdr_ddr ) ;
if ( ret ! = cnt ) {
if ( ret ! = cnt ) {
free ( ppa_hdr_ddr ) ;
free ( ppa_hdr_ddr ) ;
printf ( " MMC/SD read of PPA header failed \n " ) ;
printf ( " MMC/SD read of PPA header failed \n " ) ;
@ -149,8 +149,7 @@ int ppa_init(void)
cnt = DIV_ROUND_UP ( fw_length , 512 ) ;
cnt = DIV_ROUND_UP ( fw_length , 512 ) ;
debug ( " %s: MMC read PPA FIT image: dev # %u, block # %u, count %u \n " ,
debug ( " %s: MMC read PPA FIT image: dev # %u, block # %u, count %u \n " ,
__func__ , dev , blk , cnt ) ;
__func__ , dev , blk , cnt ) ;
ret = mmc - > block_dev . block_read ( & mmc - > block_dev ,
ret = blk_dread ( mmc_get_blk_desc ( mmc ) , blk , cnt , ppa_fit_addr ) ;
blk , cnt , ppa_fit_addr ) ;
if ( ret ! = cnt ) {
if ( ret ! = cnt ) {
free ( ppa_fit_addr ) ;
free ( ppa_fit_addr ) ;
printf ( " MMC/SD read of PPA FIT header at offset 0x%x failed \n " ,
printf ( " MMC/SD read of PPA FIT header at offset 0x%x failed \n " ,