drivers/misc: add support the FSA9480 USB Switch
The FSA9480 is a USB port accessory detector and switch. This patch adds support the FSA9480 USB Switch. [akpm@linux-foundation.org: make a couple of things static] Signed-off-by: Donggeun Kim <dg77.kim@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
703f03c896
commit
a1bb73d76b
5 changed files with 615 additions and 0 deletions
27
include/linux/platform_data/fsa9480.h
Normal file
27
include/linux/platform_data/fsa9480.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (C) 2010 Samsung Electronics
|
||||
* Minkyu Kang <mk7.kang@samsung.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.
|
||||
*/
|
||||
|
||||
#ifndef _FSA9480_H_
|
||||
#define _FSA9480_H_
|
||||
|
||||
#define FSA9480_ATTACHED 1
|
||||
#define FSA9480_DETACHED 0
|
||||
|
||||
struct fsa9480_platform_data {
|
||||
void (*cfg_gpio) (void);
|
||||
void (*usb_cb) (u8 attached);
|
||||
void (*uart_cb) (u8 attached);
|
||||
void (*charger_cb) (u8 attached);
|
||||
void (*jig_cb) (u8 attached);
|
||||
void (*reset_cb) (void);
|
||||
void (*usb_power) (u8 on);
|
||||
int wakeup;
|
||||
};
|
||||
|
||||
#endif /* _FSA9480_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue