diff options
author | Jonas <jonas.aberg@stericsson.com> | 2009-11-20 15:23:58 +0100 |
---|---|---|
committer | Michael Brandt <Michael.Brandt@stericsson.com> | 2009-11-30 10:58:05 +0100 |
commit | 2a1c5318956aa7b3ecb94557abe5728abd7c6402 (patch) | |
tree | 4d646a5869a66638a42455726532a1d2ec5e4f0d /board | |
parent | 4f47f2f1c8c46ac87c4e0a5708f950fdb59a2a17 (diff) |
Corrected timer errors and changed MTU0 timer from 0 to 3 due to 0 is used by the linux kernel and we still want to be able to use that timer for boottime measurement. IE leave the 3rd timer run until we're executing init. Added atags for u-boot timing measurements as communication with the kernel.
Diffstat (limited to 'board')
-rwxr-xr-x | board/st/u8500/emmc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/st/u8500/emmc.c b/board/st/u8500/emmc.c index 780ddaebc..214b2b14b 100755 --- a/board/st/u8500/emmc.c +++ b/board/st/u8500/emmc.c @@ -26,6 +26,7 @@ #include "mmc.h" #include "emmc.h" #include "gpio.h" +#include <asm/boottime.h> #define PIB_EMMC_ADDR 0x00 /* ======================================================================== @@ -233,7 +234,9 @@ int emmc_read(u32 block_offset, u32 read_buffer, u32 filesize) remaining = filesize; printf(" eMMC read start filesize=0x%x \n", filesize); - + + boottime_tag_load_kernel(); + blocks = (n%512==0)?(n/512):(n/512)+1; while(blocks>=8) @@ -259,7 +262,8 @@ int emmc_read(u32 block_offset, u32 read_buffer, u32 filesize) return 1; } } - printf(" eMMC read done \n"); + + printf(" eMMC read done \n"); return 0; } |