mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
drivers: sensors: add sensors ssc driver
SLPI (sensor low power island) uses Qualcomm Technologies, Inc Digital Signal Processor for all sensors connected via SPI/I2C. Firmware is required to be loaded to enable these sensors and algorithms to execute on DSP. This change adds driver to load the firmware. This snapshot is taken as of msm-4.19 'commit <db92782eadcfd7e8186f6f7487194ebbf8c31c19> (Merge "icnss: Reduce the shutdown timeout from 50sec to 15sec")'. In addition change copyrights, type and description in KConfig and directory change from sensors to soc/qcom. Change-Id: I15350924e7febe287dc9d7e21885b2e11426a2cc Signed-off-by: Jun-Hyung Kwon <junhyung@codeaurora.org>
This commit is contained in:
parent
b5920ef4fa
commit
78761020cf
4 changed files with 489 additions and 0 deletions
21
include/uapi/linux/msm_dsps.h
Normal file
21
include/uapi/linux/msm_dsps.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
||||
/*
|
||||
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _UAPI_DSPS_H_
|
||||
#define _UAPI_DSPS_H_
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#define DSPS_IOCTL_MAGIC 'd'
|
||||
|
||||
#define DSPS_IOCTL_ON _IO(DSPS_IOCTL_MAGIC, 1)
|
||||
#define DSPS_IOCTL_OFF _IO(DSPS_IOCTL_MAGIC, 2)
|
||||
|
||||
#define DSPS_IOCTL_READ_SLOW_TIMER _IOR(DSPS_IOCTL_MAGIC, 3, unsigned int*)
|
||||
#define DSPS_IOCTL_READ_FAST_TIMER _IOR(DSPS_IOCTL_MAGIC, 4, unsigned int*)
|
||||
|
||||
#define DSPS_IOCTL_RESET _IO(DSPS_IOCTL_MAGIC, 5)
|
||||
|
||||
#endif /* _UAPI_DSPS_H_ */
|
||||
Loading…
Reference in a new issue