[U-Boot] [PATCH v3 3/3] mpc5121: pdm360ng: add coprocessor POST
Detlev Zundel
dzu at denx.de
Thu Apr 15 11:18:13 CEST 2010
Hi Wolfgang,
> Dear Anatolij Gustschin,
>
> In message <1271254909-20398-4-git-send-email-agust at denx.de> you wrote:
>> Adds coprocessor communication POST code.
>>
>> Signed-off-by: Anatolij Gustschin <agust at denx.de>
>> ---
>> board/pdm360ng/Makefile | 1 +
>> board/pdm360ng/post.c | 75 ++++++++++++++++++++++++++++++++++++++++++++
>> include/configs/pdm360ng.h | 5 +++
>> include/post.h | 1 +
>> post/tests.c | 13 +++++++
>> 5 files changed, 95 insertions(+), 0 deletions(-)
>> create mode 100644 board/pdm360ng/post.c
> ...
>> --- a/post/tests.c
>> +++ b/post/tests.c
>> @@ -53,6 +53,7 @@ extern int gdc_post_test (int flags);
>> extern int fpga_post_test (int flags);
>> extern int lwmon5_watchdog_post_test(int flags);
>> extern int sysmon1_post_test(int flags);
>> +extern int pdm360ng_coprocessor_post_test(int flags);
>>
>> extern int sysmon_init_f (void);
>>
>> @@ -286,6 +287,18 @@ struct post_test post_list[] =
>> #if CONFIG_POST & CONFIG_SYS_POST_BSPEC5
>> CONFIG_POST_BSPEC5,
>> #endif
>> +#if CONFIG_POST & CONFIG_SYS_POST_COPROC
>> + {
>> + "Coprocessors communication test",
>> + "coproc_com",
>> + "This test checks communication with coprocessors.",
>> + POST_RAM | POST_ALWAYS | POST_CRITICAL,
>> + &pdm360ng_coprocessor_post_test,
>> + NULL,
>> + NULL,
>> + CONFIG_SYS_POST_COPROC
>> + }
>> +#endif
>> };
>
> I don't want to see board specific code (pdm360ng_*) in such a global
> file. Please use a more generic approach.
Do you mean like for example CONFIG_POST_BSPEC1 used for lwmon5?
Anatolij, this should be straight forward.
Cheers
Detlev
--
C hasn't changed much since the 1970s. And let's face it it's ugly.
Can't we do better? C++? (Sorry, never mind.)
-- Rob Pike
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
More information about the U-Boot
mailing list