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:
Jun-Hyung Kwon 2019-08-06 14:44:28 -07:00
commit 78761020cf
4 changed files with 489 additions and 0 deletions

View 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_ */