Revision: 1152
http://svn.sourceforge.net/hackndev/?rev=1152&view=rev
Author: medaglia
Date: 2007-07-15 08:07:51 -0700 (Sun, 15 Jul 2007)
Log Message:
-----------
Added Bluetooth definitions in palmte2-gpio.h
Modified Paths:
--------------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-gpio.h
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-gpio.h 2007-07-15 08:33:23 UTC (rev 1151)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmte2-gpio.h 2007-07-15 15:07:51 UTC (rev 1152)
@@ -21,4 +21,33 @@
#define GPIO_NR_PALMTE2_KP_DKIN7 21 /* Down */
#define GPIO_NR_PALMTE2_KP_DKIN8 22 /* Up */
+/* Bluetooth */
+
+#define GPIO_NR_PALMTE2_BT_RXD 42
+#define GPIO_NR_PALMTE2_BT_TXD 43
+#define GPIO_NR_PALMTE2_BT_CTS 44
+#define GPIO_NR_PALMTE2_BT_RTS 45
+#define GPIO_NR_PALMTE2_BT_RESET 80
+#define GPIO_NR_PALMTE2_BT_POWER 32
+
+/* GPIO */
+
+#define GET_GPIO(gpio) (GPLR(gpio) & GPIO_bit(gpio))
+
+#define SET_GPIO(gpio, setp) \
+ do { \
+ if (setp) \
+ GPSR(gpio) = GPIO_bit(gpio); \
+ else \
+ GPCR(gpio) = GPIO_bit(gpio); \
+ } while (0)
+
+#define SET_PALMTE2_GPIO(gpio, setp) \
+ do { \
+ if (setp) \
+ GPSR(GPIO_NR_PALMTE2_ ## gpio) = GPIO_bit(GPIO_NR_PALMTE2_ ## gpio); \
+ else \
+ GPCR(GPIO_NR_PALMTE2_ ## gpio) = GPIO_bit(GPIO_NR_PALMTE2_ ## gpio); \
+ } while (0)
+
#endif /* _PALMTE2_GPIO_H_ */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|