Server IP : 172.67.216.182 / Your IP : 172.69.176.43 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-143/include/linux/mfd/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ /* * Lochnagar internals * * Copyright (c) 2013-2018 Cirrus Logic, Inc. and * Cirrus Logic International Semiconductor Ltd. * * Author: Charles Keepax <[email protected]> */ #include <linux/device.h> #include <linux/mutex.h> #include <linux/regmap.h> #ifndef CIRRUS_LOCHNAGAR_H #define CIRRUS_LOCHNAGAR_H enum lochnagar_type { LOCHNAGAR1, LOCHNAGAR2, }; /** * struct lochnagar - Core data for the Lochnagar audio board driver. * * @type: The type of Lochnagar device connected. * @dev: A pointer to the struct device for the main MFD. * @regmap: The devices main register map. * @analogue_config_lock: Lock used to protect updates in the analogue * configuration as these must not be changed whilst the hardware is processing * the last update. */ struct lochnagar { enum lochnagar_type type; struct device *dev; struct regmap *regmap; /* Lock to protect updates to the analogue configuration */ struct mutex analogue_config_lock; }; /* Register Addresses */ #define LOCHNAGAR_SOFTWARE_RESET 0x00 #define LOCHNAGAR_FIRMWARE_ID1 0x01 #define LOCHNAGAR_FIRMWARE_ID2 0x02 /* (0x0000) Software Reset */ #define LOCHNAGAR_DEVICE_ID_MASK 0xFFFC #define LOCHNAGAR_DEVICE_ID_SHIFT 2 #define LOCHNAGAR_REV_ID_MASK 0x0003 #define LOCHNAGAR_REV_ID_SHIFT 0 int lochnagar_update_config(struct lochnagar *lochnagar); #endif