summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/samsungypr/ypr1/gpio-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/samsungypr/ypr1/gpio-target.h')
-rw-r--r--firmware/target/hosted/samsungypr/ypr1/gpio-target.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/firmware/target/hosted/samsungypr/ypr1/gpio-target.h b/firmware/target/hosted/samsungypr/ypr1/gpio-target.h
index f439e786de..706f8dd249 100644
--- a/firmware/target/hosted/samsungypr/ypr1/gpio-target.h
+++ b/firmware/target/hosted/samsungypr/ypr1/gpio-target.h
@@ -23,8 +23,6 @@
23#ifndef GPIO_TARGET_H 23#ifndef GPIO_TARGET_H
24#define GPIO_TARGET_H 24#define GPIO_TARGET_H
25 25
26#include "ioctl-ypr1.h"
27
28/* Some meaningful pins used in the YP-R1 */ 26/* Some meaningful pins used in the YP-R1 */
29 27
30#define GPIO_HEADPHONE_SENSE GPIO1_31 28#define GPIO_HEADPHONE_SENSE GPIO1_31
@@ -58,10 +56,7 @@
58#define GPIO_POWER_KEY GPIO2_16 56#define GPIO_POWER_KEY GPIO2_16
59 57
60#define GPIO_DEVICE "/dev/r1Gpio" 58#define GPIO_DEVICE "/dev/r1Gpio"
61 59/* Strangely for whatever reason magic differs from R0 (A vs. G) */
62void gpio_init(void); 60#define GPIO_IOCTL_MAGIC 'A'
63void gpio_close(void);
64int gpio_control_struct(int request, struct gpio_info pin);
65int gpio_control(int request, int num, int mode, int val);
66 61
67#endif /* GPIO_TARGET_H */ 62#endif /* GPIO_TARGET_H */