From: Tom Rini Date: Mon, 4 Jan 2016 10:50:55 -0500 Subject: [U-Boot] [PATCH 1/4] cmd_mem.c: add a memory wait (mwait) command In-Reply-To: <1447157597-3645-1-git-send-email-jacquiot.aurelien@gmail.com> References: <1447157597-3645-1-git-send-email-jacquiot.aurelien@gmail.com> Message-ID: <20160104155055.GH4093@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Nov 10, 2015 at 01:13:17PM +0100, jacquiot.aurelien at gmail.com wrote: > From: Aurelien Jacquiot > > 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: