[U-Boot] [PATCH 1/4] cmd_mem.c: add a memory wait (mwait) command

Tom Rini trini at konsulko.com
Mon Jan 4 16:50:55 CET 2016


On Tue, Nov 10, 2015 at 01:13:17PM +0100, jacquiot.aurelien at gmail.com wrote:

> From: Aurelien Jacquiot <a-jacquiot at ti.com>
> 
> This new memory command allows to wait a given value in memory.
> It can be useful when U-Boot is used in a slave mode (another device
> is pushing images to the local memory) such as RapidIO or any
> RDMA kind of transport. We can then be notified that images have been
> loaded to our memory before booting.
> 
> Usage is: mwait[.b, .w, .l, .q] address value

First, we need to add a new CONFIG_CMD_MWAIT (and Kconfig entry) for
this.  Second:

> +		WATCHDOG_RESET();
> +		udelay(1000);

Lets use 100 here not 1000, after looking at how long we wait during
'sleep' which is this an equivalent of.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160104/3d2a9cd3/attachment.sig>


More information about the U-Boot mailing list