Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2017 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 *
6 * Copyright (c) 2018 Amlogic, inc.
7 * Author: Qiufang Dai <qiufang.dai@amlogic.com>
8 * Author: Yixun Lan <yixun.lan@amlogic.com>
9 */
10
11#ifndef __MESON_AOCLK_H__
12#define __MESON_AOCLK_H__
13
14#include <linux/clk-provider.h>
15#include <linux/platform_device.h>
16#include <linux/regmap.h>
17#include <linux/reset-controller.h>
18
19#include "clk-regmap.h"
20#include "meson-clkc-utils.h"
21
22struct meson_aoclk_data {
23 const struct meson_clkc_data clkc_data;
24 const unsigned int reset_reg;
25 const int num_reset;
26 const unsigned int *reset;
27};
28
29struct meson_aoclk_reset_controller {
30 struct reset_controller_dev reset;
31 const struct meson_aoclk_data *data;
32 struct regmap *regmap;
33};
34
35int meson_aoclkc_probe(struct platform_device *pdev);
36#endif