X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_blackfin%2Fpost.c;h=faf6b96ba2745dd31c2755ed0842293edb943ea6;hb=20dde48bcadd856c86a91d5463831a10be46db83;hp=3c4d5c51ddac0ec49164ca34e3c836b00faac11b;hpb=b90296fc39a33f84bb2b0aa79bf997be495ba791;p=u-boot diff --git a/lib_blackfin/post.c b/lib_blackfin/post.c index 3c4d5c51dd..faf6b96ba2 100644 --- a/lib_blackfin/post.c +++ b/lib_blackfin/post.c @@ -22,7 +22,7 @@ */ #include -#include +#include #include #include @@ -30,8 +30,6 @@ #include #endif -#ifdef CONFIG_POST - DECLARE_GLOBAL_DATA_PTR; #define POST_MAX_NUMBER 32 @@ -345,7 +343,7 @@ int post_log(char *format, ...) { va_list args; uint i; - char printbuffer[CFG_PBSIZE]; + char printbuffer[CONFIG_SYS_PBSIZE]; va_start(args, format); @@ -419,7 +417,5 @@ void post_reloc(void) */ unsigned long post_time_ms(unsigned long base) { - return (unsigned long)get_ticks() / (get_tbclk() / CFG_HZ) - base; + return (unsigned long)get_ticks() / (get_tbclk() / CONFIG_SYS_HZ) - base; } - -#endif /* CONFIG_POST */