X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fpost.h;h=a07a6bc5e252a1815ad8cb9aa797231406d16c67;hb=49c8ef0e45a91ec894ef15e7d043dafe8f1c5efd;hp=d5278111e8501a89b2b09d0e46fae9dc9d817b5d;hpb=7e09145ea2e985511c660bdf567b61614acd75b3;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/post.h b/include/post.h index d527811..a07a6bc 100644 --- a/include/post.h +++ b/include/post.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2002 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -5,8 +6,6 @@ * (C) Copyright 2010 * Michael Zaidman, Kodak, michael.zaidman@kodak.com * post_word_{load|store} cleanup. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _POST_H #define _POST_H @@ -15,14 +14,14 @@ #include #include -#if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER) +#if defined(CONFIG_POST) #ifndef CONFIG_POST_EXTERNAL_WORD_FUNCS #ifdef CONFIG_SYS_POST_WORD_ADDR #define _POST_WORD_ADDR CONFIG_SYS_POST_WORD_ADDR #else -#if defined(CONFIG_MPC8360) +#if defined(CONFIG_ARCH_MPC8360) #include #define _POST_WORD_ADDR (CONFIG_SYS_IMMR + CPM_POST_WORD_ADDR) @@ -30,11 +29,6 @@ #include #define _POST_WORD_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PIC_OFFSET + \ offsetof(ccsr_pic_t, tfrr)) - -#elif defined (CONFIG_MPC86xx) -#include -#define _POST_WORD_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_PIC_OFFSET + \ - offsetof(ccsr_pic_t, tfrr)) #endif #ifndef _POST_WORD_ADDR @@ -58,7 +52,7 @@ extern ulong post_word_load(void); extern void post_word_store(ulong value); #endif /* CONFIG_POST_EXTERNAL_WORD_FUNCS */ -#endif /* defined (CONFIG_POST) || defined(CONFIG_LOGBUFFER) */ +#endif /* defined (CONFIG_POST) */ #endif /* __ASSEMBLY__ */ #ifdef CONFIG_POST @@ -108,7 +102,6 @@ int post_init_f (void); void post_bootmode_init (void); int post_bootmode_get (unsigned int * last_test); void post_bootmode_clear (void); -void post_output_backlog ( void ); int post_run (char *name, int flags); int post_info (char *name); int post_log (char *format, ...); @@ -117,6 +110,16 @@ void post_reloc (void); #endif unsigned long post_time_ms (unsigned long base); +/** + * post_output_backlog() - Print POST results + * + * Print POST results during the generic board init sequence, after + * relocation. + * + * Return: 0 if OK + */ +int post_output_backlog(void); + extern struct post_test post_list[]; extern unsigned int post_list_size; extern int post_hotkeys_pressed(void);