mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 15:34:48 +08:00
072a043f5a
During probe, bypass clocks (i.e. ao-in-xtal) are made from device-tree inputs to provide input clocks which can be access through global name. The cons of this method are the duplicated clocks, means more string comparison. Specify parent directly with device-tree clock name. Function to regiter bypass clocks is removed. Input parameters from meson aoclk data structure are deprecated and then deleted since all aoclk files are migrated. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
38 lines
907 B
C
38 lines
907 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2017 BayLibre, SAS
|
|
* Author: Neil Armstrong <narmstrong@baylibre.com>
|
|
*
|
|
* Copyright (c) 2018 Amlogic, inc.
|
|
* Author: Qiufang Dai <qiufang.dai@amlogic.com>
|
|
* Author: Yixun Lan <yixun.lan@amlogic.com>
|
|
*/
|
|
|
|
#ifndef __MESON_AOCLK_H__
|
|
#define __MESON_AOCLK_H__
|
|
|
|
#include <linux/clk-provider.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/regmap.h>
|
|
#include <linux/reset-controller.h>
|
|
|
|
#include "clk-regmap.h"
|
|
|
|
struct meson_aoclk_data {
|
|
const unsigned int reset_reg;
|
|
const int num_reset;
|
|
const unsigned int *reset;
|
|
const int num_clks;
|
|
struct clk_regmap **clks;
|
|
const struct clk_hw_onecell_data *hw_data;
|
|
};
|
|
|
|
struct meson_aoclk_reset_controller {
|
|
struct reset_controller_dev reset;
|
|
const struct meson_aoclk_data *data;
|
|
struct regmap *regmap;
|
|
};
|
|
|
|
int meson_aoclkc_probe(struct platform_device *pdev);
|
|
#endif
|