From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Retanubun Date: Mon, 26 Oct 2009 14:44:28 -0400 Subject: [U-Boot] replacing do_reset with a custom one In-Reply-To: <200910240219.26063.vapier@gentoo.org> References: <4AE22376.5050107@RuggedCom.com> <200910240219.26063.vapier@gentoo.org> Message-ID: <4AE5EE0C.2060501@RuggedCom.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > -mike 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. Thanks again, - Richard