]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
at91: Add arch_preboot_os which disables PIT in a faster way
authorAlexander Stein <alexander.stein@systec-electronic.com>
Mon, 13 Sep 2010 06:26:39 +0000 (08:26 +0200)
committerReinhard Meyer <u-boot@emk-elektronik.de>
Tue, 5 Oct 2010 14:58:57 +0000 (16:58 +0200)
commitc8f6d84d10d324e0b0462e09629f210b046e1018
tree7bc6edf5e06a0cdc0049eb29f1b104ad8df35532
parent125637c57265de980bd0d8e7d35f4b9c3d5264e1
at91: Add arch_preboot_os which disables PIT in a faster way

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 <alexander.stein@systec-electronic.com>
arch/arm/cpu/arm926ejs/at91/cpu.c