mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Remove the clk_regmap tables that are used to keep track which clock need to be initialised before being registered. The initialisation is now done by the .init() operation of clk_regmap. This rework saves a bit memory and makes maintenance a bit easier. Link: https://lore.kernel.org/r/20250623-amlogic-clk-drop-clk-regmap-tables-v4-2-ff04918211cc@baylibre.com Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
36 lines
876 B
C
36 lines
876 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"
|
|
#include "meson-clkc-utils.h"
|
|
|
|
struct meson_aoclk_data {
|
|
const unsigned int reset_reg;
|
|
const int num_reset;
|
|
const unsigned int *reset;
|
|
struct meson_clk_hw_data hw_clks;
|
|
};
|
|
|
|
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
|