From: Holger Brunck Date: Thu, 24 Nov 2011 03:09:10 +0000 (+0000) Subject: post: fix compile issue for post tests on kirkwood X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=2f88566aaa85c9b217baa749e6fa6538a1b1d2b2;p=u-boot.git post: fix compile issue for post tests on kirkwood commit f31a911fe (arm, post: add missing post_time_ms for arm) enables get_ticks and get_tbclk for all arm based boards, but kirkwood has currently no implementation for this. So undefine this for kirkwood boards. Signed-off-by: Holger Brunck cc: Heiko Schocher cc: Prafulla Wadaskar cc: Valentin Longchamp --- diff --git a/post/post.c b/post/post.c index 45e08f8ccc..d62f10aa53 100644 --- a/post/post.c +++ b/post/post.c @@ -495,7 +495,7 @@ void post_reloc(void) */ unsigned long post_time_ms(unsigned long base) { -#if defined(CONFIG_PPC) || defined(CONFIG_ARM) +#if defined(CONFIG_PPC) || defined(CONFIG_ARM) && !defined(CONFIG_KIRKWOOD) return (unsigned long)lldiv(get_ticks(), get_tbclk() / CONFIG_SYS_HZ) - base; #else