[U-Boot] replacing do_reset with a custom one

Mike Frysinger vapier at gentoo.org
Mon Oct 26 21:50:14 CET 2009


On Monday 26 October 2009 14:44:28 Richard Retanubun wrote:
> Mike Frysinger wrote:
> > #ifdef's are the past.  weaks are in!
> >
> > the Blackfin port already does:
> > void board_reset(void) __attribute__((__weak__));
> > ...
> >     if (board_reset)
> >         board_reset();
> > ...
> >
> > the bf537-stamp uses this to make sure some pins are driven low to
> > workaround weak pull ups in the hardware
> 
> Thanks for the tip Mike! I've submitted patches for MPC83xx and MCF5271
>  architectures. They lack cpu.h file though, so I made one, let's see what
>  the maintainers says.

it would probably make sense to move the prototype to the common files where 
do_reset() is defined ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091026/326c9c34/attachment.pgp 


More information about the U-Boot mailing list