Fix a missing include for the lwmon5 dspic init POST.
PATCH 1/1 Fix a missing include for the lwmon5 dspic init POST.
From: Sascha Laue <[email protected]>
--- board/lwmon5/lwmon5.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
board/lwmon5/lwmon5.c +5 -2
@@ -24,6 +24,7 @@#include <asm/processor.h> #include <asm/gpio.h> #include <asm/io.h> +#include <post.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -103,15 +104,17 @@ int board_early_init_f(void)out_be32 ((void *)CFG_DSPIC_TEST_ADDR ,in_be32 ((void *)CFG_DSPIC_TEST_ADDR ) & ~CFG_DSPIC_TEST_MASK ); -while (!gpio_read_in_bit (CFG_GPIO_DSPIC_READY ) && reg++ <1000 ) { +while (gpio_read_in_bit (CFG_GPIO_DSPIC_READY ) && reg++ <1000 ) {udelay (1000 ); } -gpio_write_bit (CFG_GPIO_HIGHSIDE ,0 );if (gpio_read_in_bit (CFG_GPIO_DSPIC_READY )) {/* set "boot error" flag */ out_be32 ((void *)CFG_DSPIC_TEST_ADDR ,in_be32 ((void *)CFG_DSPIC_TEST_ADDR ) |CFG_DSPIC_TEST_MASK ); + }else { +/* dspic ready - disable LSB transmitter */ +gpio_write_bit (CFG_GPIO_HIGHSIDE ,0 ); }#endif
Signature · 1 line
1.5.2.4
PATCH 1/1 Fix a missing include for the lwmon5 dspic init POST.
In message <[email protected]> you wrote:
...
board/lwmon5/lwmon5.c int board_early_init_f(void) · line 117
Quoted 13 lines
board/lwmon5/lwmon5.c +4
-2-while (!gpio_read_in_bit (CFG_GPIO_DSPIC_READY ) && reg++ <1000 ) { +while (gpio_read_in_bit (CFG_GPIO_DSPIC_READY ) && reg++ <1000 ) {udelay (1000 ); } -gpio_write_bit (CFG_GPIO_HIGHSIDE ,0 );if (gpio_read_in_bit (CFG_GPIO_DSPIC_READY )) {/* set "boot error" flag */ out_be32 ((void *)CFG_DSPIC_TEST_ADDR ,in_be32 ((void *)CFG_DSPIC_TEST_ADDR ) |CFG_DSPIC_TEST_MASK ); + }else { +/* dspic ready - disable LSB transmitter */ +gpio_write_bit (CFG_GPIO_HIGHSIDE ,0 );
Description and patch don't match. Please fix.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de : ... and it's got weird formatting - Notepad, Write, Works 3 can't : decipher it, and it's too big to go in DOS Edit. Help! Install an operating system. :-) -- Tom Christiansen
PATCH 1/1 Fix a missing include for the lwmon5 dspic init POST.
Quoted 18 lines · Wolfgang Denk
In message <[email protected]> you
wrote: ...board/lwmon5/lwmon5.c int board_early_init_f(void) · line 117
Quoted 13 lines
board/lwmon5/lwmon5.c +4
-2-while (!gpio_read_in_bit (CFG_GPIO_DSPIC_READY ) && reg++ <1000 ) { +while (gpio_read_in_bit (CFG_GPIO_DSPIC_READY ) && reg++ <1000 ) {udelay (1000 ); } -gpio_write_bit (CFG_GPIO_HIGHSIDE ,0 );if (gpio_read_in_bit (CFG_GPIO_DSPIC_READY )) {/* set "boot error" flag */ out_be32 ((void *)CFG_DSPIC_TEST_ADDR ,in_be32 ((void *)CFG_DSPIC_TEST_ADDR ) |CFG_DSPIC_TEST_MASK ); + }else { +/* dspic ready - disable LSB transmitter */ +gpio_write_bit (CFG_GPIO_HIGHSIDE ,0 );Description and patch don't match. Please fix.
Sascha, any updates here?
Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================