Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at ee9dce44362b2d8132c32964656ab6dff7dfbc6a 38 lines 964 B view raw
1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Core interface for Renesas Synchronization Management Unit (SMU) devices. 4 * 5 * Copyright (C) 2021 Integrated Device Technology, Inc., a Renesas Company. 6 */ 7 8#ifndef __LINUX_MFD_RSMU_H 9#define __LINUX_MFD_RSMU_H 10 11#define RSMU_MAX_WRITE_COUNT (255) 12#define RSMU_MAX_READ_COUNT (255) 13 14/* The supported devices are ClockMatrix, Sabre and SnowLotus */ 15enum rsmu_type { 16 RSMU_CM = 0x34000, 17 RSMU_SABRE = 0x33810, 18 RSMU_SL = 0x19850, 19}; 20 21/** 22 * struct rsmu_ddata - device data structure for sub devices. 23 * 24 * @dev: i2c/spi device. 25 * @regmap: i2c/spi bus access. 26 * @lock: mutex used by sub devices to make sure a series of 27 * bus access requests are not interrupted. 28 * @type: RSMU device type. 29 * @page: i2c/spi bus driver internal use only. 30 */ 31struct rsmu_ddata { 32 struct device *dev; 33 struct regmap *regmap; 34 struct mutex lock; 35 enum rsmu_type type; 36 u32 page; 37}; 38#endif /* __LINUX_MFD_RSMU_H */