blob: 810543afb4e107ffab6bcd643c6bcc0290000162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Copyright (c) 2014 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.
*/
/* NPCX-specific clock module for Chrome EC */
#ifndef __CROS_EC_CLOCK_CHIP_H
#define __CROS_EC_CLOCK_CHIP_H
/* Default is 40MHz (target is 16MHz) */
#define OSC_CLK 16000000
/**
* Return the current APB1 clock frequency in Hz.
*/
int clock_get_apb1_freq(void);
/**
* Return the current APB2 clock frequency in Hz.
*/
int clock_get_apb2_freq(void);
#endif /* __CROS_EC_CLOCK_CHIP_H */
|