Wenyou Yang | 8c772bd | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 1 | /* |
| 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 Yang | 6b66b92 | 2017-09-05 18:30:07 +0800 | [diff] [blame^] | 11 | #include <regmap.h> |
| 12 | |
Wenyou Yang | 8c772bd | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 13 | struct pmc_platdata { |
| 14 | struct at91_pmc *reg_base; |
Wenyou Yang | 6b66b92 | 2017-09-05 18:30:07 +0800 | [diff] [blame^] | 15 | struct regmap *regmap_sfr; |
Wenyou Yang | 8c772bd | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | int at91_pmc_core_probe(struct udevice *dev); |
Wenyou Yang | 9a71d39 | 2016-09-27 11:00:29 +0800 | [diff] [blame] | 19 | int at91_clk_sub_device_bind(struct udevice *dev, const char *drv_name); |
| 20 | |
Simon Glass | b7ae277 | 2017-05-18 20:09:40 -0600 | [diff] [blame] | 21 | int at91_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args); |
Wenyou Yang | 9a71d39 | 2016-09-27 11:00:29 +0800 | [diff] [blame] | 22 | int at91_clk_probe(struct udevice *dev); |
Wenyou Yang | 8c772bd | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 23 | |
| 24 | #endif |