2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-07-20 09:55:12 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Atmel Corporation
|
|
|
|
* Wenyou.Yang <wenyou.yang@atmel.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AT91_PMC_H__
|
|
|
|
#define __AT91_PMC_H__
|
|
|
|
|
2017-09-05 10:30:07 +00:00
|
|
|
#include <regmap.h>
|
|
|
|
|
2016-07-20 09:55:12 +00:00
|
|
|
struct pmc_platdata {
|
|
|
|
struct at91_pmc *reg_base;
|
2017-09-05 10:30:07 +00:00
|
|
|
struct regmap *regmap_sfr;
|
2016-07-20 09:55:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int at91_pmc_core_probe(struct udevice *dev);
|
2016-09-27 03:00:29 +00:00
|
|
|
int at91_clk_sub_device_bind(struct udevice *dev, const char *drv_name);
|
|
|
|
|
2017-05-19 02:09:40 +00:00
|
|
|
int at91_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args);
|
2016-09-27 03:00:29 +00:00
|
|
|
int at91_clk_probe(struct udevice *dev);
|
2016-07-20 09:55:12 +00:00
|
|
|
|
|
|
|
#endif
|