3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-01-31 07:12:18 +00:00
Brooklyn/include/soc/bcm2835/raspberrypi-clocks.h
Raziel K. Crowe 9c4c3c24a5 redo
2022-09-09 14:10:02 +05:00

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__ */