2018-12-24 18:49:00 +08:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
2017-07-18 11:15:10 +08:00
|
|
|
|
*
|
2018-12-24 18:49:00 +08:00
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-07-18 11:15:10 +08:00
|
|
|
|
*
|
2018-12-24 18:49:00 +08:00
|
|
|
|
* Change Logs:
|
|
|
|
|
* Date Author Notes
|
|
|
|
|
* 2017-09-06 <EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD> first version
|
|
|
|
|
*/
|
2017-07-18 11:15:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __OPENLOONGSON_CLOCK_H
|
|
|
|
|
#define __OPENLOONGSON_CLOCK_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ȡPLLƵ<EFBFBD><EFBFBD>
|
|
|
|
|
* @ret PLLƵ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
unsigned long clk_get_pll_rate(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ȡCPUƵ<EFBFBD><EFBFBD>
|
|
|
|
|
* @ret CPUƵ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
unsigned long clk_get_cpu_rate(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ȡDDRƵ<EFBFBD><EFBFBD>
|
|
|
|
|
* @ret DDRƵ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
unsigned long clk_get_ddr_rate(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ȡAPBƵ<EFBFBD><EFBFBD>
|
|
|
|
|
* @ret APBƵ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
unsigned long clk_get_apb_rate(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>ȡDCƵ<EFBFBD><EFBFBD>
|
|
|
|
|
* @ret DCƵ<EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
unsigned long clk_get_dc_rate(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|