mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
![Nobuhiro Iwamatsu](/assets/img/avatar_default.png)
Add support for common interface of the common clock and reset driver for Toshiba Visconti5 and its SoC, TMPV7708. The PIPLLCT provides the PLL, and the PISMU provides clock and reset functionality. Each drivers are provided in this patch. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> Link: https://lore.kernel.org/r/20211025031038.4180686-4-nobuhiro1.iwamatsu@toshiba.co.jp [sboyd@kernel.org: Add bitfield.h include to pll.c] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
36 lines
880 B
C
36 lines
880 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Toshiba ARM SoC reset controller driver
|
|
*
|
|
* Copyright (c) 2021 TOSHIBA CORPORATION
|
|
*
|
|
* Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
|
|
*/
|
|
|
|
#ifndef _VISCONTI_RESET_H_
|
|
#define _VISCONTI_RESET_H_
|
|
|
|
#include <linux/reset-controller.h>
|
|
|
|
struct visconti_reset_data {
|
|
u32 rson_offset;
|
|
u32 rsoff_offset;
|
|
u8 rs_idx;
|
|
};
|
|
|
|
struct visconti_reset {
|
|
struct reset_controller_dev rcdev;
|
|
struct regmap *regmap;
|
|
const struct visconti_reset_data *resets;
|
|
spinlock_t *lock;
|
|
};
|
|
|
|
extern const struct reset_control_ops visconti_reset_ops;
|
|
|
|
int visconti_register_reset_controller(struct device *dev,
|
|
struct regmap *regmap,
|
|
const struct visconti_reset_data *resets,
|
|
unsigned int num_resets,
|
|
const struct reset_control_ops *reset_ops,
|
|
spinlock_t *lock);
|
|
#endif /* _VISCONTI_RESET_H_ */
|