xref: /openbmc/u-boot/drivers/clk/at91/pmc.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
29e5935c0SWenyou Yang /*
39e5935c0SWenyou Yang  * Copyright (C) 2016 Atmel Corporation
49e5935c0SWenyou Yang  *               Wenyou.Yang <wenyou.yang@atmel.com>
59e5935c0SWenyou Yang  */
69e5935c0SWenyou Yang 
79e5935c0SWenyou Yang #ifndef __AT91_PMC_H__
89e5935c0SWenyou Yang #define __AT91_PMC_H__
99e5935c0SWenyou Yang 
10e7c83154SWenyou Yang #include <regmap.h>
11e7c83154SWenyou Yang 
129e5935c0SWenyou Yang struct pmc_platdata {
139e5935c0SWenyou Yang 	struct at91_pmc *reg_base;
14e7c83154SWenyou Yang 	struct regmap *regmap_sfr;
159e5935c0SWenyou Yang };
169e5935c0SWenyou Yang 
179e5935c0SWenyou Yang int at91_pmc_core_probe(struct udevice *dev);
186cadaa04SWenyou Yang int at91_clk_sub_device_bind(struct udevice *dev, const char *drv_name);
196cadaa04SWenyou Yang 
20a4e0ef50SSimon Glass int at91_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args);
216cadaa04SWenyou Yang int at91_clk_probe(struct udevice *dev);
229e5935c0SWenyou Yang 
239e5935c0SWenyou Yang #endif
24