summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/samsungypr/ypr1/gpio-target.h
diff options
context:
space:
mode:
authorLorenzo Miori <memoryS60@gmail.com>2013-12-28 19:00:57 +0100
committerThomas Martitz <kugel@rockbox.org>2014-02-05 21:57:31 +0100
commitf005d841f292287326b8b9d1a74aac9bf3abbfc3 (patch)
tree4839b0a83e9af55a372610d65916aecbf06c563a /firmware/target/hosted/samsungypr/ypr1/gpio-target.h
parente32ace831af98fd50bf0c08999802ce0f6a51bc8 (diff)
downloadrockbox-f005d841f292287326b8b9d1a74aac9bf3abbfc3.tar.gz
rockbox-f005d841f292287326b8b9d1a74aac9bf3abbfc3.zip
Samsung YP-R0/YP-R1 refactoring
This patch includes some refactoring: - renaming according to Rockbox guidelines - GPIO code merging, still with target defines - some simplification in firmware/SOURCES Change-Id: I7fd95aece53f40efdf8caac22348376615795431
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 */