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