summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-tegra2
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@chromium.org>2011-07-02 17:27:28 +0800
committerSimon Glass <sjg@chromium.org>2011-08-29 10:58:44 -0700
commit12f3d7fc17ee799dee85e37669de6a53abb10f88 (patch)
treed79da41a42e724d144d176006ee5476f6f04ebab /arch/arm/include/asm/arch-tegra2
parentd056165754bda579dd93cf12628e2a2afcc68709 (diff)
tegra2: logging whether it is a cold boot or not
The second stage firmware has to know the system is booted up after a first stage u-boot. BUG=chromium-os:17056 TEST=manual 1. Do cold boot 2. Then do a warm boot (run "go 0xe08000") 3. Meanwhile you should observe that _IS_TEGRA2_COLD_BOOT switches from 0 to 1 (run "md.b" to dump memory content) Change-Id: I70b155cb2be9566416dbe7ace255cae928f6fc93 Reviewed-on: http://gerrit.chromium.org/gerrit/3602 Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'arch/arm/include/asm/arch-tegra2')
-rw-r--r--arch/arm/include/asm/arch-tegra2/clock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra2/clock.h b/arch/arm/include/asm/arch-tegra2/clock.h
index 6c0587d4633..0050f88578d 100644
--- a/arch/arm/include/asm/arch-tegra2/clock.h
+++ b/arch/arm/include/asm/arch-tegra2/clock.h
@@ -348,6 +348,9 @@ unsigned clock_adjust_periph_pll_div(enum periph_id periph_id,
*/
unsigned clock_get_rate(enum clock_id clkid);
+/* Return 1=cold boot; 0=not cold boot */
+int check_is_tegra2_cold_boot(void);
+
/* Initialize the clocks */
void clock_init(void);