diff options
Diffstat (limited to 'include/clock.h')
-rw-r--r-- | include/clock.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/include/clock.h b/include/clock.h index c4008672ef..081c9c95a9 100644 --- a/include/clock.h +++ b/include/clock.h @@ -1,14 +1,23 @@ -/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Clocks and power management settings */ -#ifndef __CLOCK_H -#define __CLOCK_H +#ifndef __CROS_EC_CLOCK_H +#define __CROS_EC_CLOCK_H -/* set the CPU clocks and PLLs */ +#include "common.h" + +/* Set the CPU clocks and PLLs. */ int clock_init(void); -#endif /* __CLOCK_H */ +/* Returns the current clock frequency in Hz. */ +int clock_get_freq(void); + +/* Wait <cycles> system clock cycles. Simple busy waiting for before + * clocks/timers are initialized. */ +void clock_wait_cycles(uint32_t cycles); + +#endif /* __CROS_EC_CLOCK_H */ |