mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-04 14:10:46 +00:00
HSI: Introduce driver for SSI Protocol
This adds a driver for the SSI McSAAB protocol as used in the Nokia N900. Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com> Signed-off-by: Sebastian Reichel <sre@kernel.org> Tested-By: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
This commit is contained in:
parent
dc9df3154c
commit
dc7bf5d718
@ -4,6 +4,14 @@
|
||||
|
||||
comment "HSI clients"
|
||||
|
||||
config SSI_PROTOCOL
|
||||
tristate "SSI protocol"
|
||||
depends on HSI && PHONET && (OMAP_SSI=y || OMAP_SSI=m)
|
||||
help
|
||||
If you say Y here, you will enable the SSI protocol aka McSAAB.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config HSI_CHAR
|
||||
tristate "HSI/SSI character driver"
|
||||
depends on HSI
|
||||
|
@ -2,4 +2,5 @@
|
||||
# Makefile for HSI clients
|
||||
#
|
||||
|
||||
obj-$(CONFIG_SSI_PROTOCOL) += ssi_protocol.o
|
||||
obj-$(CONFIG_HSI_CHAR) += hsi_char.o
|
||||
|
1191
drivers/hsi/clients/ssi_protocol.c
Normal file
1191
drivers/hsi/clients/ssi_protocol.c
Normal file
File diff suppressed because it is too large
Load Diff
42
include/linux/hsi/ssi_protocol.h
Normal file
42
include/linux/hsi/ssi_protocol.h
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* ssip_slave.h
|
||||
*
|
||||
* SSIP slave support header file
|
||||
*
|
||||
* Copyright (C) 2010 Nokia Corporation. All rights reserved.
|
||||
*
|
||||
* Contact: Carlos Chinea <carlos.chinea@nokia.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_SSIP_SLAVE_H__
|
||||
#define __LINUX_SSIP_SLAVE_H__
|
||||
|
||||
#include <linux/hsi/hsi.h>
|
||||
|
||||
static inline void ssip_slave_put_master(struct hsi_client *master)
|
||||
{
|
||||
}
|
||||
|
||||
struct hsi_client *ssip_slave_get_master(struct hsi_client *slave);
|
||||
int ssip_slave_start_tx(struct hsi_client *master);
|
||||
int ssip_slave_stop_tx(struct hsi_client *master);
|
||||
void ssip_reset_event(struct hsi_client *master);
|
||||
|
||||
int ssip_slave_running(struct hsi_client *master);
|
||||
|
||||
#endif /* __LINUX_SSIP_SLAVE_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user