|
From: <bob...@us...> - 2007-07-14 08:12:12
|
Revision: 1146
http://svn.sourceforge.net/hackndev/?rev=1146&view=rev
Author: bobofdoom
Date: 2007-07-14 01:12:10 -0700 (Sat, 14 Jul 2007)
Log Message:
-----------
PalmT650: USB gadget now works.
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650_pm.c
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650_pm.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650_pm.c 2007-07-14 01:51:44 UTC (rev 1145)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650_pm.c 2007-07-14 08:12:10 UTC (rev 1146)
@@ -31,6 +31,7 @@
{
/* Wake-Up on RTC event, etc. */
PWER |= PWER_RTC | PWER_WEP1;
+ PWER |= 2 << 19; /* wake on SD */
/* Wakeup by keyboard :-) */
PKWR = 0x01;
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h 2007-07-14 01:51:44 UTC (rev 1145)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h 2007-07-14 08:12:10 UTC (rev 1146)
@@ -43,7 +43,7 @@
#define GPIO_NR_PALMT650_SD_DETECT_N 113 /* SD card inserted; RE FE; Input */
#define GPIO_NR_PALMT650_LCD_POWER 20
#define GPIO_NR_PALMT650_LCD_FADEOUT 77 /* switching this GPIO makes LCD fade out */
-#define GPIO_NR_PALMT650_USB_DETECT 9
+#define GPIO_NR_PALMT650_USB_PULLUP 114
#define GPIO_NR_PALMT650_KP_MKIN0 100
#define GPIO_NR_PALMT650_KP_MKIN1 101
@@ -82,6 +82,8 @@
#define GPIO_NR_PALMT650_KP_MKOUT5_MD (GPIO_NR_PALMT650_KP_MKOUT5 | GPIO_ALT_FN_2_OUT)
#define GPIO_NR_PALMT650_KP_MKOUT6_MD (GPIO_NR_PALMT650_KP_MKOUT6 | GPIO_ALT_FN_1_OUT)
+#define GPIO_NR_PALMT650_USB_PULLUP_MD (GPIO_NR_PALMT650_USB_PULLUP | GPIO_OUT)
+
/* Utility macros */
#define GET_PALMT650_GPIO(gpio) \
(GPLR(GPIO_NR_PALMT650_ ## gpio) & GPIO_bit(GPIO_NR_PALMT650_ ## gpio))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|