post: fix compile issue for post tests on kirkwood
authorHolger Brunck <[email protected]>
Thu, 24 Nov 2011 03:09:10 +0000 (03:09 +0000)
committerAlbert ARIBAUD <[email protected]>
Sun, 11 Dec 2011 12:44:23 +0000 (13:44 +0100)
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 <[email protected]>
cc: Heiko Schocher <[email protected]>
cc: Prafulla Wadaskar <[email protected]>
cc: Valentin Longchamp <[email protected]>

post/post.c

index 45e08f8ccc76c2b2c57e1786007d26abb5f4dcdb..d62f10aa539eb0f3ce49b207aa0059f076892fc3 100644 (file)
@@ -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