mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-01-31 07:12:18 +00:00
22 lines
517 B
C
22 lines
517 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __SOC_RASPBERRY_CLOCKS_H__
|
|
#define __SOC_RASPBERRY_CLOCKS_H__
|
|
|
|
#if IS_ENABLED(CONFIG_CLK_RASPBERRYPI)
|
|
unsigned long rpi_firmware_clk_get_max_rate(struct clk *clk);
|
|
unsigned long rpi_firmware_clk_get_min_rate(struct clk *clk);
|
|
#else
|
|
static inline unsigned long rpi_firmware_clk_get_max_rate(struct clk *clk)
|
|
{
|
|
return ULONG_MAX;
|
|
}
|
|
|
|
static inline unsigned long rpi_firmware_clk_get_min_rate(struct clk *clk)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __SOC_RASPBERRY_CLOCKS_H__ */
|