rt-thread/bsp/loongson/ls1bdev/libraries/ls1b_clock.h

56 lines
661 B
C
Raw Permalink Normal View History

/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-09-06 <EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD> first version
*/
#ifndef __LOONGSON_CLOCK_H
#define __LOONGSON_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