3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-01-30 23:02:18 +00:00
Brooklyn/include/soc/bcm2835/raspberrypi-clocks.h

22 lines
517 B
C
Raw Normal View History

2022-09-09 09:10:02 +00:00
/* 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__ */