blob: 5abda764a221b6eca86503b527f33383524fc6b6 [file] [log] [blame]
Wenyou Yang8c772bd2016-07-20 17:55:12 +08001/*
2 * Copyright (C) 2016 Atmel Corporation
3 * Wenyou.Yang <wenyou.yang@atmel.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef __AT91_PMC_H__
9#define __AT91_PMC_H__
10
Wenyou Yang6b66b922017-09-05 18:30:07 +080011#include <regmap.h>
12
Wenyou Yang8c772bd2016-07-20 17:55:12 +080013struct pmc_platdata {
14 struct at91_pmc *reg_base;
Wenyou Yang6b66b922017-09-05 18:30:07 +080015 struct regmap *regmap_sfr;
Wenyou Yang8c772bd2016-07-20 17:55:12 +080016};
17
18int at91_pmc_core_probe(struct udevice *dev);
Wenyou Yang9a71d392016-09-27 11:00:29 +080019int at91_clk_sub_device_bind(struct udevice *dev, const char *drv_name);
20
Simon Glassb7ae2772017-05-18 20:09:40 -060021int at91_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args);
Wenyou Yang9a71d392016-09-27 11:00:29 +080022int at91_clk_probe(struct udevice *dev);
Wenyou Yang8c772bd2016-07-20 17:55:12 +080023
24#endif