blob: 517ba1d6b452e10306d7e10b0f50e22320d4e951 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Wenyou Yang8c772bd2016-07-20 17:55:12 +08002/*
3 * Copyright (C) 2016 Atmel Corporation
4 * Wenyou.Yang <wenyou.yang@atmel.com>
Wenyou Yang8c772bd2016-07-20 17:55:12 +08005 */
6
7#ifndef __AT91_PMC_H__
8#define __AT91_PMC_H__
9
Wenyou Yang6b66b922017-09-05 18:30:07 +080010#include <regmap.h>
11
Wenyou Yang8c772bd2016-07-20 17:55:12 +080012struct pmc_platdata {
13 struct at91_pmc *reg_base;
Wenyou Yang6b66b922017-09-05 18:30:07 +080014 struct regmap *regmap_sfr;
Wenyou Yang8c772bd2016-07-20 17:55:12 +080015};
16
17int at91_pmc_core_probe(struct udevice *dev);
Wenyou Yang9a71d392016-09-27 11:00:29 +080018int at91_clk_sub_device_bind(struct udevice *dev, const char *drv_name);
19
Simon Glassb7ae2772017-05-18 20:09:40 -060020int at91_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args);
Wenyou Yang9a71d392016-09-27 11:00:29 +080021int at91_clk_probe(struct udevice *dev);
Wenyou Yang8c772bd2016-07-20 17:55:12 +080022
23#endif