Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Wenyou Yang | 9e5935c | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Atmel Corporation |
| 4 | * Wenyou.Yang <wenyou.yang@atmel.com> |
Wenyou Yang | 9e5935c | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __AT91_PMC_H__ |
| 8 | #define __AT91_PMC_H__ |
| 9 | |
Wenyou Yang | e7c8315 | 2017-09-05 18:30:07 +0800 | [diff] [blame] | 10 | #include <regmap.h> |
| 11 | |
Wenyou Yang | 9e5935c | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 12 | struct pmc_platdata { |
| 13 | struct at91_pmc *reg_base; |
Wenyou Yang | e7c8315 | 2017-09-05 18:30:07 +0800 | [diff] [blame] | 14 | struct regmap *regmap_sfr; |
Wenyou Yang | 9e5935c | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 15 | }; |
| 16 | |
| 17 | int at91_pmc_core_probe(struct udevice *dev); |
Wenyou Yang | 6cadaa0 | 2016-09-27 11:00:29 +0800 | [diff] [blame] | 18 | int at91_clk_sub_device_bind(struct udevice *dev, const char *drv_name); |
| 19 | |
Simon Glass | a4e0ef5 | 2017-05-18 20:09:40 -0600 | [diff] [blame] | 20 | int at91_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args); |
Wenyou Yang | 6cadaa0 | 2016-09-27 11:00:29 +0800 | [diff] [blame] | 21 | int at91_clk_probe(struct udevice *dev); |
Wenyou Yang | 9e5935c | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 22 | |
| 23 | #endif |