From: Reinhard Meyer Date: Thu, 23 Sep 2010 10:52:59 +0200 Subject: [U-Boot] [PATCH v3] at91: Add arch_preboot_os which disables PIT in a faster way In-Reply-To: <1284359199-14110-1-git-send-email-alexander.stein@systec-electronic.com> References: <4C8A2763.1000909@emk-elektronik.de> <1284359199-14110-1-git-send-email-alexander.stein@systec-electronic.com> Message-ID: <4C9B156B.9050408@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alexander Stein, > When disabled the PIT runs until it reaches the CPIV value. > The Linux PIT driver stops the PIT and waits until it stopped. This can > take over 100ms. Simply stopping in u-boot isn't sufficient as the PIT > will still be running when Linux is waiting until it stopped. > So, we stop it in u-boot by setting the compare value to a value slightly > greater than the current running counter to make the PIT stopped in short > time. > > Signed-off-by: Alexander Stein > --- > > Changes in v3: > * Really fix comment Applied to u-boot-atmel/at91. Thanks, Reinhard