You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(26) |
Sep
(22) |
Oct
(55) |
Nov
(24) |
Dec
(30) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(68) |
Feb
(85) |
Mar
(54) |
Apr
(12) |
May
(52) |
Jun
(75) |
Jul
(116) |
Aug
(71) |
Sep
(54) |
Oct
|
Nov
(2) |
Dec
|
|
From: <z7...@us...> - 2007-05-18 13:03:03
|
Revision: 982
http://svn.sourceforge.net/hackndev/?rev=982&view=rev
Author: z72ka
Date: 2007-05-18 06:02:58 -0700 (Fri, 18 May 2007)
Log Message:
-----------
Palm Z72: New backlight GPIO included in gpio header
Modified Paths:
--------------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h 2007-05-18 12:34:37 UTC (rev 981)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h 2007-05-18 13:02:58 UTC (rev 982)
@@ -85,7 +85,10 @@
#define GPIO_NR_PALMZ72_SD_DETECT_N 14
#define IRQ_GPIO_PALMZ72_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMZ72_SD_DETECT_N)
+/* Backlight */
+#define GPIO_NR_PALMZ72_BL_POWER 20
+
/* Others */
#define GPIO_NR_PALMZ72_GPIO_RESET 1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-18 12:37:49
|
Revision: 979
http://svn.sourceforge.net/hackndev/?rev=979&view=rev
Author: z72ka
Date: 2007-05-18 05:21:31 -0700 (Fri, 18 May 2007)
Log Message:
-----------
Palm Z72: Added backlight init values to header
Modified Paths:
--------------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-init.h
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-init.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-init.h 2007-05-16 13:11:29 UTC (rev 978)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-init.h 2007-05-18 12:21:31 UTC (rev 979)
@@ -18,9 +18,11 @@
#define _INCLUDE_PALMZ72_INIT_H_
-// TOUCHSCREEN
+// BACKLIGHT
-#define AC97_LINK_FRAME 21
+#define PALMZ72_MAX_INTENSITY 0x100
+#define PALMZ72_DEFAULT_INTENSITY 0x7E
+#define PALMZ72_LIMIT_MASK 0x7F
// BATTERY
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-18 12:37:45
|
Revision: 980
http://svn.sourceforge.net/hackndev/?rev=980&view=rev
Author: z72ka
Date: 2007-05-18 05:23:07 -0700 (Fri, 18 May 2007)
Log Message:
-----------
Palm Z72: Moving backlight definitons to header palmz72-init.h
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-05-18 12:21:31 UTC (rev 979)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-05-18 12:23:07 UTC (rev 980)
@@ -38,6 +38,7 @@
#include <asm/arch/irda.h>
#include <asm/arch/mmc.h>
#include <asm/arch/palmz72-gpio.h>
+#include <asm/arch/palmz72-init.h>
#include <asm/arch/pxa_camera.h>
#include <sound/driver.h>
@@ -314,16 +315,6 @@
.dev = { .platform_data = &palmz72_audio_ops },
};
-
-
-/*************
- * Backlight *
- *************/
-
-#define PALMZ72_MAX_INTENSITY 0x100
-#define PALMZ72_DEFAULT_INTENSITY 0x7E
-#define PALMZ72_LIMIT_MASK 0x7F
-
static struct pxapwmbl_platform_data palmz72_backlight_data = {
.pwm = 0,
.max_intensity = PALMZ72_MAX_INTENSITY,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-18 12:34:48
|
Revision: 981
http://svn.sourceforge.net/hackndev/?rev=981&view=rev
Author: z72ka
Date: 2007-05-18 05:34:37 -0700 (Fri, 18 May 2007)
Log Message:
-----------
Palm Z72: New GPIO found... backlight OFF and ON
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/gpio_map.txt
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/gpio_map.txt
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/gpio_map.txt 2007-05-18 12:23:07 UTC (rev 980)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/gpio_map.txt 2007-05-18 12:34:37 UTC (rev 981)
@@ -19,7 +19,7 @@
GPIO_17 1 O 00 Bluetooth: 1 when enabled in POS
GPIO_18 0 O 00
GPIO_19 1 O 00 Screen goes white when 0
-GPIO_20 1 O 00
+GPIO_20 1 O 00 BL_POWER // Backlight goes off when 0
GPIO_21 0 O 00
GPIO_22 0 O 00
GPIO_23 0 O 02 SSPSCLK
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-16 13:11:32
|
Revision: 978
http://svn.sourceforge.net/hackndev/?rev=978&view=rev
Author: z72ka
Date: 2007-05-16 06:11:29 -0700 (Wed, 16 May 2007)
Log Message:
-----------
PalmTX: New defconfig with bluetooth stuff
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig
Modified: linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig 2007-05-16 12:59:27 UTC (rev 977)
+++ linux4palm/linux/trunk/arch/arm/configs/palmtx_defconfig 2007-05-16 13:11:29 UTC (rev 978)
@@ -414,6 +414,15 @@
#
CONFIG_PXA_FICP=y
CONFIG_BT=m
+CONFIG_BT_L2CAP=m
+CONFIG_BT_SCO=m
+CONFIG_BT_RFCOMM=m
+CONFIG_BT_RFCOMM_TTY=y
+CONFIG_BT_BNEP=m
+CONFIG_BT_BNEP_MC_FILTER=y
+CONFIG_BT_BNEP_PROTO_FILTER=y
+CONFIG_BT_HIDP=m
+
# CONFIG_BT_L2CAP is not set
# CONFIG_BT_SCO is not set
@@ -421,7 +430,8 @@
# Bluetooth device drivers
#
CONFIG_BT_HCIUART=m
-# CONFIG_BT_HCIUART_H4 is not set
+CONFIG_BT_HCIUART_H4=y
+CONFIG_BT_BCM2035UART=m
# CONFIG_BT_HCIUART_BCSP is not set
# CONFIG_BT_HCIVHCI is not set
CONFIG_IEEE80211=m
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-16 12:59:32
|
Revision: 977
http://svn.sourceforge.net/hackndev/?rev=977&view=rev
Author: z72ka
Date: 2007-05-16 05:59:27 -0700 (Wed, 16 May 2007)
Log Message:
-----------
PalmTX: Added missing init of bt device.. sorry
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-05-16 12:50:16 UTC (rev 976)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-05-16 12:59:27 UTC (rev 977)
@@ -349,6 +349,7 @@
&palmtx_ac97,
&palmtx_pm,
&palmtx_backlight,
+ &bcm2035_bt,
};
/***************
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-16 12:50:19
|
Revision: 976
http://svn.sourceforge.net/hackndev/?rev=976&view=rev
Author: z72ka
Date: 2007-05-16 05:50:16 -0700 (Wed, 16 May 2007)
Log Message:
-----------
PalmTX: Added missing header serial.h
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-05-16 12:28:12 UTC (rev 975)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-05-16 12:50:16 UTC (rev 976)
@@ -38,6 +38,7 @@
#include <asm/arch/pxa-regs.h>
#include <asm/arch/udc.h>
#include <asm/arch/irda.h>
+#include <asm/arch/serial.h>
#include <asm/arch/pxa27x_keyboard.h>
#include <asm/arch/pxapwm-bl.h>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-16 12:28:15
|
Revision: 975
http://svn.sourceforge.net/hackndev/?rev=975&view=rev
Author: z72ka
Date: 2007-05-16 05:28:12 -0700 (Wed, 16 May 2007)
Log Message:
-----------
PalmTX: Modified battery level upon |miska| experiences
Modified Paths:
--------------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h 2007-05-16 12:25:02 UTC (rev 974)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h 2007-05-16 12:28:12 UTC (rev 975)
@@ -53,7 +53,7 @@
// BATTERY
-#define PALMTX_BAT_MAX_VOLTAGE 4100 // 3.99v current voltage at max charge as from Filez
+#define PALMTX_BAT_MAX_VOLTAGE 4000 // 4.00v current voltage at max charge as from ZLauncher
#define PALMTX_BAT_MIN_VOLTAGE 3600 // 3.60v critical voltage as from FileZ
#define PALMTX_BAT_MAX_CURRENT 0 // unknokn
#define PALMTX_BAT_MIN_CURRENT 0 // unknown
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-16 12:25:06
|
Revision: 974
http://svn.sourceforge.net/hackndev/?rev=974&view=rev
Author: z72ka
Date: 2007-05-16 05:25:02 -0700 (Wed, 16 May 2007)
Log Message:
-----------
PalmTX: Modified AC status detection
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c 2007-05-16 12:24:06 UTC (rev 973)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c 2007-05-16 12:25:02 UTC (rev 974)
@@ -159,7 +159,7 @@
static int palmtx_ac_is_connected (void){
/* when charger is plugged in, then status is ONLINE */
- int ret = ((GET_GPIO(GPIO_NR_PALMTX_POWER_DETECT)));;
+ int ret = ((GET_GPIO(GPIO_NR_PALMTX_POWER_DETECT))||(!GET_GPIO(GPIO_NR_PALMTX_USB_DETECT)));;
if (ret)
ret = 1;
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-16 12:24:11
|
Revision: 973
http://svn.sourceforge.net/hackndev/?rev=973&view=rev
Author: z72ka
Date: 2007-05-16 05:24:06 -0700 (Wed, 16 May 2007)
Log Message:
-----------
PalmTX: Added bluetooth stuff
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-05-05 20:34:45 UTC (rev 972)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx.c 2007-05-16 12:24:06 UTC (rev 973)
@@ -221,6 +221,56 @@
.transceiver_mode = palmtx_irda_transceiver_mode,
};
+/**************
+ * Bluetooth *
+ **************/
+
+void bcm2035_bt_reset(int on)
+{
+ printk(KERN_NOTICE "Switch BT reset %d\n", on);
+ if (on)
+ SET_PALMTX_GPIO( BT_RESET, 1 );
+ else
+ SET_PALMTX_GPIO( BT_RESET, 0 );
+}
+EXPORT_SYMBOL(bcm2035_bt_reset);
+
+void bcm2035_bt_power(int on)
+{
+ printk(KERN_NOTICE "Switch BT power %d\n", on);
+ if (on)
+ SET_PALMTX_GPIO( BT_POWER, 1 );
+ else
+ SET_PALMTX_GPIO( BT_POWER, 0 );
+}
+EXPORT_SYMBOL(bcm2035_bt_power);
+
+
+struct bcm2035_bt_funcs {
+ void (*configure) ( int state );
+};
+
+static struct bcm2035_bt_funcs bt_funcs;
+
+static void
+bcm2035_bt_configure( int state )
+{
+ if (bt_funcs.configure != NULL)
+ bt_funcs.configure( state );
+}
+
+static struct platform_pxa_serial_funcs bcm2035_pxa_bt_funcs = {
+ .configure = bcm2035_bt_configure,
+};
+
+static struct platform_device bcm2035_bt = {
+ .name = "bcm2035-bt",
+ .id = -1,
+ .dev = {
+ .platform_data = &bt_funcs,
+ },
+};
+
/*******
* USB *
*******/
@@ -376,6 +426,7 @@
pxa_gpio_mode(GPIO31_SYNC_AC97_MD);
set_pxa_fb_info ( &palmtx_lcd_screen );
+ pxa_set_btuart_info(&bcm2035_pxa_bt_funcs);
pxa_set_mci_info ( &palmtx_mci_platform_data );
pxa_set_udc_info ( &palmtx_udc_mach_info );
pxa_set_ficp_info ( &palmtx_ficp_platform_data );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sle...@us...> - 2007-05-05 20:34:49
|
Revision: 972
http://svn.sourceforge.net/hackndev/?rev=972&view=rev
Author: sleep_walker
Date: 2007-05-05 13:34:45 -0700 (Sat, 05 May 2007)
Log Message:
-----------
l4p: gpioed-ng cleaning
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/misc/gpioed-ng.c
Modified: linux4palm/linux/trunk/drivers/misc/gpioed-ng.c
===================================================================
--- linux4palm/linux/trunk/drivers/misc/gpioed-ng.c 2007-05-05 12:51:48 UTC (rev 971)
+++ linux4palm/linux/trunk/drivers/misc/gpioed-ng.c 2007-05-05 20:34:45 UTC (rev 972)
@@ -98,6 +98,7 @@
printk(KERN_ERR "GPIOed: GPIO %lu set low\n", id);
break;
#ifdef CONFIG_MACH_T3XSCALE
+#ifdef CONFIG_TPS65010
case 'T':
tps65010_set_gpio_out_value(id, 1);
printk(KERN_ERR "GPIOed: GPIO %lu set high on TPS65010\n", id);
@@ -107,6 +108,7 @@
printk(KERN_ERR "GPIOed: GPIO %lu set low on TPS65010\n", id);
break;
#endif
+#endif
case 'd':
GPDR(id) &= ~(GPIO_bit(id));
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-05-05 12:51:50
|
Revision: 971
http://svn.sourceforge.net/hackndev/?rev=971&view=rev
Author: marex_z71
Date: 2007-05-05 05:51:48 -0700 (Sat, 05 May 2007)
Log Message:
-----------
PalmLD: added bluetooth stuff
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-gpio.h
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-05-04 17:18:21 UTC (rev 970)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-05-05 12:51:48 UTC (rev 971)
@@ -31,6 +31,7 @@
#include <asm/arch/pxapwm-bl.h>
#include <asm/arch/pxa-pm_ll.h>
#include <asm/arch/sx2.h>
+#include <asm/arch/serial.h>
#include <sound/driver.h>
#include <sound/core.h>
@@ -97,7 +98,54 @@
};
+/* Bluetooth */
+void bcm2035_bt_reset(int on)
+{
+ printk(KERN_NOTICE "Switch BT reset %d\n", on);
+ if (on)
+ SET_PALMLD_GPIO( BT_RESET, 1 );
+ else
+ SET_PALMLD_GPIO( BT_RESET, 0 );
+}
+EXPORT_SYMBOL(bcm2035_bt_reset);
+
+void bcm2035_bt_power(int on)
+{
+ printk(KERN_NOTICE "Switch BT power %d\n", on);
+ if (on)
+ SET_PALMLD_GPIO( BT_POWER, 1 );
+ else
+ SET_PALMLD_GPIO( BT_POWER, 0 );
+}
+EXPORT_SYMBOL(bcm2035_bt_power);
+
+
+struct bcm2035_bt_funcs {
+ void (*configure) ( int state );
+};
+
+static struct bcm2035_bt_funcs bt_funcs;
+
+static void
+bcm2035_bt_configure( int state )
+{
+ if (bt_funcs.configure != NULL)
+ bt_funcs.configure( state );
+}
+
+static struct platform_pxa_serial_funcs bcm2035_pxa_bt_funcs = {
+ .configure = bcm2035_bt_configure,
+};
+
+static struct platform_device bcm2035_bt = {
+ .name = "bcm2035-bt",
+ .id = -1,
+ .dev = {
+ .platform_data = &bt_funcs,
+ },
+};
+
/**
* AC97 audio controller
*/
@@ -283,7 +331,7 @@
static struct platform_device *devices[] __initdata = {
&palmld_kbd, &palmld_ac97, &palmld_ide, &palmld_backlight,
- &palmldled_device, &palmldusb2_device, &palmld_pm,
+ &palmldled_device, &palmldusb2_device, &palmld_pm, &bcm2035_bt,
};
/*********************************************************
@@ -375,6 +423,7 @@
pxa_gpio_mode(GPIO31_SYNC_AC97_MD);
set_pxa_fb_info( &palmld_lcd_screen );
+ pxa_set_btuart_info(&bcm2035_pxa_bt_funcs);
pxa_set_mci_info( &palmld_mci_platform_data );
platform_add_devices( devices, ARRAY_SIZE(devices) );
pxa_set_ficp_info( &palmld_ficp_platform_data );
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-gpio.h 2007-05-04 17:18:21 UTC (rev 970)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-gpio.h 2007-05-05 12:51:48 UTC (rev 971)
@@ -80,6 +80,19 @@
#define GPIO_NR_PALMLD_USB_INT 106
#define GPIO_NR_PALMLD_USB_POWER 118
+/* Bluetooth */
+#define GPIO_NR_PALMLD_BT_POWER 17
+#define GPIO_NR_PALMLD_BT_RXD 42
+#define GPIO_NR_PALMLD_BT_TXD 43
+#define GPIO_NR_PALMLD_BT_CTS 44
+#define GPIO_NR_PALMLD_BT_RTS 45
+#define GPIO_NR_PALMLD_BT_RESET 83
+
+#define GPIO_NR_PALMLD_BT_RXD_MD (GPIO_NR_PALMLD_BT_RXD | GPIO_ALT_FN_1_IN)
+#define GPIO_NR_PALMLD_BT_TXD_MD (GPIO_NR_PALMLD_BT_TXD | GPIO_ALT_FN_2_OUT)
+#define GPIO_NR_PALMLD_BT_UART_CTS_MD (GPIO_NR_PALMLD_BT_CTS | GPIO_ALT_FN_1_IN)
+#define GPIO_NR_PALMLD_BT_UART_RTS_MD (GPIO_NR_PALMLD_BT_RTS | GPIO_ALT_FN_2_OUT)
+
/* Utility macros */
#define GET_PALMLD_GPIO(gpio) \
(GPLR(GPIO_NR_PALMLD_ ## gpio) & GPIO_bit(GPIO_NR_PALMLD_ ## gpio))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-05-04 17:18:25
|
Revision: 970
http://svn.sourceforge.net/hackndev/?rev=970&view=rev
Author: marex_z71
Date: 2007-05-04 10:18:21 -0700 (Fri, 04 May 2007)
Log Message:
-----------
PalmLD: updated defconfig ... say W0W
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig
Modified: linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig 2007-05-04 09:15:49 UTC (rev 969)
+++ linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig 2007-05-04 17:18:21 UTC (rev 970)
@@ -165,13 +165,13 @@
CONFIG_PALMLD_PCMCIA=m
# CONFIG_PALMLD_USB is not set
CONFIG_PALMLD_IDE=m
+CONFIG_PALMLD_BATTERY=m
+CONFIG_PALMLD_PM=y
# CONFIG_MACH_XSCALE_PALMTREO650 is not set
# CONFIG_MACH_XSCALE_TREO680 is not set
# CONFIG_MACH_T700WX is not set
# CONFIG_MACH_TUNGE2 is not set
# CONFIG_MACH_T3XSCALE is not set
-CONFIG_GPIOED=m
-CONFIG_GPIOEDNG=m
# CONFIG_MACH_XSCALE_PALMTT5 is not set
# CONFIG_MACH_XSCALE_PALMTX is not set
# CONFIG_MACH_PALMZ72 is not set
@@ -180,7 +180,6 @@
# CONFIG_PXA_SHARPSL is not set
# CONFIG_MACH_TRIZEPS4 is not set
CONFIG_PXA27x=y
-CONFIG_PXA_RTC_EPOCH=1904
#
# Linux As Bootloader
@@ -289,8 +288,12 @@
#
# Power management options
#
-# CONFIG_PM is not set
-# CONFIG_APM is not set
+CONFIG_PM=y
+# CONFIG_PM_LEGACY is not set
+# CONFIG_PM_DEBUG is not set
+# CONFIG_DPM_DEBUG is not set
+# CONFIG_PM_SYSFS_DEPRECATED is not set
+CONFIG_APM=y
#
# Networking
@@ -378,8 +381,8 @@
#
# IrDA protocols
#
-CONFIG_IRLAN=m
-CONFIG_IRNET=m
+CONFIG_IRLAN=y
+CONFIG_IRNET=y
CONFIG_IRCOMM=y
CONFIG_IRDA_ULTRA=y
@@ -388,7 +391,7 @@
#
# CONFIG_IRDA_CACHE_LAST_LSAP is not set
# CONFIG_IRDA_FAST_RR is not set
-CONFIG_IRDA_DEBUG=y
+# CONFIG_IRDA_DEBUG is not set
#
# Infrared-port device drivers
@@ -397,12 +400,11 @@
#
# SIR device drivers
#
-CONFIG_IRTTY_SIR=y
+# CONFIG_IRTTY_SIR is not set
#
# Dongle support
#
-# CONFIG_DONGLE is not set
#
# Old SIR device drivers
@@ -416,16 +418,16 @@
#
# FIR device drivers
#
-CONFIG_PXA_FICP=m
+CONFIG_PXA_FICP=y
CONFIG_BT=m
CONFIG_BT_L2CAP=m
CONFIG_BT_SCO=m
CONFIG_BT_RFCOMM=m
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=m
-# CONFIG_BT_BNEP_MC_FILTER is not set
-# CONFIG_BT_BNEP_PROTO_FILTER is not set
-# CONFIG_BT_HIDP is not set
+CONFIG_BT_BNEP_MC_FILTER=y
+CONFIG_BT_BNEP_PROTO_FILTER=y
+CONFIG_BT_HIDP=m
#
# Bluetooth device drivers
@@ -700,17 +702,17 @@
# Wan interfaces
#
# CONFIG_WAN is not set
-CONFIG_PPP=m
+CONFIG_PPP=y
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_FILTER is not set
-CONFIG_PPP_ASYNC=m
-CONFIG_PPP_SYNC_TTY=m
-CONFIG_PPP_DEFLATE=m
+CONFIG_PPP_ASYNC=y
+CONFIG_PPP_SYNC_TTY=y
+CONFIG_PPP_DEFLATE=y
# CONFIG_PPP_BSDCOMP is not set
# CONFIG_PPP_MPPE is not set
# CONFIG_PPPOE is not set
# CONFIG_SLIP is not set
-CONFIG_SLHC=m
+CONFIG_SLHC=y
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
@@ -753,8 +755,6 @@
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_GPIO_KEYS is not set
CONFIG_KEYBOARD_PXA27x=y
-CONFIG_KEYBOARD_PALMIR=y
-# CONFIG_KEYBOARD_PALMWK is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
CONFIG_INPUT_TOUCHSCREEN=y
@@ -768,6 +768,7 @@
# CONFIG_TOUCHSCREEN_ADC is not set
# CONFIG_TOUCHSCREEN_ADC_DEBOUNCE is not set
# CONFIG_TOUCHSCREEN_UCB1400 is not set
+# CONFIG_TOUCHSCREEN_PALMTC is not set
CONFIG_TOUCHSCREEN_WM97XX=m
# CONFIG_TOUCHSCREEN_WM9705 is not set
CONFIG_TOUCHSCREEN_WM9712=y
@@ -892,7 +893,7 @@
#
# Misc devices
#
-CONFIG_BATTCHARGE_MONITOR=m
+# CONFIG_BATTCHARGE_MONITOR is not set
#
# Multimedia Capabilities Port drivers
@@ -918,8 +919,9 @@
#
CONFIG_LEDS_TRIGGERS=y
CONFIG_LEDS_TRIGGER_TIMER=m
+CONFIG_LEDS_TRIGGER_HWTIMER=m
CONFIG_LEDS_TRIGGER_IDE_DISK=y
-# CONFIG_LEDS_TRIGGER_MMC_CARD is not set
+CONFIG_LEDS_TRIGGER_MMC_CARD=y
CONFIG_LEDS_TRIGGER_HEARTBEAT=m
# CONFIG_LEDS_TRIGGER_SHARED is not set
@@ -1072,6 +1074,7 @@
#
CONFIG_RTC_LIB=y
# CONFIG_RTC_CLASS is not set
+CONFIG_RTC_EPOCH=1904
#
# File systems
@@ -1138,6 +1141,7 @@
# CONFIG_JFFS2_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not set
+# CONFIG_SQUASHFS_LZMA is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
@@ -1296,7 +1300,7 @@
# CONFIG_CRC16 is not set
CONFIG_CRC32=y
# CONFIG_LIBCRC32C is not set
-CONFIG_ZLIB_INFLATE=m
-CONFIG_ZLIB_DEFLATE=m
+CONFIG_ZLIB_INFLATE=y
+CONFIG_ZLIB_DEFLATE=y
CONFIG_PLIST=y
CONFIG_IOMAP_COPY=y
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-04 09:15:56
|
Revision: 969
http://svn.sourceforge.net/hackndev/?rev=969&view=rev
Author: z72ka
Date: 2007-05-04 02:15:49 -0700 (Fri, 04 May 2007)
Log Message:
-----------
Added modified bcm2035-tool to SVN. Now is the baddr of BT chip as argument.
Added Paths:
-----------
linux4palm/tools/bcm2035-tool/
linux4palm/tools/bcm2035-tool/Makefile
linux4palm/tools/bcm2035-tool/README
linux4palm/tools/bcm2035-tool/bcm2035-tool.c
linux4palm/tools/bcm2035-tool/bcm2035-tool.h
linux4palm/tools/bcm2035-tool/motorola_patches.h
Added: linux4palm/tools/bcm2035-tool/Makefile
===================================================================
--- linux4palm/tools/bcm2035-tool/Makefile (rev 0)
+++ linux4palm/tools/bcm2035-tool/Makefile 2007-05-04 09:15:49 UTC (rev 969)
@@ -0,0 +1,9 @@
+P=arm-none-linux-gnueabi-
+
+bcm2035-tool: bcm2035-tool.c bcm2035-tool.h
+ ${P}gcc bcm2035-tool.c -o bcm2035-tool
+
+clean:
+ rm -f bcm2035-tool
+
+
Property changes on: linux4palm/tools/bcm2035-tool/Makefile
___________________________________________________________________
Name: svn:executable
+ *
Added: linux4palm/tools/bcm2035-tool/README
===================================================================
--- linux4palm/tools/bcm2035-tool/README (rev 0)
+++ linux4palm/tools/bcm2035-tool/README 2007-05-04 09:15:49 UTC (rev 969)
@@ -0,0 +1,106 @@
+BCM2035-tool
+************
+
+ This package contains a small utility to initialize and to update
+the firmware of the bcm2035 bluetooth chip on the Motorola EZX Platform and
+Palm devices with this chip.
+
+ This chip has some custom HCI commands, to change the BDADDR and to
+patch the original firmware. This tool can make use of both.
+
+Instructions:
+-------------
+
+
+ You can use the motorola firmware by #defining PATCH_FIRMWARE, and the
+Broadcom original firmware by leaving it commented. The chip works fine with
+both firmwares, and i havent found yet what difference the motorola version
+does.
+ Turn on the chip by sending "AT+EBTP=1\r" to BP, and run the tool.
+
+
+Regards,
+
+Daniel Ribeiro
+
+--------
+
+Extension by 72ka - Jan Herman <2h...@se...>:
+
+usage: bcm2035-tool <dev> <bdaddr>
+
+MAC address is as command. Remember original MAC addres from PalmOS and use in argument <bdaddr>
+
+e.g.
+
+bcm2035-tool /dev/ttyS1 00:07:8a:78:e3:23
+
+-------
+
+wyrm@vault:~/bcm2035-tool$ make upload
+/ezx/cross/bin/arm-angstrom-linux-gnueabi-gcc bcm2035-tool.c -o bcm2035-tool
+scp bcm2035-tool root@a780:
+root@a780's password:
+bcm2035-tool 100% 15KB 15.3KB/s 00:00
+wyrm@vault:~/bcm2035-tool$ a780
+root@a780's password:
+root@a780:~$ echo -e "AT+EBTP=1\r" | nc localhost 7104
+
+OK
+
+root@a780:~$ ./bcm2035-tool /dev/ttyS1
+Set baud: 921600
+Patching Firmware...
+:0: Wrote 17 bytes
+:1: Wrote 33 bytes
+:2: Wrote 78 bytes
+:3: Wrote 15 bytes
+:4: Wrote 76 bytes
+:5: Wrote 25 bytes
+:6: Wrote 127 bytes
+:7: Wrote 13 bytes
+:8: Wrote 185 bytes
+:9: Wrote 572 bytes
+:10: Wrote 31 bytes
+:11: Wrote 76 bytes
+:12: Wrote 41 bytes
+:13: Wrote 113 bytes
+:14: Wrote 56 bytes
+:15: Wrote 39 bytes
+:16: Wrote 29 bytes
+:17: Wrote 56 bytes
+:18: Wrote 39 bytes
+:19: Wrote 82 bytes
+:20: Wrote 33 bytes
+:21: Wrote 29 bytes
+:22: Wrote 43 bytes
+:23: Wrote 86 bytes
+:24: Wrote 146 bytes
+:25: Wrote 11 bytes
+@0: Wrote 82 bytes
+@1: Wrote 6170 bytes
+Set baud: 460800
+root@a780:~$ hciconfig hci0 up
+root@a780:~$ hciconfig hci0
+hci0: Type: UART
+ BD Address: 01:23:45:67:89:AB ACL MTU: 377:10 SCO MTU: 64:0
+ UP RUNNING PSCAN ISCAN
+ RX bytes:79 acl:0 sco:0 events:8 errors:0
+ TX bytes:39 acl:0 sco:0 commands:8 errors:0
+
+root@a780:~$ hciconfig hci0 version
+hci0: Type: UART
+ BD Address: 01:23:45:67:89:AB ACL MTU: 377:10 SCO MTU: 64:0
+ HCI Ver: 1.1 (0x1) HCI Rev: 0x3 LMP Ver: 1.1 (0x1) LMP Subver: 0x700
+ Manufacturer: Broadcom Corporation (15)
+root@a780:~$ hciconfig hci0 revision
+ hci0: Type: UART
+ BD Address: 01:23:45:67:89:AB ACL MTU: 377:10 SCO MTU: 64:0
+ Firmware 3.7 / 0
+root@a780:~$ hcitool dev
+Devices:
+ hci0 01:23:45:67:89:AB
+root@a780:~$ hcitool scan
+Scanning ...
+ 00:07:A4:58:05:B0 Motorola HS810
+
Property changes on: linux4palm/tools/bcm2035-tool/README
___________________________________________________________________
Name: svn:executable
+ *
Added: linux4palm/tools/bcm2035-tool/bcm2035-tool.c
===================================================================
--- linux4palm/tools/bcm2035-tool/bcm2035-tool.c (rev 0)
+++ linux4palm/tools/bcm2035-tool/bcm2035-tool.c 2007-05-04 09:15:49 UTC (rev 969)
@@ -0,0 +1,268 @@
+/* bcm2035-tool
+ *
+ * (C) 2007 by Daniel Ribeiro <dr...@gm...>
+ *
+ * MAC address as argument extension by: Jan Herman <2h...@se...>
+ *
+ * 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
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+/* Default MAC address is 01:02:03:04:05:06 */
+#define BDADDR "\x06\x05\x04\x03\x02\x01"
+
+//#define PATCH_FIRMWARE
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <linux/types.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <sys/ioctl.h>
+#include <termios.h>
+#include "bcm2035-tool.h"
+#include "bluetooth.h"
+
+#ifdef PATCH_FIRMWARE
+#include "motorola_patches.h"
+
+__u8 checksum(char *data, int size)
+{
+ __u8 ret = 0;
+ int i;
+
+ for(i=0; i<size; i++)
+ ret-=data[i];
+ return(ret);
+}
+
+
+char a_buffer[43];
+char *generate_packet(__u8 kind, __u16 address, __u8 flag, __u8 size, char *data)
+{
+ char b_buffer[21];
+ char t_buffer[2];
+ __u8 y, i;
+ __u8 x = 0;
+
+ b_buffer[x++] = size;
+ b_buffer[x++] = (__u8) (address >> 8);
+ b_buffer[x++] = (__u8) address;
+ if (kind)
+ b_buffer[x++] = flag;
+ memcpy((char *)b_buffer + x, data, size);
+ x+=size;
+ b_buffer[x] = checksum(b_buffer, x);
+ x++;
+
+ for(i=0,y=0;i<x;i++)
+ {
+ sprintf(t_buffer, "%.2X", (__u8) b_buffer[i]);
+ a_buffer[y++] = t_buffer[0];
+ a_buffer[y++] = t_buffer[1];
+ }
+ a_buffer[y] = 0;
+ return((char *)a_buffer);
+}
+
+int send_patch(int fd, struct patch p, __u8 kind)
+{
+ int n;
+ char t[50];
+ int ret = 0;
+ // p.size == 0 has special treatment
+ if (p.size == 0) {
+ sprintf (t, ":%s", generate_packet(kind, p.address, p.flag,
+ p.size, p.data));
+ ret += write(fd, t, strlen(t));
+ read (fd, t, 8);
+ if (t[0] != '.')
+ exit(-2);
+
+ }
+ else for (n=0;n<p.size;n+=MAXWRITESIZE) {
+ sprintf (t, "%s%s", (kind?":":"@00"), generate_packet(kind,
+ p.address + n, p.flag, (p.size - n > MAXWRITESIZE ?
+ MAXWRITESIZE : p.size - n), p.data + n));
+ ret += write(fd, t, strlen(t));
+ read (fd, t, 8);
+ if (!kind && strncmp(t, "@01", 3))
+ exit (-3);
+ if (kind && t[0] != '.')
+ exit (-2);
+
+
+ }
+ return(ret);
+}
+#endif // PATCH_FIRMWARE
+
+int send_cmd (int fd, char *cmd, char *arg, int argsize)
+{
+ char buf[16];
+ int x = 0;
+ buf[x++] = 0x01;
+ memcpy(buf + x, cmd, 2);
+ x+=2;
+ buf[x++] = (__u8) argsize;
+ if(argsize > 0)
+ {
+ memcpy(buf + x, arg, argsize);
+ x+=argsize;
+ }
+ write(fd, buf, x);
+ read(fd, buf, 8);
+ if (strncmp(buf, REP, 3) != 0 || buf[3] != 1 ||
+ strncmp(buf+4, cmd, 2) != 0 || buf[6] != 0) {
+ printf(" unexpected reply\n");
+ exit(-10);
+ }
+
+}
+
+#ifdef PATCH_FIRMWARE
+int patch_fw(int fd, struct patch p1[], struct patch p2[])
+{
+ int i;
+ char buf[8];
+
+ printf("Patching Firmware...\n");
+ send_cmd(fd, CMD_PATCH_FW, NULL, 0);
+
+ read(fd, buf, 8);
+
+ for (i=0;p1[i].data!=NULL;i++)
+ printf(":%d: Wrote %d bytes\n", i, send_patch(fd, p1[i], 1));
+
+ for (i=0;p2[i].data!=NULL;i++)
+ printf("@%d: Wrote %d bytes\n", i, send_patch(fd, p2[i], 0));
+
+ write(fd, "Z", 1);
+}
+#endif
+
+int set_baud(int fd, int baud)
+{
+ struct termios t;
+ char buf[8];
+
+ printf("Set baud: %d\n", baud);
+ tcgetattr(fd, &t);
+ switch (baud) {
+ case 115200:
+ send_cmd(fd, CMD_SET_BAUD, BAUD115200, 2);
+ cfsetospeed(&t, B115200);
+ break;
+ case 460800:
+ send_cmd(fd, CMD_SET_BAUD, BAUD460800, 2);
+ cfsetospeed(&t, B460800);
+ break;
+ case 921600:
+ send_cmd(fd, CMD_SET_BAUD, BAUD921600, 2);
+ cfsetospeed(&t, B921600);
+ break;
+ default:
+ printf ("invalid baud rate!\n");
+ return(-1);
+ }
+ return tcsetattr(fd, TCSANOW, &t);
+
+}
+
+void mac2hex(const char *mac, u_char *dst)
+{
+
+ int i;
+ long l;
+ char *pp;
+
+ while (isspace(*mac))
+ mac++;
+
+ /* expect 6 hex octets separated by ':' or space/NUL if last octet */
+ for (i = 0; i < 6; i++) {
+ l = strtol(mac, &pp, 16);
+ if (pp == mac || l > 0xFF || l < 0)
+ return;
+ if (!(*pp == ':' || (i == 5 && (isspace(*pp) || *pp == '\0'))))
+ return;
+ /* 5-i swaps hex chars */
+ dst[5-i] = (u_char) l;
+ mac = pp + 1;
+ }
+ }
+
+char *bdaddr[6];
+
+int main(int argc, char **argv)
+{
+ int fd, i;
+ struct termios term;
+ char buf[1024];
+
+ if (argc < 3) {
+ printf("BCM2035 Tool:\n");
+ printf("Usage: %s <device> <bdaddr>\n", argv[0]);
+ exit(1);
+ }
+
+ /* MAC address is required */
+
+ if (strlen(argv[2]) < 17) {
+ printf("invalid argument %s!\n", argv[2]);
+ exit(1);
+ }
+
+ /* Converts MAC address to swapped HEX */
+ mac2hex(argv[2], &bdaddr);
+
+ fd = open (argv[1], O_RDWR | O_NOCTTY );
+
+ if(fd < 0) exit(-1);
+
+ term.c_iflag=0x5;
+ term.c_oflag=0;
+ term.c_cflag=0x1cb2;
+ term.c_lflag=0;
+ term.c_line=0;
+ memcpy(term.c_cc, "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", NCCS);
+ ioctl (fd, TCSETS, &term);
+
+ send_cmd(fd, CMD_RESET, NULL, 0);
+#ifdef PATCH_FIRMWARE
+ set_baud(fd, 921600);
+ patch_fw(fd, motorola_patches, motorola_firmware);
+ sleep(5);
+#endif
+ set_baud(fd, 460800);
+
+ send_cmd(fd, CMD_SET_BDADDR, bdaddr, 6);
+
+ i = N_HCI;
+ if (ioctl(fd, TIOCSETD, &i) < 0) {
+ perror("Can't set line discipline");
+ exit(1);
+ }
+ if (ioctl(fd, HCIUARTSETPROTO, 0) < 0) {
+ perror("Can't set device");
+ exit(1);
+ }
+ if (fork())
+ return 0;
+ while (1) sleep(999999999);
+ return 0;
+}
Property changes on: linux4palm/tools/bcm2035-tool/bcm2035-tool.c
___________________________________________________________________
Name: svn:executable
+ *
Added: linux4palm/tools/bcm2035-tool/bcm2035-tool.h
===================================================================
--- linux4palm/tools/bcm2035-tool/bcm2035-tool.h (rev 0)
+++ linux4palm/tools/bcm2035-tool/bcm2035-tool.h 2007-05-04 09:15:49 UTC (rev 969)
@@ -0,0 +1,49 @@
+/* bcm2035-tool - bcm2035 tool for Motorola EZX phones
+ *
+ * (C) 2007 by Daniel Ribeiro <dr...@gm...>
+ *
+ * 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
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+
+#define HCIUARTSETPROTO _IOW('U', 200, int)
+
+#define MAXWRITESIZE 16
+
+struct cmd {
+ char *cmd;
+ int size;
+ char *reply;
+};
+
+struct patch {
+ __u16 address;
+ __u8 flag;
+ int size;
+ char *data;
+};
+
+#define REP "\x04\x0e\x04"
+
+#define BAUD115200 "\x00\xf3"
+#define BAUD460800 "\x22\xfd"
+#define BAUD921600 "\x55\xff"
+
+#define CMD_SET_BAUD "\x18\xfc"
+#define CMD_RESET "\x03\x0c"
+#define CMD_PATCH_FW "\x2e\xfc"
+#define CMD_SET_BDADDR "\x01\xfc"
+
+
Property changes on: linux4palm/tools/bcm2035-tool/bcm2035-tool.h
___________________________________________________________________
Name: svn:executable
+ *
Added: linux4palm/tools/bcm2035-tool/motorola_patches.h
===================================================================
--- linux4palm/tools/bcm2035-tool/motorola_patches.h (rev 0)
+++ linux4palm/tools/bcm2035-tool/motorola_patches.h 2007-05-04 09:15:49 UTC (rev 969)
@@ -0,0 +1,10 @@
+/*
+ * This file contains binary firmware code and cant be freely distributed.
+ * If you own an ezx phone and wants this file i can tell you how to
+ * create it based on the "dload" app of the motorola firmware.
+ */
+
+#error This file cant be distributed on OpenEZX servers.
+
+struct patch motorola_patches[];
+struct patch motorola_firmware[];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2007-05-02 12:41:58
|
Revision: 968
http://svn.sourceforge.net/hackndev/?rev=968&view=rev
Author: bobofdoom
Date: 2007-05-02 05:41:55 -0700 (Wed, 02 May 2007)
Log Message:
-----------
ld: Fixed small error in suspend and resume macros when PM is disabled.
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld_ide.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld_ide.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld_ide.c 2007-05-01 18:16:08 UTC (rev 967)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld_ide.c 2007-05-02 12:41:55 UTC (rev 968)
@@ -77,8 +77,8 @@
return 0;
}
#else
-#define palmld_suspend NULL
-#define palmld_resume NULL
+#define palmld_ide_suspend NULL
+#define palmld_ide_resume NULL
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-01 18:16:14
|
Revision: 967
http://svn.sourceforge.net/hackndev/?rev=967&view=rev
Author: z72ka
Date: 2007-05-01 11:16:08 -0700 (Tue, 01 May 2007)
Log Message:
-----------
palmz72, palmtx: Added bluetooth GPIOs
Modified Paths:
--------------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-05-01 18:13:50 UTC (rev 966)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-05-01 18:16:08 UTC (rev 967)
@@ -69,6 +69,26 @@
#define GPIO_NR_PALMTX_BL_POWER 84
#define GPIO_NR_PALMTX_LCD_POWER 96
+/* Bluetooth */
+
+#define GPIO_NR_PALMTX_BT_RXD 42
+#define GPIO_NR_PALMTX_BT_TXD 43
+#define GPIO_NR_PALMTX_BT_CTS 44
+#define GPIO_NR_PALMTX_BT_RTS 45
+#define GPIO_NR_PALMTX_BT_RESET 83
+#define GPIO_NR_PALMTX_BT_POWER 17
+
+#define GPIO_NR_PALMTX_BT_RXD_MD (GPIO_NR_PALMTX_BT_RXD | GPIO_ALT_FN_1_IN)
+#define GPIO_NR_PALMTX_BT_TXD_MD (GPIO_NR_PALMTX_BT_TXD | GPIO_ALT_FN_2_OUT)
+#define GPIO_NR_PALMTX_BT_UART_CTS_MD (GPIO_NR_PALMTX_BT_CTS | GPIO_ALT_FN_1_IN)
+#define GPIO_NR_PALMTX_BT_UART_RTS_MD (GPIO_NR_PALMTX_BT_RTS | GPIO_ALT_FN_2_OUT)
+
+/* WiFi */
+
+#define GPIO_NR_PALMTX_WIFI_POWER 94
+#define GPIO_NR_PALMTX_WIFI_RESET 108
+#define GPIO_NR_PALMTX_PCMCIA_READY 116
+
/* INTERRUPTS */
#define IRQ_GPIO_PALMTX_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMTX_SD_DETECT_N)
@@ -77,9 +97,6 @@
#define IRQ_GPIO_PALMTX_USB_DETECT IRQ_GPIO(GPIO_NR_PALMTX_USB_DETECT)
-#define IRQ_GPIO_PALMTX_GPIO_RESET IRQ_GPIO(GPIO_NR_PALMTX_GPIO_RESET)
-
-
/* Utility macros */
#define GET_PALMTX_GPIO(gpio) \
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h 2007-05-01 18:13:50 UTC (rev 966)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h 2007-05-01 18:16:08 UTC (rev 967)
@@ -49,7 +49,21 @@
#define GPIO_NR_PALMZ72_ICP_RXD_MD (GPIO_NR_PALMZ72_ICP_RXD | GPIO_ALT_FN_1_IN)
#define GPIO_NR_PALMZ72_ICP_TXD_MD (GPIO_NR_PALMZ72_ICP_TXD | GPIO_ALT_FN_2_OUT)
+/* Bluetooth */
+#define GPIO_NR_PALMZ72_BT_RXD 42
+#define GPIO_NR_PALMZ72_BT_TXD 43
+#define GPIO_NR_PALMZ72_BT_CTS 44
+#define GPIO_NR_PALMZ72_BT_RTS 45
+#define GPIO_NR_PALMZ72_BT_RESET 83
+#define GPIO_NR_PALMZ72_BT_POWER 17
+
+#define GPIO_NR_PALMZ72_BT_RXD_MD (GPIO_NR_PALMZ72_BT_RXD | GPIO_ALT_FN_1_IN)
+#define GPIO_NR_PALMZ72_BT_TXD_MD (GPIO_NR_PALMZ72_BT_TXD | GPIO_ALT_FN_2_OUT)
+#define GPIO_NR_PALMZ72_BT_UART_CTS_MD (GPIO_NR_PALMZ72_BT_CTS | GPIO_ALT_FN_1_IN)
+#define GPIO_NR_PALMZ72_BT_UART_RTS_MD (GPIO_NR_PALMZ72_BT_RTS | GPIO_ALT_FN_2_OUT)
+
+
/* Wolfson WM9712 */
#define GPIO_NR_PALMZ72_WM9712_IRQ 27
@@ -116,4 +130,3 @@
#endif
/* _PALMZ72_GPIO_H_ */
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-01 18:13:52
|
Revision: 966
http://svn.sourceforge.net/hackndev/?rev=966&view=rev
Author: z72ka
Date: 2007-05-01 11:13:50 -0700 (Tue, 01 May 2007)
Log Message:
-----------
Added initial bcm2035 power support driver. Very early stage, now with one function - ON/OFF BT
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/bluetooth/Kconfig
linux4palm/linux/trunk/drivers/bluetooth/Makefile
Added Paths:
-----------
linux4palm/linux/trunk/drivers/bluetooth/bcm2035_uart.c
Modified: linux4palm/linux/trunk/drivers/bluetooth/Kconfig
===================================================================
--- linux4palm/linux/trunk/drivers/bluetooth/Kconfig 2007-05-01 18:08:03 UTC (rev 965)
+++ linux4palm/linux/trunk/drivers/bluetooth/Kconfig 2007-05-01 18:13:50 UTC (rev 966)
@@ -118,6 +118,13 @@
Say Y here to compile support for HCI BT3C devices into the
kernel or say M to compile it as module (bt3c_cs).
+config BT_BCM2035UART
+ tristate "BCM2035 UART Support driver"
+ depends on ARCH_PXA
+ help
+ Bluetooth BCM2035 support driver.
+ This driver provides support for Bluetooth bcm2035 chip
+
config BT_HCIBLUECARD
tristate "HCI BlueCard (PC Card) driver"
depends on PCMCIA
Modified: linux4palm/linux/trunk/drivers/bluetooth/Makefile
===================================================================
--- linux4palm/linux/trunk/drivers/bluetooth/Makefile 2007-05-01 18:08:03 UTC (rev 965)
+++ linux4palm/linux/trunk/drivers/bluetooth/Makefile 2007-05-01 18:13:50 UTC (rev 966)
@@ -6,6 +6,7 @@
obj-$(CONFIG_BT_HCIVHCI) += hci_vhci.o
obj-$(CONFIG_BT_HCIUART) += hci_uart.o
obj-$(CONFIG_BT_HCIBCM203X) += bcm203x.o
+obj-$(CONFIG_BT_BCM2035UART) += bcm2035_uart.o
obj-$(CONFIG_BT_HCIBPA10X) += bpa10x.o
obj-$(CONFIG_BT_HCIBFUSB) += bfusb.o
obj-$(CONFIG_BT_HCIDTL1) += dtl1_cs.o
Added: linux4palm/linux/trunk/drivers/bluetooth/bcm2035_uart.c
===================================================================
--- linux4palm/linux/trunk/drivers/bluetooth/bcm2035_uart.c (rev 0)
+++ linux4palm/linux/trunk/drivers/bluetooth/bcm2035_uart.c 2007-05-01 18:13:50 UTC (rev 966)
@@ -0,0 +1,118 @@
+/* Bluetooth support driver for Broadcom Blutonium BCM2035 chip via UART
+ *
+ * Author: Jan Herman <2h...@se...>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+
+#include <linux/module.h>
+#include <linux/kernel.h>
+#include <linux/delay.h>
+#include <linux/platform_device.h>
+#include <linux/fs.h>
+
+#include <asm/hardware.h>
+#include <asm/arch/serial.h>
+
+//#define BCM2035_DEBUG
+
+struct bcm2035_bt_funcs {
+ void (*configure) ( int state );
+};
+
+static void bcm2035_bt_configure( int state )
+{
+ printk( KERN_NOTICE "bcm2035: Configure bluetooth: %d\n", state );
+ switch (state) {
+
+ case PXA_UART_CFG_POST_STARTUP:
+#ifdef BCM2035_DEBUG
+ printk( KERN_NOTICE "DEBUG bcm2035: UART_PRE_STARTUP\n");
+#endif
+ //bcm2035_bt_reset(0);
+ //bcm2035_bt_wakeup(0);
+ //bcm2035_bt_reset(1);
+
+
+ break;
+
+ case PXA_UART_CFG_POST_SHUTDOWN:
+
+#ifdef BCM2035_DEBUG
+ printk( KERN_NOTICE "DEBUG bcm2035: UART_POST_SHUTDOWN");
+#endif
+ //bcm2035_bt_reset(0);
+ break;
+
+ default:
+ break;
+ }
+}
+
+
+static int bcm2035_bt_probe( struct platform_device *pdev )
+{
+ struct bcm2035_bt_funcs *funcs = pdev->dev.platform_data;
+
+ /* power ON chip */
+ bcm2035_bt_power(1);
+ bcm2035_bt_reset(1);
+
+ funcs->configure = bcm2035_bt_configure;
+
+ return 0;
+}
+
+static int bcm2035_bt_remove( struct platform_device *pdev )
+{
+ struct bcm2035_bt_funcs *funcs = pdev->dev.platform_data;
+
+ funcs->configure = NULL;
+
+ /* power OFF chip */
+ bcm2035_bt_power(0);
+ bcm2035_bt_reset(0);
+
+ printk( KERN_NOTICE "bcm2035: Bluetooth driver removed\n");
+
+ return 0;
+}
+
+static struct platform_driver bt_driver = {
+ .driver = {
+ .name = "bcm2035-bt",
+ },
+ .probe = bcm2035_bt_probe,
+ .remove = bcm2035_bt_remove,
+};
+
+static int bcm2035_bt_init( void )
+{
+ printk(KERN_NOTICE "bcm2035: Bluetooth driver registered\n");
+ return platform_driver_register( &bt_driver );
+}
+
+static void bcm2035_bt_exit( void )
+{
+ platform_driver_unregister( &bt_driver );
+}
+
+module_init( bcm2035_bt_init );
+module_exit( bcm2035_bt_exit );
+
+MODULE_AUTHOR("Jan Herman <2h...@se...>");
+MODULE_DESCRIPTION("BCM2035 Bluetooth power support driver");
+MODULE_LICENSE("GPL");
Property changes on: linux4palm/linux/trunk/drivers/bluetooth/bcm2035_uart.c
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <z7...@us...> - 2007-05-01 18:08:27
|
Revision: 965
http://svn.sourceforge.net/hackndev/?rev=965&view=rev
Author: z72ka
Date: 2007-05-01 11:08:03 -0700 (Tue, 01 May 2007)
Log Message:
-----------
palmz72: Added symbols for bluetooth bcm2035_uart driver
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-05-01 15:31:44 UTC (rev 964)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmz72/palmz72.c 2007-05-01 18:08:03 UTC (rev 965)
@@ -242,6 +242,56 @@
.transceiver_mode = palmz72_irda_transceiver_mode,
};
+/*************
+ * Bluetooth *
+ *************/
+
+void bcm2035_bt_reset(int on)
+{
+ printk(KERN_NOTICE "Switch BT reset %d\n", on);
+ if (on)
+ SET_PALMZ72_GPIO( BT_RESET, 1 );
+ else
+ SET_PALMZ72_GPIO( BT_RESET, 0 );
+}
+EXPORT_SYMBOL(bcm2035_bt_reset);
+
+void bcm2035_bt_power(int on)
+{
+ printk(KERN_NOTICE "Switch BT power %d\n", on);
+ if (on)
+ SET_PALMZ72_GPIO( BT_POWER, 1 );
+ else
+ SET_PALMZ72_GPIO( BT_POWER, 0 );
+}
+EXPORT_SYMBOL(bcm2035_bt_power);
+
+
+struct bcm2035_bt_funcs {
+ void (*configure) ( int state );
+};
+
+static struct bcm2035_bt_funcs bt_funcs;
+
+static void
+bcm2035_bt_configure( int state )
+{
+ if (bt_funcs.configure != NULL)
+ bt_funcs.configure( state );
+}
+
+static struct platform_pxa_serial_funcs bcm2035_pxa_bt_funcs = {
+ .configure = bcm2035_bt_configure,
+};
+
+static struct platform_device bcm2035_bt = {
+ .name = "bcm2035-bt",
+ .id = -1,
+ .dev = {
+ .platform_data = &bt_funcs,
+ },
+};
+
/*************************
* AC97 audio controller *
*************************/
@@ -352,7 +402,8 @@
#ifdef CONFIG_GPIO_KEYS
&palmz72_pxa_keys,
#endif
- &palmz72_led_device,
+ &palmz72_led_device,
+ &bcm2035_bt,
};
static void __init palmz72_init(void)
@@ -382,6 +433,7 @@
}
set_pxa_fb_info( &palmz72_lcd_screen );
+ pxa_set_btuart_info(&bcm2035_pxa_bt_funcs);
pxa_set_mci_info( &palmz72_mci_platform_data );
pxa_set_udc_info( &palmz72_udc_mach_info );
pxa_set_ficp_info( &palmz72_ficp_platform_data );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-05-01 15:31:46
|
Revision: 964
http://svn.sourceforge.net/hackndev/?rev=964&view=rev
Author: marex_z71
Date: 2007-05-01 08:31:44 -0700 (Tue, 01 May 2007)
Log Message:
-----------
l4p: fix what previous commit screwed, make a few things look better
Modified Paths:
--------------
linux4palm/linux/trunk/Makefile
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650.c
linux4palm/linux/trunk/drivers/misc/Kconfig
linux4palm/linux/trunk/drivers/misc/Makefile
linux4palm/linux/trunk/drivers/video/logo/Makefile
Modified: linux4palm/linux/trunk/Makefile
===================================================================
--- linux4palm/linux/trunk/Makefile 2007-05-01 14:43:07 UTC (rev 963)
+++ linux4palm/linux/trunk/Makefile 2007-05-01 15:31:44 UTC (rev 964)
@@ -183,7 +183,7 @@
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
ARCH := arm
-CROSS_COMPILE ?= arm-none-eabi-
+CROSS_COMPILE ?= arm-softfloat-linux-gnu-
# Architecture as present in compile.h
UTS_MACHINE := $(ARCH)
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650.c 2007-05-01 14:43:07 UTC (rev 963)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650.c 2007-05-01 15:31:44 UTC (rev 964)
@@ -149,7 +149,8 @@
static int udc_is_connected(void)
{
- return 1111;//GPLR(GPIO_PALMLD_USB_DETECT) & GPIO_bit(GPIO_PALMLD_USB_DETECT);
+ return 1111; /* GPLR(GPIO_PALMLD_USB_DETECT) &
+ GPIO_bit(GPIO_PALMLD_USB_DETECT); */
}
static void udc_enable(int cmd)
@@ -184,69 +185,69 @@
.nr_cols = 7,
.keycodes = {
{ /* row 0 */
- KEY_O, // "O"
- KEY_DOWN, // "5-Way Left" },
- -1, // "Alternate" },
- KEY_L, // "L" },
- KEY_A, // "A" },
- KEY_Q, // "Q" },
- KEY_RIGHTCTRL, // "Right Shift" },
+ KEY_O, /* "O" */
+ KEY_DOWN, /* "5-Way Left" */
+ -1, /* "Alternate" */
+ KEY_L, /* "L" */
+ KEY_A, /* "A" */
+ KEY_Q, /* "Q" */
+ KEY_RIGHTCTRL, /* "Right Shift" */
}, { /* row 1 */
- KEY_P, // "P" },
- KEY_UP, // "5-Way Right" },
- KEY_LEFTSHIFT, //"Left Shift" },
- KEY_Z, // "Z" },
- KEY_S, // "S" },
- KEY_W, // "W" },
- -1, // "Unused" },
+ KEY_P, /* "P" */
+ KEY_UP, /* "5-Way Right" */
+ KEY_LEFTSHIFT, /* "Left Shift" */
+ KEY_Z, /* "Z" */
+ KEY_S, /* "S" */
+ KEY_W, /* "W" */
+ -1, /* "Unused" */
}, { /* row 2 */
- -1, // "Phone" },
- KEY_LEFT, // "5-Way Up" },
- KEY_0, // "0" },
- KEY_X, // "X" },
- KEY_D, // "D" },
- KEY_E, // "E" },
- -1, // "Unused" },
+ -1, /* "Phone" */
+ KEY_LEFT, /* "5-Way Up" */
+ KEY_0, /* "0" */
+ KEY_X, /* "X" */
+ KEY_D, /* "D" */
+ KEY_E, /* "E" */
+ -1, /* "Unused" */
}, { /* row 3 */
- KEY_F10, // "Calendar" },
- KEY_RIGHT, // "5-Way Down" },
- KEY_SPACE, // "Space" },
- KEY_C, // "C" },
- KEY_F, // "F" },
- KEY_R, // "R" },
- -1, // "Unused" },
+ KEY_F10, /* "Calendar" */
+ KEY_RIGHT, /* "5-Way Down" */
+ KEY_SPACE, /* "Space" */
+ KEY_C, /* "C" */
+ KEY_F, /* "F" */
+ KEY_R, /* "R" */
+ -1, /* "Unused" */
}, { /* row 4 */
- KEY_F12, // "Mail" },
- KEY_ENTER, // "5-Way Center" },
- KEY_F9, // "HOME" },
- KEY_V, // "V" },
- KEY_G, // "G" },
- KEY_T, // "T" },
- -1, // "Unused" },
+ KEY_F12, /* "Mail" */
+ KEY_ENTER, /* "5-Way Center" */
+ KEY_F9, /* "HOME" */
+ KEY_V, /* "V" */
+ KEY_G, /* "G" */
+ KEY_T, /* "T" */
+ -1, /* "Unused" */
}, { /* row 5 */
- -1, // "Off" },
- KEY_VOLUMEUP, // "Volume Up" },
- KEY_DOT, // "." },
- KEY_B, // "B" },
- KEY_H, // "H" },
- KEY_Y, // "Y" },
- -1, // "Unused" },
+ -1, /* "Off" */
+ KEY_VOLUMEUP, /* "Volume Up" */
+ KEY_DOT, /* "." */
+ KEY_B, /* "B" */
+ KEY_H, /* "H" */
+ KEY_Y, /* "Y" */
+ -1, /* "Unused" */
}, { /* row 6 */
- KEY_F11, // "Mute" },
- KEY_VOLUMEDOWN, // "Volume Down" },
- KEY_ENTER, // "Return" },
- KEY_N, // "N" },
- KEY_J, // "J" },
- KEY_U, // "U" },
- -1, // "Unused" },
+ KEY_F11, /* "Mute" */
+ KEY_VOLUMEDOWN, /* "Volume Down" */
+ KEY_ENTER, /* "Return" */
+ KEY_N, /* "N" */
+ KEY_J, /* "J" */
+ KEY_U, /* "U" */
+ -1, /* "Unused" */
}, { /* row 7 */
- KEY_RIGHTALT, // "Alt" },
- -1, // "Unused" },
- KEY_BACKSPACE, // "P" },
- KEY_M, // "M"
- KEY_K, // "K"
- KEY_I, // "I"
- -1, // "Unused" },
+ KEY_RIGHTALT, /* "Alt" */
+ -1, /* "Unused" */
+ KEY_BACKSPACE, /* "P" */
+ KEY_M, /* "M"*/
+ KEY_K, /* "K"*/
+ KEY_I, /* "I"*/
+ -1, /* "Unused" */
},
},
@@ -299,8 +300,8 @@
.vsync_len = 1,
/* fixme: these are the margins PalmOS has set,
- * they seem to work but could be better.
- */
+ * they seem to work but could be better.
+ */
.left_margin = 20,
.right_margin = 8,
.upper_margin = 8,
@@ -311,9 +312,9 @@
static struct pxafb_mach_info palmt650_lcd __initdata = {
.lccr0 = 0x4000080,
.lccr3 = 0x4700003,
- //.pxafb_backlight_power = palm_backlight_power,
- //
- //
+
+ /* .pxafb_backlight_power = palm_backlight_power, */
+
.num_modes = 1,
.modes = &palmt650_lcd_mode,
};
@@ -343,8 +344,8 @@
pxa_set_udc_info( &palmt650_udc_mach_info );
platform_add_devices(devices, ARRAY_SIZE(devices));
+#if 0
/* configure power switch to resume from standby */
-#if 0
PWER |= PWER_GPIO12;
PRER |= PWER_GPIO12;
#endif
Modified: linux4palm/linux/trunk/drivers/misc/Kconfig
===================================================================
--- linux4palm/linux/trunk/drivers/misc/Kconfig 2007-05-01 14:43:07 UTC (rev 963)
+++ linux4palm/linux/trunk/drivers/misc/Kconfig 2007-05-01 15:31:44 UTC (rev 964)
@@ -34,13 +34,6 @@
Say Y here to enable monitoring of battery and charger using
sysfs interface.
-config ASIC6ED
- tristate "ASIC6ED"
- depends on ARCH_PXA
- default n
- help
- ASIC6 register editor, only for debugging or testing!!!
-
config GPIOED
tristate "GPIOED"
depends on ARCH_PXA
Modified: linux4palm/linux/trunk/drivers/misc/Makefile
===================================================================
--- linux4palm/linux/trunk/drivers/misc/Makefile 2007-05-01 14:43:07 UTC (rev 963)
+++ linux4palm/linux/trunk/drivers/misc/Makefile 2007-05-01 15:31:44 UTC (rev 964)
@@ -15,7 +15,6 @@
obj-$(CONFIG_BATTCHARGE_MONITOR) += battchargemon.o
obj-$(CONFIG_GPIOED) += gpioed.o
obj-$(CONFIG_GPIOEDNG) += gpioed-ng.o
-obj-$(CONFIG_ASIC6ED) += asic6ed.o
obj-$(CONFIG_MCP) += mcp-core.o
obj-$(CONFIG_MCP_SA1100) += mcp-sa1100.o
Modified: linux4palm/linux/trunk/drivers/video/logo/Makefile
===================================================================
--- linux4palm/linux/trunk/drivers/video/logo/Makefile 2007-05-01 14:43:07 UTC (rev 963)
+++ linux4palm/linux/trunk/drivers/video/logo/Makefile 2007-05-01 15:31:44 UTC (rev 964)
@@ -13,6 +13,7 @@
obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o
obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o
obj-$(CONFIG_LOGO_M32R_CLUT224) += logo_m32r_clut224.o
+
# How to generate logo's
# Use logo-cfiles to retrieve list of .c files to be built
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pet...@us...> - 2007-05-01 14:43:11
|
Revision: 963
http://svn.sourceforge.net/hackndev/?rev=963&view=rev
Author: petrblaha
Date: 2007-05-01 07:43:07 -0700 (Tue, 01 May 2007)
Log Message:
-----------
Modified Paths:
--------------
linux4palm/linux/trunk/Makefile
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/Kconfig
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/Makefile
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650.c
linux4palm/linux/trunk/arch/arm/mach-pxa/pxa27x.c
linux4palm/linux/trunk/drivers/leds/leds-palmt650.c
linux4palm/linux/trunk/drivers/misc/Kconfig
linux4palm/linux/trunk/drivers/misc/Makefile
linux4palm/linux/trunk/drivers/video/logo/Makefile
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h
Added Paths:
-----------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650_pm.c
Modified: linux4palm/linux/trunk/Makefile
===================================================================
--- linux4palm/linux/trunk/Makefile 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/Makefile 2007-05-01 14:43:07 UTC (rev 963)
@@ -183,7 +183,7 @@
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
ARCH := arm
-CROSS_COMPILE ?= arm-softfloat-linux-gnu-
+CROSS_COMPILE ?= arm-none-eabi-
# Architecture as present in compile.h
UTS_MACHINE := $(ARCH)
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/Kconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/Kconfig 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/Kconfig 2007-05-01 14:43:07 UTC (rev 963)
@@ -6,3 +6,9 @@
Palm Treo 650. Currently there is only basic support
for this PDA.
+config MACH_XSCALE_PALMTREO650_PM
+ tristate "Palm Treo 650 Power Management support"
+ depends on MACH_XSCALE_PALMTREO650
+ default y if MACH_XSCALE_PALMTREO650
+ help
+ Enables support for suspend/resume the PalmOne treo 650.
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/Makefile
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/Makefile 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/Makefile 2007-05-01 14:43:07 UTC (rev 963)
@@ -2,5 +2,5 @@
# Makefile for Palm Treo 650 support
#
-obj-$(CONFIG_MACH_XSCALE_PALMTREO650) += palmt650.o
-
+obj-$(CONFIG_MACH_XSCALE_PALMTREO650) += palmt650.o
+obj-$(CONFIG_MACH_XSCALE_PALMTREO650_PM) += palmt650_pm.o
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650.c 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650.c 2007-05-01 14:43:07 UTC (rev 963)
@@ -96,9 +96,7 @@
static void palmt650_irda_transceiver_mode(struct device *dev, int mode)
{
-#if 0
- SET_PALMT650_GPIO(IRDA_SD, mode & IR_OFF);
-#endif
+/* SET_PALMT650_GPIO(IRDA_SD, mode & IR_OFF); */
}
static struct pxaficp_platform_data palmt650_ficp_platform_data = {
@@ -109,7 +107,6 @@
/*********************************************************
* LEDs
*********************************************************/
-
static struct platform_device palmt650_led = {
.name = "palmt650-led",
.id = -1,
@@ -188,68 +185,68 @@
.keycodes = {
{ /* row 0 */
KEY_O, // "O"
- KEY_LEFT, // "5-Way Left" },
- KEY_RIGHTSHIFT, // "Alternate" },
+ KEY_DOWN, // "5-Way Left" },
+ -1, // "Alternate" },
KEY_L, // "L" },
KEY_A, // "A" },
KEY_Q, // "Q" },
- KEY_RIGHTCTRL, // "Right Shift" },
+ KEY_RIGHTCTRL, // "Right Shift" },
}, { /* row 1 */
KEY_P, // "P" },
- KEY_RIGHT, // "5-Way Right" },
+ KEY_UP, // "5-Way Right" },
KEY_LEFTSHIFT, //"Left Shift" },
KEY_Z, // "Z" },
KEY_S, // "S" },
KEY_W, // "W" },
- -1, // "Unused" },
+ -1, // "Unused" },
}, { /* row 2 */
- KEY_F1, // "Phone" },
- KEY_UP, // "5-Way Up" },
+ -1, // "Phone" },
+ KEY_LEFT, // "5-Way Up" },
KEY_0, // "0" },
KEY_X, // "X" },
KEY_D, // "D" },
KEY_E, // "E" },
- -1, // "Unused" },
+ -1, // "Unused" },
}, { /* row 3 */
- KEY_F2, // "Calendar" },
- KEY_DOWN, // "5-Way Down" },
- KEY_SPACE, // "Space" },
+ KEY_F10, // "Calendar" },
+ KEY_RIGHT, // "5-Way Down" },
+ KEY_SPACE, // "Space" },
KEY_C, // "C" },
KEY_F, // "F" },
KEY_R, // "R" },
- -1, // "Unused" },
+ -1, // "Unused" },
}, { /* row 4 */
- KEY_F3, // "Mail" },
- KEY_SELECT, // "5-Way Center" },
- KEY_HOME, // "Unused" },
+ KEY_F12, // "Mail" },
+ KEY_ENTER, // "5-Way Center" },
+ KEY_F9, // "HOME" },
KEY_V, // "V" },
KEY_G, // "G" },
KEY_T, // "T" },
- -1, // "Unused" },
+ -1, // "Unused" },
}, { /* row 5 */
- KEY_F4, // "Off" },
+ -1, // "Off" },
KEY_VOLUMEUP, // "Volume Up" },
- KEY_DOT, // "." },
+ KEY_DOT, // "." },
KEY_B, // "B" },
KEY_H, // "H" },
KEY_Y, // "Y" },
- -1, // "Unused" },
+ -1, // "Unused" },
}, { /* row 6 */
- KEY_F5, // "Mute" },
+ KEY_F11, // "Mute" },
KEY_VOLUMEDOWN, // "Volume Down" },
- KEY_KPENTER, // "Return" },
+ KEY_ENTER, // "Return" },
KEY_N, // "N" },
KEY_J, // "J" },
KEY_U, // "U" },
- -1, // "Unused" },
+ -1, // "Unused" },
}, { /* row 7 */
KEY_RIGHTALT, // "Alt" },
- KEY_MENU, // "Unused" },
- KEY_BACKSPACE, // "P" },
+ -1, // "Unused" },
+ KEY_BACKSPACE, // "P" },
KEY_M, // "M"
KEY_K, // "K"
KEY_I, // "I"
- -1, // "Unused" },
+ -1, // "Unused" },
},
},
@@ -282,7 +279,9 @@
static struct platform_device *devices[] __initdata = {
- &palmt650_kbd, &palmt650_ac97, &palmt650_bl,
+ &palmt650_kbd,
+ &palmt650_ac97,
+ &palmt650_bl,
&palmt650_led,
};
@@ -344,8 +343,8 @@
pxa_set_udc_info( &palmt650_udc_mach_info );
platform_add_devices(devices, ARRAY_SIZE(devices));
-#if 0
/* configure power switch to resume from standby */
+#if 0
PWER |= PWER_GPIO12;
PRER |= PWER_GPIO12;
#endif
@@ -360,4 +359,3 @@
.timer = &pxa_timer,
.init_machine = palmt650_init,
MACHINE_END
-
Added: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650_pm.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650_pm.c (rev 0)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt650/palmt650_pm.c 2007-05-01 14:43:07 UTC (rev 963)
@@ -0,0 +1,134 @@
+/************************************************************************
+ * PalmOne Zire72 suspend/resume support *
+ * *
+ * Authors: Jan Herman <2h...@se...> *
+ * Sergey Lapin <sla...@gm...> *
+ * *
+ * 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. *
+ * *
+ ************************************************************************/
+
+#include <linux/kernel.h>
+#include <linux/device.h>
+#include <linux/pm.h>
+#include <linux/fb.h>
+#include <linux/platform_device.h>
+#include <asm/mach-types.h>
+#include <asm/hardware.h>
+
+#include <asm/arch/pm.h>
+#include <asm/arch/pxa-pm_ll.h>
+#include <asm/arch/hardware.h>
+#include <asm/arch/pxa-regs.h>
+
+#include <asm/arch/palmt650-gpio.h>
+#include <asm/arch/pxa27x_keyboard.h>
+
+#ifdef CONFIG_PM
+static int palmt650_suspend(struct device *dev, pm_message_t state)
+{
+ /* Wake-Up on RTC event, etc. */
+ PWER |= PWER_RTC | PWER_WEP1;
+
+ /* Wakeup by keyboard :) */
+ PKWR = 0xe0000;
+
+ /* Enabled Deep-Sleep mode */
+ PCFR |= PCFR_DS;
+
+ /* Low power mode */
+ PCFR |= PCFR_OPDE;
+
+ /* 3.6.8.1 */
+ while(!(OSCC & OSCC_OOK))
+ {}
+
+ /* Turn off LCD power */
+ SET_PALMT650_GPIO(LCD_POWER,0);
+ /* Turn screen off */
+ SET_PALMT650_GPIO(LCD_SCREEN,0);
+ /* Turn off USB power */
+/* SET_PALMT650_GPIO(USB_POWER,0); */
+
+
+ /* disable GPIO reset - DO NOT REMOVE! */
+ PCFR = PCFR_GPROD;
+/* PCFR &= PCFR_GPR_EN; */
+
+ return 0;
+}
+
+static int palmt650_resume(struct device *dev)
+{
+
+ /* Disabled Deep-Sleep mode ?? */
+ PCFR &= PCFR_DS;
+
+ /* Re-enable GPIO reset */
+ PCFR |= PCFR_GPR_EN; /* !! DO NOT REMOVE !! THIS IS NECCESARY FOR ENABLE PALM RESET !! */
+
+
+ /* Here are all of special to resume PalmOne treo 650 */
+
+ /* Turn on LCD power */
+ SET_PALMT650_GPIO(LCD_POWER,1);
+ /* Turn screen on */
+ SET_PALMT650_GPIO(LCD_SCREEN,1);
+ /* Turn on USB power */
+/* SET_PALMT650_GPIO(USB_POWER,1); */
+
+ return 0;
+}
+#else
+#define palmt650_suspend NULL
+#define palmt650_resume NULL
+#endif
+
+static void palmt650_pxa_ll_pm_suspend(unsigned long resume_addr)
+{
+ /* For future */
+ return;
+}
+
+static void palmt650_pxa_ll_pm_resume(void)
+{
+ /* For future */
+}
+
+struct pxa_ll_pm_ops palmt650_ll_pm_ops = {
+ .suspend = palmt650_pxa_ll_pm_suspend,
+ .resume = palmt650_pxa_ll_pm_resume,
+};
+
+static int palmt650_pm_probe(struct device *dev)
+{
+ printk(KERN_NOTICE "PalmOne Treo 650 power management driver registered\n");
+ return 0;
+}
+
+struct device_driver palmt650_pm_driver = {
+ .name = "palmt650-pm",
+ .bus = &platform_bus_type,
+ .probe = palmt650_pm_probe,
+ .suspend = palmt650_suspend,
+ .resume = palmt650_resume,
+};
+
+static int __init palmt650_pm_init(void)
+{
+ return driver_register(&palmt650_pm_driver);
+}
+
+static void __exit palmt650_pm_exit(void)
+{
+ driver_unregister(&palmt650_pm_driver);
+}
+
+module_init(palmt650_pm_init);
+module_exit(palmt650_pm_exit);
+
+MODULE_AUTHOR("Jan Herman <2h...@se...>, Sergey Lapin <sla...@gm...>");
+MODULE_DESCRIPTION("PalmOne Treo 650 power management driver");
+MODULE_LICENSE("GPL");
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/pxa27x.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/pxa27x.c 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/pxa27x.c 2007-05-01 14:43:07 UTC (rev 963)
@@ -139,7 +139,8 @@
extern void pxa_cpu_standby(void);
extern void pxa_cpu_suspend(unsigned int);
#if defined(CONFIG_MACH_XSCALE_PALMLD) || defined(CONFIG_MACH_XSCALE_PALMTX) \
- || defined(CONFIG_MACH_PALMZ72) || defined(CONFIG_MACH_XSCALE_PALMTT5)
+ || defined(CONFIG_MACH_PALMZ72) || defined(CONFIG_MACH_XSCALE_PALMTT5) \
+ || defined(CONFIG_MACH_XSCALE_PALMTREO650)
/* For safety. suspend_mem puts the device in an unresetable state.
* On TX one needs to desolder the battery to get out of it.
*/
Modified: linux4palm/linux/trunk/drivers/leds/leds-palmt650.c
===================================================================
--- linux4palm/linux/trunk/drivers/leds/leds-palmt650.c 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/drivers/leds/leds-palmt650.c 2007-05-01 14:43:07 UTC (rev 963)
@@ -7,7 +7,6 @@
*
*/
-#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
@@ -97,6 +96,7 @@
};
#ifdef CONFIG_PM
+
static int palmt650_led_suspend(struct platform_device *dev, pm_message_t state)
{
led_classdev_suspend(&palmt650_green_led);
@@ -148,10 +148,12 @@
asic6_write(0x12, 0xe3);
/* FIXME: should be moved to seperate phone driver */
+/*
printk("Attempting to reset phone module...\n");
asic6_write(0x48, asic6_read(0x48) & ~0x40);
msleep(5);
asic6_write(0x48, asic6_read(0x48) | 0x40);
+*/
return ret;
vibra_err:
Modified: linux4palm/linux/trunk/drivers/misc/Kconfig
===================================================================
--- linux4palm/linux/trunk/drivers/misc/Kconfig 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/drivers/misc/Kconfig 2007-05-01 14:43:07 UTC (rev 963)
@@ -34,6 +34,13 @@
Say Y here to enable monitoring of battery and charger using
sysfs interface.
+config ASIC6ED
+ tristate "ASIC6ED"
+ depends on ARCH_PXA
+ default n
+ help
+ ASIC6 register editor, only for debugging or testing!!!
+
config GPIOED
tristate "GPIOED"
depends on ARCH_PXA
Modified: linux4palm/linux/trunk/drivers/misc/Makefile
===================================================================
--- linux4palm/linux/trunk/drivers/misc/Makefile 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/drivers/misc/Makefile 2007-05-01 14:43:07 UTC (rev 963)
@@ -15,6 +15,7 @@
obj-$(CONFIG_BATTCHARGE_MONITOR) += battchargemon.o
obj-$(CONFIG_GPIOED) += gpioed.o
obj-$(CONFIG_GPIOEDNG) += gpioed-ng.o
+obj-$(CONFIG_ASIC6ED) += asic6ed.o
obj-$(CONFIG_MCP) += mcp-core.o
obj-$(CONFIG_MCP_SA1100) += mcp-sa1100.o
Modified: linux4palm/linux/trunk/drivers/video/logo/Makefile
===================================================================
--- linux4palm/linux/trunk/drivers/video/logo/Makefile 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/drivers/video/logo/Makefile 2007-05-01 14:43:07 UTC (rev 963)
@@ -13,7 +13,6 @@
obj-$(CONFIG_LOGO_SUPERH_VGA16) += logo_superh_vga16.o
obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o
obj-$(CONFIG_LOGO_M32R_CLUT224) += logo_m32r_clut224.o
-
# How to generate logo's
# Use logo-cfiles to retrieve list of .c files to be built
Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h 2007-04-30 11:41:31 UTC (rev 962)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmt650-gpio.h 2007-05-01 14:43:07 UTC (rev 963)
@@ -33,11 +33,14 @@
#define ASIC6_LED2_AUTOSTOP __REG16(0x080000aa)
/* Palm Treo 650 GPIOs */
-#define GPIO_NR_PALMT650_POWER_DETECT 15
+#define GPIO_NR_PALMT650_POWER_DETECT 0
#define GPIO_NR_PALMT650_VIBRATE_EN 26
#define GPIO_NR_PALMT650_SILENT_SWITCH 33
#define GPIO_NR_PALMT650_WM9712_IRQ 90
#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_SCREEN 77
+#define GPIO_NR_PALMT650_USB_DETECT 9
#define GPIO_NR_PALMT650_KP_MKIN0 100
#define GPIO_NR_PALMT650_KP_MKIN1 101
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2007-04-30 11:41:34
|
Revision: 962
http://svn.sourceforge.net/hackndev/?rev=962&view=rev
Author: bobofdoom
Date: 2007-04-30 04:41:31 -0700 (Mon, 30 Apr 2007)
Log Message:
-----------
Added very brief compile instructions.
Modified Paths:
--------------
cocoboot/trunk/README
Modified: cocoboot/trunk/README
===================================================================
--- cocoboot/trunk/README 2007-04-23 21:21:25 UTC (rev 961)
+++ cocoboot/trunk/README 2007-04-30 11:41:31 UTC (rev 962)
@@ -13,7 +13,13 @@
http://www.hackndev.com/
+Compiling:
+You will need prc-tools, pilrc and the Palm OS SDK installed. Then simply
+use "make" to build. You might need to adjust the paths in the Makefile
+if your SDK is in a non-standard place.
+
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sle...@us...> - 2007-04-21 17:16:23
|
Revision: 960
http://svn.sourceforge.net/hackndev/?rev=960&view=rev
Author: sleep_walker
Date: 2007-04-21 10:16:13 -0700 (Sat, 21 Apr 2007)
Log Message:
-----------
l4p: GPIOed-ng now supports TPS65010 GPIOs on T|T3
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/misc/gpioed-ng.c
Modified: linux4palm/linux/trunk/drivers/misc/gpioed-ng.c
===================================================================
--- linux4palm/linux/trunk/drivers/misc/gpioed-ng.c 2007-04-21 07:47:13 UTC (rev 959)
+++ linux4palm/linux/trunk/drivers/misc/gpioed-ng.c 2007-04-21 17:16:13 UTC (rev 960)
@@ -15,6 +15,10 @@
#include <asm/arch/irqs.h>
#include <asm/uaccess.h>
+#ifdef CONFIG_MACH_T3XSCALE
+#include <asm/arch/tps65010.h>
+#endif
+
#include <linux/debugfs.h>
#include <linux/seq_file.h>
@@ -93,6 +97,16 @@
gpio_set(id, 0);
printk(KERN_ERR "GPIOed: GPIO %lu set low\n", id);
break;
+#ifdef CONFIG_MACH_T3XSCALE
+ case 'T':
+ tps65010_set_gpio_out_value(id, 1);
+ printk(KERN_ERR "GPIOed: GPIO %lu set high on TPS65010\n", id);
+ break;
+ case 't':
+ tps65010_set_gpio_out_value(id, 0);
+ printk(KERN_ERR "GPIOed: GPIO %lu set low on TPS65010\n", id);
+ break;
+#endif
case 'd':
GPDR(id) &= ~(GPIO_bit(id));
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-04-21 07:47:16
|
Revision: 959
http://svn.sourceforge.net/hackndev/?rev=959&view=rev
Author: marex_z71
Date: 2007-04-21 00:47:13 -0700 (Sat, 21 Apr 2007)
Log Message:
-----------
PalmLD: prevent WM9712 constantly interrupting the CPU as on other palms
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-04-19 18:09:06 UTC (rev 958)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld.c 2007-04-21 07:47:13 UTC (rev 959)
@@ -362,6 +362,18 @@
static void __init palmld_init(void)
{
+ // disable interrupt to prevent WM9712 constantly interrupting the CPU
+ // and preventing the boot process to complete (Thanx Alex & Shadowmite!)
+
+ GCR &= ~GCR_PRIRDY_IEN;
+
+ // set AC97's GPIOs
+
+ pxa_gpio_mode(GPIO28_BITCLK_AC97_MD);
+ pxa_gpio_mode(GPIO29_SDATA_IN_AC97_MD);
+ pxa_gpio_mode(GPIO30_SDATA_OUT_AC97_MD);
+ pxa_gpio_mode(GPIO31_SYNC_AC97_MD);
+
set_pxa_fb_info( &palmld_lcd_screen );
pxa_set_mci_info( &palmld_mci_platform_data );
platform_add_devices( devices, ARRAY_SIZE(devices) );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-04-19 18:09:09
|
Revision: 958
http://svn.sourceforge.net/hackndev/?rev=958&view=rev
Author: marex_z71
Date: 2007-04-19 11:09:06 -0700 (Thu, 19 Apr 2007)
Log Message:
-----------
PalmTC: Update to 2.6.20 ... most of code updated, ptc_ucb1400 still broken
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc.c
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc_keyboard.c
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/ptc_ucb1400.c
linux4palm/linux/trunk/drivers/usb/gadget/pxa2xx_udc.c
Added Paths:
-----------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtc-gpio.h
linux4palm/linux/trunk/include/asm-arm/arch-pxa/ptc_ucb1400.h
Removed Paths:
-------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc-gpio.h
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/ptc_ucb1400.h
Deleted: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc-gpio.h
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc-gpio.h 2007-04-18 10:12:50 UTC (rev 957)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc-gpio.h 2007-04-19 18:09:06 UTC (rev 958)
@@ -1,26 +0,0 @@
-/*
- * palmtc-gpio.h
- *
- * Authors: Holger Bocklet <bit...@gm...>
- *
- */
-
-#ifndef _PALMTC_GPIO_H_
-#define _PALMTC_GPIO_H_
-
-#include <asm/arch/pxa-regs.h>
-
-/* Palm Tungsten C GPIOs */
-#define GPIO_NR_PALMTC_EARPHONE_DETECT 2
-#define GPIO_NR_PALMLD_USB_DETECT 4
-#define GPIO_NR_PALMLD_POWER_DETECT 5
-#define GPIO_NR_PALMTC_HOTSYNC_BUTTON 7
-#define GPIO_NR_PALMTC_SD_DETECT 12 // low->high wenn out, high->low when inserted
-#define GPIO_NR_PALMLD_BL_POWER 16
-
-//#define GPIO_NR_PALMLD_STD_RXD 46 /* IRDA */
-//#define GPIO_NR_PALMLD_STD_TXD 47
-
-#define IRQ_GPIO_PALMTC_SD_DETECT IRQ_GPIO(GPIO_NR_PALMTC_SD_DETECT)
-
-#endif /* _PALMTC_GPIO_H_ */
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc.c 2007-04-18 10:12:50 UTC (rev 957)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc.c 2007-04-19 18:09:06 UTC (rev 958)
@@ -18,14 +18,15 @@
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/fb.h>
+#include <linux/irq.h>
#include <asm/arch/pxa-dmabounce.h>
#include <asm/arch/pxafb.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/pxapwm-bl.h>
+#include <asm/arch/palmtc-gpio.h>
#include "../generic.h"
-#include "palmtc-gpio.h"
#define DEBUG
@@ -40,28 +41,36 @@
CKEN &= ~CKEN1_PWM1;
}
-static struct pxafb_mach_info palmtclcd __initdata = {
- .pixclock = 0,
- .xres = 320,
- .yres = 320,
- .bpp = 16,
- .hsync_len = 4,
- .left_margin = 30,
- .right_margin = 7,
- .vsync_len = 4,
- .upper_margin = 6,
- .lower_margin = 7,
- .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT,
+static struct pxafb_mode_info palmtc_lcd_modes[] = {
+{
+ /* pixclock is set by lccr3 below */
+ .pixclock = 0,
+ .xres = 320,
+ .yres = 320,
+ .bpp = 16,
+ .hsync_len = 4,
+ .vsync_len = 4,
- .lccr0 = 0x07B008F9,
- .lccr3 = 0x04700004,
+ /* fixme: these are the margins PalmOS has set,
+ * they seem to work but could be better.
+ */
+ .left_margin = 30,
+ .right_margin = 7,
+ .upper_margin = 6,
+ .lower_margin = 7,
+},
+};
+static struct pxafb_mach_info palmtc_lcd_screen = {
+ .modes = palmtc_lcd_modes,
+ .num_modes = ARRAY_SIZE(palmtc_lcd_modes),
+ .lccr0 = 0x07B008F9,
+ .lccr3 = 0x04700004,
+
.pxafb_backlight_power = palmtc_backlight_power,
};
-
-
-static int palmtc_mci_init(struct device *dev, irqreturn_t (*palmtc_detect_int)(int, void *, struct pt_regs *), void *data)
+static int palmtc_mci_init(struct device *dev, irqreturn_t (*palmtc_detect_int)(int, void *), void *data)
{
int err;
@@ -144,7 +153,7 @@
static void __init palmtc_init(void)
{
- set_pxa_fb_info(&palmtclcd);
+ set_pxa_fb_info( &palmtc_lcd_screen );
GCR &= ~GCR_PRIRDY_IEN;
pxa_set_mci_info( &palmtc_mci_platform_data );
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc_keyboard.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc_keyboard.c 2007-04-18 10:12:50 UTC (rev 957)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/palmtc_keyboard.c 2007-04-19 18:09:06 UTC (rev 958)
@@ -20,6 +20,7 @@
#include <linux/delay.h>
#include <linux/reboot.h>
#include <linux/sched.h>
+#include <linux/irq.h>
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
@@ -153,13 +154,13 @@
static spinlock_t kbd_lock = SPIN_LOCK_UNLOCKED;
-static irqreturn_t palmtc_kbd_irq_handler(int irq, void *dev_id, struct pt_regs *regs)
+static irqreturn_t palmtc_kbd_irq_handler(int irq, void *dev_id)
{
queue_work(palmtc_kbd_workqueue, &palmtc_kbd_task);
return IRQ_HANDLED;
}
-static void palmtc_kbd_queuework(void *data)
+static void palmtc_kbd_queuework(struct work_struct *data)
{
unsigned long tdiff_msec, flags;
int gpio, row, col;
@@ -344,7 +345,7 @@
input_register_device(keyboard_dev);
palmtc_kbd_workqueue = create_workqueue("palmtckbdw");
- INIT_WORK(&palmtc_kbd_task, palmtc_kbd_queuework, NULL);
+ INIT_WORK(&palmtc_kbd_task, palmtc_kbd_queuework);
#ifdef USE_RELEASE_TIMER
init_timer (&key_release_timer);
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/ptc_ucb1400.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/ptc_ucb1400.c 2007-04-18 10:12:50 UTC (rev 957)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/ptc_ucb1400.c 2007-04-19 18:09:06 UTC (rev 958)
@@ -23,7 +23,6 @@
#include <linux/jiffies.h>
#include <linux/moduleparam.h>
#include <linux/wait.h>
-#include <linux/config.h>
#include <linux/errno.h>
#include <linux/kthread.h>
#include <linux/workqueue.h>
@@ -32,19 +31,19 @@
#include <linux/ctype.h>
#include <linux/time.h>
#include <linux/mutex.h>
+#include <linux/freezer.h>
#include <asm/delay.h>
#include <asm/arch/hardware.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/irqs.h>
+#include <asm/arch/ptc_ucb1400.h>
#include <asm/apm.h>
#include <sound/driver.h>
#include <sound/core.h>
#include <sound/ac97_codec.h>
-#include "ptc_ucb1400.h"
-
#define PALMTC_UCB_DEBUG
#ifdef PALMTC_UCB_DEBUG
@@ -59,8 +58,8 @@
struct ucb1400 {
- struct device *dev;
- ac97_t *ac97;
+ struct device *dev;
+ ac97_t *ac97;
struct input_dev *idev;
struct task_struct *thread;
//wait_queue_head_t pen_irq_wait;
@@ -531,7 +530,7 @@
}
// ISR for ac97, shared with pxa2xx-ac97, and later with ucb1400-gpio and ucb1400-adc
-static irqreturn_t ucb1400_irq(int irqnr, void *devid, struct pt_regs *regs)
+static irqreturn_t ucb1400_irq(int irqnr, void *devid)
{
u32 status;
struct ucb1400 *ucb = (struct ucb1400 *) devid;
@@ -549,7 +548,7 @@
}
-static void palmtc_ucb1400_irq_queuework(void *data)
+static void palmtc_ucb1400_irq_queuework(struct work_struct *data)
{
struct ucb1400 *ucb = (struct ucb1400 *) data;
u16 val,val1,val2;
@@ -693,7 +692,7 @@
input_set_abs_params(ucb->idev, ABS_PRESSURE, UCB_TS_PRESSURE_MIN, UCB_TS_PRESSURE_MAX, 1, 1);
ucb->idev->name = "Palm Tungsten C touchscreen (ucb1400)";
- ucb->idev->dev = dev;
+/* ucb->idev->dev = dev; */
input_register_device(ucb->idev);
// clear ucb1400-ints if there are
@@ -726,7 +725,7 @@
}
// init workqueue for irq-handling
ucb->palmtc_ucb1400_workqueue = create_workqueue("kpalmtcucbw");
- INIT_WORK(&ucb->palmtc_ucb1400_work, palmtc_ucb1400_irq_queuework, ucb);
+ INIT_WORK(&ucb->palmtc_ucb1400_work, palmtc_ucb1400_irq_queuework);
//adc
val=ucb1400_reg_read(ucb, UCB_CSR2);
Deleted: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/ptc_ucb1400.h
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/ptc_ucb1400.h 2007-04-18 10:12:50 UTC (rev 957)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtc/ptc_ucb1400.h 2007-04-19 18:09:06 UTC (rev 958)
@@ -1,122 +0,0 @@
-/*
- * linux/drivers/mfd/ucb1400.h
- *
- * Copyright (C) 2001 Russell King, All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License.
- */
-
-/* ucb1400 aclink register mappings: */
-
-#define UCB_IO_DATA 0x5a
-#define UCB_IO_DIR 0x5c
-#define UCB_IE_RIS 0x5e
-#define UCB_IE_FAL 0x60
-#define UCB_IE_STATUS 0x62
-#define UCB_IE_CLEAR 0x62
-#define UCB_TS_CR 0x64
-#define UCB_ADC_CR 0x66
-#define UCB_ADC_DATA 0x68
-#define UCB_CSR1 0x6a
-#define UCB_CSR2 0x6c
-#define UCB_IE_EXTRA 0x70
-
-#define UCB_CS_GPIO_AC97_INT (1 << 2)
-
-#define UCB_ADC_DAT(x) ((x) & 0x3ff)
-
-#define UCB_IO_0 (1 << 0)
-#define UCB_IO_1 (1 << 1)
-#define UCB_IO_2 (1 << 2)
-#define UCB_IO_3 (1 << 3)
-#define UCB_IO_4 (1 << 4)
-#define UCB_IO_5 (1 << 5)
-#define UCB_IO_6 (1 << 6)
-#define UCB_IO_7 (1 << 7)
-#define UCB_IO_8 (1 << 8)
-#define UCB_IO_9 (1 << 9)
-
-#define UCB_IE_ADC (1 << 11)
-#define UCB_IE_TSPX (1 << 12)
-#define UCB_IE_TSMX (1 << 13)
-#define UCB_IE_TCLIP (1 << 14)
-#define UCB_IE_ACLIP (1 << 15)
-#define UCB_IE_IO (0x3FF)
-
-#define UCB_TC_B_VOICE_ENA (1 << 3)
-#define UCB_TC_B_CLIP (1 << 4)
-#define UCB_TC_B_ATT (1 << 6)
-#define UCB_TC_B_SIDE_ENA (1 << 11)
-#define UCB_TC_B_MUTE (1 << 13)
-#define UCB_TC_B_IN_ENA (1 << 14)
-#define UCB_TC_B_OUT_ENA (1 << 15)
-
-#define UCB_AC_B_LOOP (1 << 8)
-#define UCB_AC_B_MUTE (1 << 13)
-#define UCB_AC_B_IN_ENA (1 << 14)
-#define UCB_AC_B_OUT_ENA (1 << 15)
-
-#define UCB_TS_CR_TSMX_POW (1 << 0)
-#define UCB_TS_CR_TSPX_POW (1 << 1)
-#define UCB_TS_CR_TSMY_POW (1 << 2)
-#define UCB_TS_CR_TSPY_POW (1 << 3)
-#define UCB_TS_CR_TSMX_GND (1 << 4)
-#define UCB_TS_CR_TSPX_GND (1 << 5)
-#define UCB_TS_CR_TSMY_GND (1 << 6)
-#define UCB_TS_CR_TSPY_GND (1 << 7)
-#define UCB_TS_CR_MODE_INT (0 << 8)
-#define UCB_TS_CR_MODE_PRES (1 << 8)
-#define UCB_TS_CR_MODE_POS (2 << 8)
-#define UCB_TS_CR_BIAS_ENA (1 << 11)
-#define UCB_TS_CR_TSPX (1 << 12)
-#define UCB_TS_CR_TSMX (1 << 13)
-
-#define UCB_ADC_SYNC_ENA (1 << 0)
-#define UCB_ADC_VREFBYP_CON (1 << 1)
-#define UCB_ADC_INP_TSPX (0 << 2)
-#define UCB_ADC_INP_TSMX (1 << 2)
-#define UCB_ADC_INP_TSPY (2 << 2)
-#define UCB_ADC_INP_TSMY (3 << 2)
-#define UCB_ADC_INP_AD0 (4 << 2)
-#define UCB_ADC_INP_AD1 (5 << 2)
-#define UCB_ADC_INP_AD2 (6 << 2)
-#define UCB_ADC_INP_AD3 (7 << 2)
-#define UCB_ADC_EXT_REF (1 << 5)
-#define UCB_ADC_START (1 << 7)
-#define UCB_ADC_ENA (1 << 15)
-
-#define UCB_ADC_FILTER_ENA (1 << 12)
-
-#define UCB_ADC_DATA_MASK 0x3ff
-#define UCB_ADC_DATA_VALID (1 << 15)
-
-#define UCB_ID_1400 0x4304
-
-#define UCB_MODE 0x0d
-#define UCB_MODE_DYN_VFLAG_ENA (1 << 12)
-#define UCB_MODE_AUD_OFF_CAN (1 << 13)
-
-#define UCB_NOSYNC 0
-#define UCB_SYNC 1
-
-#define UCB_RISING (1 << 0)
-#define UCB_FALLING (1 << 1)
-
-
-// constants on palm tc
-#define UCB_TS_X_MIN 100
-#define UCB_TS_X_MAX 870
-#define UCB_TS_Y_MIN 270
-#define UCB_TS_Y_MAX 970
-#define UCB_TS_PRESSURE_MIN 0
-#define UCB_TS_PRESSURE_MAX 740
-#define UCB_TS_FUZZ 15
-
-#define UCB_BATT_HIGH 560 // adc "ticks" not mV !
-#define UCB_BATT_LOW 490
-#define UCB_BATT_CRITICAL 480
-
-#define UCB_BATT_DURATION 600 // battery duration in minutes
-#define UCB_ADC_TIMEOUT 50
Modified: linux4palm/linux/trunk/drivers/usb/gadget/pxa2xx_udc.c
===================================================================
--- linux4palm/linux/trunk/drivers/usb/gadget/pxa2xx_udc.c 2007-04-18 10:12:50 UTC (rev 957)
+++ linux4palm/linux/trunk/drivers/usb/gadget/pxa2xx_udc.c 2007-04-19 18:09:06 UTC (rev 958)
@@ -2525,7 +2525,7 @@
/*
* probe - binds to the platform device
*/
-static int __init pxa2xx_udc_probe(struct platform_device *pdev)
+static int pxa2xx_udc_probe(struct platform_device *pdev)
{
struct pxa2xx_udc *dev = &memory;
int retval, out_dma = 1, vbus_irq;
@@ -2677,7 +2677,7 @@
pullup_off();
}
-static int __exit pxa2xx_udc_remove(struct platform_device *pdev)
+static int pxa2xx_udc_remove(struct platform_device *pdev)
{
struct pxa2xx_udc *dev = platform_get_drvdata(pdev);
Added: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtc-gpio.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtc-gpio.h (rev 0)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtc-gpio.h 2007-04-19 18:09:06 UTC (rev 958)
@@ -0,0 +1,26 @@
+/*
+ * palmtc-gpio.h
+ *
+ * Authors: Holger Bocklet <bit...@gm...>
+ *
+ */
+
+#ifndef _PALMTC_GPIO_H_
+#define _PALMTC_GPIO_H_
+
+#include <asm/arch/pxa-regs.h>
+
+/* Palm Tungsten C GPIOs */
+#define GPIO_NR_PALMTC_EARPHONE_DETECT 2
+#define GPIO_NR_PALMLD_USB_DETECT 4
+#define GPIO_NR_PALMLD_POWER_DETECT 5
+#define GPIO_NR_PALMTC_HOTSYNC_BUTTON 7
+#define GPIO_NR_PALMTC_SD_DETECT 12 // low->high when out, high->low when inserted
+#define GPIO_NR_PALMLD_BL_POWER 16
+
+//#define GPIO_NR_PALMLD_STD_RXD 46 /* IRDA */
+//#define GPIO_NR_PALMLD_STD_TXD 47
+
+#define IRQ_GPIO_PALMTC_SD_DETECT IRQ_GPIO(GPIO_NR_PALMTC_SD_DETECT)
+
+#endif /* _PALMTC_GPIO_H_ */
Added: linux4palm/linux/trunk/include/asm-arm/arch-pxa/ptc_ucb1400.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/ptc_ucb1400.h (rev 0)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/ptc_ucb1400.h 2007-04-19 18:09:06 UTC (rev 958)
@@ -0,0 +1,122 @@
+/*
+ * linux/drivers/mfd/ucb1400.h
+ *
+ * Copyright (C) 2001 Russell King, All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License.
+ */
+
+/* ucb1400 aclink register mappings: */
+
+#define UCB_IO_DATA 0x5a
+#define UCB_IO_DIR 0x5c
+#define UCB_IE_RIS 0x5e
+#define UCB_IE_FAL 0x60
+#define UCB_IE_STATUS 0x62
+#define UCB_IE_CLEAR 0x62
+#define UCB_TS_CR 0x64
+#define UCB_ADC_CR 0x66
+#define UCB_ADC_DATA 0x68
+#define UCB_CSR1 0x6a
+#define UCB_CSR2 0x6c
+#define UCB_IE_EXTRA 0x70
+
+#define UCB_CS_GPIO_AC97_INT (1 << 2)
+
+#define UCB_ADC_DAT(x) ((x) & 0x3ff)
+
+#define UCB_IO_0 (1 << 0)
+#define UCB_IO_1 (1 << 1)
+#define UCB_IO_2 (1 << 2)
+#define UCB_IO_3 (1 << 3)
+#define UCB_IO_4 (1 << 4)
+#define UCB_IO_5 (1 << 5)
+#define UCB_IO_6 (1 << 6)
+#define UCB_IO_7 (1 << 7)
+#define UCB_IO_8 (1 << 8)
+#define UCB_IO_9 (1 << 9)
+
+#define UCB_IE_ADC (1 << 11)
+#define UCB_IE_TSPX (1 << 12)
+#define UCB_IE_TSMX (1 << 13)
+#define UCB_IE_TCLIP (1 << 14)
+#define UCB_IE_ACLIP (1 << 15)
+#define UCB_IE_IO (0x3FF)
+
+#define UCB_TC_B_VOICE_ENA (1 << 3)
+#define UCB_TC_B_CLIP (1 << 4)
+#define UCB_TC_B_ATT (1 << 6)
+#define UCB_TC_B_SIDE_ENA (1 << 11)
+#define UCB_TC_B_MUTE (1 << 13)
+#define UCB_TC_B_IN_ENA (1 << 14)
+#define UCB_TC_B_OUT_ENA (1 << 15)
+
+#define UCB_AC_B_LOOP (1 << 8)
+#define UCB_AC_B_MUTE (1 << 13)
+#define UCB_AC_B_IN_ENA (1 << 14)
+#define UCB_AC_B_OUT_ENA (1 << 15)
+
+#define UCB_TS_CR_TSMX_POW (1 << 0)
+#define UCB_TS_CR_TSPX_POW (1 << 1)
+#define UCB_TS_CR_TSMY_POW (1 << 2)
+#define UCB_TS_CR_TSPY_POW (1 << 3)
+#define UCB_TS_CR_TSMX_GND (1 << 4)
+#define UCB_TS_CR_TSPX_GND (1 << 5)
+#define UCB_TS_CR_TSMY_GND (1 << 6)
+#define UCB_TS_CR_TSPY_GND (1 << 7)
+#define UCB_TS_CR_MODE_INT (0 << 8)
+#define UCB_TS_CR_MODE_PRES (1 << 8)
+#define UCB_TS_CR_MODE_POS (2 << 8)
+#define UCB_TS_CR_BIAS_ENA (1 << 11)
+#define UCB_TS_CR_TSPX (1 << 12)
+#define UCB_TS_CR_TSMX (1 << 13)
+
+#define UCB_ADC_SYNC_ENA (1 << 0)
+#define UCB_ADC_VREFBYP_CON (1 << 1)
+#define UCB_ADC_INP_TSPX (0 << 2)
+#define UCB_ADC_INP_TSMX (1 << 2)
+#define UCB_ADC_INP_TSPY (2 << 2)
+#define UCB_ADC_INP_TSMY (3 << 2)
+#define UCB_ADC_INP_AD0 (4 << 2)
+#define UCB_ADC_INP_AD1 (5 << 2)
+#define UCB_ADC_INP_AD2 (6 << 2)
+#define UCB_ADC_INP_AD3 (7 << 2)
+#define UCB_ADC_EXT_REF (1 << 5)
+#define UCB_ADC_START (1 << 7)
+#define UCB_ADC_ENA (1 << 15)
+
+#define UCB_ADC_FILTER_ENA (1 << 12)
+
+#define UCB_ADC_DATA_MASK 0x3ff
+#define UCB_ADC_DATA_VALID (1 << 15)
+
+#define UCB_ID_1400 0x4304
+
+#define UCB_MODE 0x0d
+#define UCB_MODE_DYN_VFLAG_ENA (1 << 12)
+#define UCB_MODE_AUD_OFF_CAN (1 << 13)
+
+#define UCB_NOSYNC 0
+#define UCB_SYNC 1
+
+#define UCB_RISING (1 << 0)
+#define UCB_FALLING (1 << 1)
+
+
+// constants on palm tc
+#define UCB_TS_X_MIN 100
+#define UCB_TS_X_MAX 870
+#define UCB_TS_Y_MIN 270
+#define UCB_TS_Y_MAX 970
+#define UCB_TS_PRESSURE_MIN 0
+#define UCB_TS_PRESSURE_MAX 740
+#define UCB_TS_FUZZ 15
+
+#define UCB_BATT_HIGH 560 // adc "ticks" not mV !
+#define UCB_BATT_LOW 490
+#define UCB_BATT_CRITICAL 480
+
+#define UCB_BATT_DURATION 600 // battery duration in minutes
+#define UCB_ADC_TIMEOUT 50
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mar...@us...> - 2007-04-18 10:12:53
|
Revision: 957
http://svn.sourceforge.net/hackndev/?rev=957&view=rev
Author: marex_z71
Date: 2007-04-18 03:12:50 -0700 (Wed, 18 Apr 2007)
Log Message:
-----------
PalmT5: Update PM, minor cleanups
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/configs/palmt5_defconfig
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/Kconfig
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/Makefile
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmt5_pm.c
Removed Paths:
-------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmld_ac97.c
Modified: linux4palm/linux/trunk/arch/arm/configs/palmt5_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmt5_defconfig 2007-04-17 21:02:47 UTC (rev 956)
+++ linux4palm/linux/trunk/arch/arm/configs/palmt5_defconfig 2007-04-18 10:12:50 UTC (rev 957)
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.20-hnd0
-# Tue Apr 17 21:06:28 2007
+# Wed Apr 18 11:05:47 2007
#
CONFIG_ARM=y
# CONFIG_GENERIC_TIME is not set
@@ -24,18 +24,20 @@
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
+CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
#
# General setup
#
CONFIG_LOCALVERSION=""
-# CONFIG_LOCALVERSION_AUTO is not set
+CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_IPC_NS is not set
-# CONFIG_POSIX_MQUEUE is not set
-# CONFIG_BSD_PROCESS_ACCT is not set
+CONFIG_POSIX_MQUEUE=y
+CONFIG_BSD_PROCESS_ACCT=y
+# CONFIG_BSD_PROCESS_ACCT_V3 is not set
# CONFIG_TASKSTATS is not set
# CONFIG_UTS_NS is not set
# CONFIG_AUDIT is not set
@@ -45,7 +47,7 @@
# CONFIG_INITRAMFS_SOURCE is not set
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL=y
-# CONFIG_EMBEDDED is not set
+CONFIG_EMBEDDED=y
CONFIG_UID16=y
CONFIG_SYSCTL_SYSCALL=y
CONFIG_KALLSYMS=y
@@ -53,7 +55,7 @@
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
-CONFIG_ELF_CORE=y
+# CONFIG_ELF_CORE is not set
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
@@ -73,7 +75,7 @@
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
-# CONFIG_KMOD is not set
+CONFIG_KMOD=y
#
# Block layer
@@ -88,7 +90,7 @@
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
-CONFIG_IOSCHED_DEADLINE=y
+# CONFIG_IOSCHED_DEADLINE is not set
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_AS=y
# CONFIG_DEFAULT_DEADLINE is not set
@@ -168,8 +170,9 @@
# CONFIG_MACH_TUNGE2 is not set
# CONFIG_MACH_T3XSCALE is not set
CONFIG_MACH_XSCALE_PALMTT5=y
-CONFIG_PALMTT5_PM=y
-CONFIG_PALMTT5_BATTERY=m
+# CONFIG_PALMT5_DEBUG is not set
+CONFIG_PALMT5_BATTERY=m
+CONFIG_PALMT5_PM=y
# CONFIG_MACH_XSCALE_PALMTX is not set
# CONFIG_MACH_PALMZ72 is not set
# CONFIG_MACH_OMAP_PALMTC is not set
@@ -222,21 +225,12 @@
#
# PCCARD (PCMCIA/CardBus) support
#
-CONFIG_PCCARD=m
-CONFIG_PCMCIA_DEBUG=y
-CONFIG_PCMCIA=m
-# CONFIG_PCMCIA_LOAD_CIS is not set
-CONFIG_PCMCIA_IOCTL=y
+# CONFIG_PCCARD is not set
#
-# PC-card bridges
-#
-CONFIG_PCMCIA_PXA2XX=m
-
-#
# Kernel Features
#
-# CONFIG_PREEMPT is not set
+CONFIG_PREEMPT=y
# CONFIG_NO_IDLE_HZ is not set
CONFIG_HZ=100
CONFIG_AEABI=y
@@ -288,7 +282,7 @@
# Power management options
#
CONFIG_PM=y
-# CONFIG_PM_LEGACY is not set
+CONFIG_PM_LEGACY=y
# CONFIG_PM_DEBUG is not set
# CONFIG_DPM_DEBUG is not set
# CONFIG_PM_SYSFS_DEPRECATED is not set
@@ -303,13 +297,13 @@
# Networking options
#
# CONFIG_NETDEBUG is not set
-CONFIG_PACKET=y
+CONFIG_PACKET=m
# CONFIG_PACKET_MMAP is not set
CONFIG_UNIX=y
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_XFRM_SUB_POLICY is not set
-CONFIG_NET_KEY=y
+# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
@@ -324,9 +318,9 @@
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
-# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
-# CONFIG_INET_XFRM_MODE_TUNNEL is not set
-# CONFIG_INET_XFRM_MODE_BEET is not set
+CONFIG_INET_XFRM_MODE_TRANSPORT=y
+CONFIG_INET_XFRM_MODE_TUNNEL=y
+CONFIG_INET_XFRM_MODE_BEET=y
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not set
@@ -380,10 +374,10 @@
#
# IrDA protocols
#
-CONFIG_IRLAN=y
-CONFIG_IRNET=y
-CONFIG_IRCOMM=y
-CONFIG_IRDA_ULTRA=y
+# CONFIG_IRLAN is not set
+# CONFIG_IRNET is not set
+CONFIG_IRCOMM=m
+# CONFIG_IRDA_ULTRA is not set
#
# IrDA options
@@ -419,31 +413,20 @@
#
CONFIG_PXA_FICP=y
CONFIG_BT=m
-CONFIG_BT_L2CAP=m
-CONFIG_BT_SCO=m
-CONFIG_BT_RFCOMM=m
-CONFIG_BT_RFCOMM_TTY=y
-CONFIG_BT_BNEP=m
-# CONFIG_BT_BNEP_MC_FILTER is not set
-# CONFIG_BT_BNEP_PROTO_FILTER is not set
-# CONFIG_BT_HIDP is not set
+# CONFIG_BT_L2CAP is not set
+# CONFIG_BT_SCO is not set
#
# Bluetooth device drivers
#
CONFIG_BT_HCIUART=m
-CONFIG_BT_HCIUART_H4=y
+# CONFIG_BT_HCIUART_H4 is not set
# CONFIG_BT_HCIUART_BCSP is not set
-# CONFIG_BT_HCIDTL1 is not set
-# CONFIG_BT_HCIBT3C is not set
-# CONFIG_BT_HCIBLUECARD is not set
-# CONFIG_BT_HCIBTUART is not set
# CONFIG_BT_HCIVHCI is not set
CONFIG_IEEE80211=m
# CONFIG_IEEE80211_DEBUG is not set
CONFIG_IEEE80211_CRYPT_WEP=m
-# CONFIG_IEEE80211_CRYPT_CCMP is not set
-# CONFIG_IEEE80211_CRYPT_TKIP is not set
+CONFIG_IEEE80211_CRYPT_CCMP=m
CONFIG_IEEE80211_SOFTMAC=m
# CONFIG_IEEE80211_SOFTMAC_DEBUG is not set
CONFIG_WIRELESS_EXT=y
@@ -457,7 +440,7 @@
#
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
-CONFIG_FW_LOADER=y
+# CONFIG_FW_LOADER is not set
# CONFIG_SYS_HYPERVISOR is not set
#
@@ -468,87 +451,9 @@
#
# Memory Technology Devices (MTD)
#
-CONFIG_MTD=m
-# CONFIG_MTD_DEBUG is not set
-# CONFIG_MTD_CONCAT is not set
-# CONFIG_MTD_PARTITIONS is not set
+# CONFIG_MTD is not set
#
-# User Modules And Translation Layers
-#
-CONFIG_MTD_CHAR=m
-# CONFIG_MTD_BLKDEVS is not set
-# CONFIG_MTD_BLOCK is not set
-# CONFIG_MTD_BLOCK_RO is not set
-# CONFIG_FTL is not set
-# CONFIG_NFTL is not set
-# CONFIG_INFTL is not set
-# CONFIG_RFD_FTL is not set
-# CONFIG_SSFDC is not set
-
-#
-# RAM/ROM/Flash chip drivers
-#
-CONFIG_MTD_CFI=m
-CONFIG_MTD_JEDECPROBE=m
-CONFIG_MTD_GEN_PROBE=m
-# CONFIG_MTD_CFI_ADV_OPTIONS is not set
-CONFIG_MTD_MAP_BANK_WIDTH_1=y
-CONFIG_MTD_MAP_BANK_WIDTH_2=y
-CONFIG_MTD_MAP_BANK_WIDTH_4=y
-# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
-# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
-# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
-CONFIG_MTD_CFI_I1=y
-CONFIG_MTD_CFI_I2=y
-# CONFIG_MTD_CFI_I4 is not set
-# CONFIG_MTD_CFI_I8 is not set
-CONFIG_MTD_CFI_INTELEXT=m
-CONFIG_MTD_CFI_AMDSTD=m
-CONFIG_MTD_CFI_STAA=m
-CONFIG_MTD_CFI_UTIL=m
-CONFIG_MTD_RAM=m
-CONFIG_MTD_ROM=m
-CONFIG_MTD_ABSENT=m
-# CONFIG_MTD_OBSOLETE_CHIPS is not set
-# CONFIG_MTD_XIP is not set
-
-#
-# Mapping drivers for chip access
-#
-# CONFIG_MTD_COMPLEX_MAPPINGS is not set
-# CONFIG_MTD_PHYSMAP is not set
-# CONFIG_MTD_ARM_INTEGRATOR is not set
-# CONFIG_MTD_IMPA7 is not set
-# CONFIG_MTD_SHARP_SL is not set
-# CONFIG_MTD_PLATRAM is not set
-
-#
-# Self-contained MTD device drivers
-#
-# CONFIG_MTD_SLRAM is not set
-# CONFIG_MTD_PHRAM is not set
-# CONFIG_MTD_MTDRAM is not set
-# CONFIG_MTD_BLOCK2MTD is not set
-
-#
-# Disk-On-Chip Device Drivers
-#
-# CONFIG_MTD_DOC2000 is not set
-# CONFIG_MTD_DOC2001 is not set
-# CONFIG_MTD_DOC2001PLUS is not set
-
-#
-# NAND Flash Device Drivers
-#
-# CONFIG_MTD_NAND is not set
-
-#
-# OneNAND Flash Device Drivers
-#
-# CONFIG_MTD_ONENAND is not set
-
-#
# Parallel port support
#
# CONFIG_PARPORT is not set
@@ -575,31 +480,9 @@
#
# ATA/ATAPI/MFM/RLL support
#
-CONFIG_IDE=y
-CONFIG_BLK_DEV_IDE=y
+# CONFIG_IDE is not set
#
-# Please see Documentation/ide.txt for help/info on IDE drives
-#
-# CONFIG_BLK_DEV_IDE_SATA is not set
-CONFIG_BLK_DEV_IDEDISK=y
-# CONFIG_IDEDISK_MULTI_MODE is not set
-# CONFIG_BLK_DEV_IDECS is not set
-# CONFIG_BLK_DEV_IDECD is not set
-# CONFIG_BLK_DEV_IDETAPE is not set
-# CONFIG_BLK_DEV_IDEFLOPPY is not set
-# CONFIG_IDE_TASK_IOCTL is not set
-
-#
-# IDE chipset support/bugfixes
-#
-CONFIG_IDE_GENERIC=y
-# CONFIG_IDE_ARM is not set
-# CONFIG_BLK_DEV_IDEDMA is not set
-# CONFIG_IDEDMA_AUTO is not set
-# CONFIG_BLK_DEV_HD is not set
-
-#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
@@ -641,11 +524,16 @@
#
# PHY device support
#
+# CONFIG_PHYLIB is not set
#
# Ethernet (10 or 100Mbit)
#
-# CONFIG_NET_ETHERNET is not set
+CONFIG_NET_ETHERNET=y
+CONFIG_MII=y
+# CONFIG_SMC91X is not set
+# CONFIG_DM9000 is not set
+# CONFIG_SMC911X is not set
#
# Ethernet (1000 Mbit)
@@ -662,54 +550,18 @@
#
# Wireless LAN (non-hamradio)
#
-CONFIG_NET_RADIO=y
-# CONFIG_NET_WIRELESS_RTNETLINK is not set
+# CONFIG_NET_RADIO is not set
#
-# Obsolete Wireless cards support (pre-802.11)
-#
-# CONFIG_STRIP is not set
-# CONFIG_PCMCIA_WAVELAN is not set
-# CONFIG_PCMCIA_NETWAVE is not set
-
-#
-# Wireless 802.11 Frequency Hopping cards support
-#
-# CONFIG_PCMCIA_RAYCS is not set
-
-#
-# Wireless 802.11b ISA/PCI cards support
-#
-CONFIG_LIBERTAS=y
-CONFIG_LIBERTAS_CS=m
-CONFIG_LIBERTAS_DEBUG=y
-# CONFIG_HERMES is not set
-# CONFIG_ATMEL is not set
-
-#
-# Wireless 802.11b Pcmcia/Cardbus cards support
-#
-# CONFIG_AIRO_CS is not set
-# CONFIG_PCMCIA_WL3501 is not set
-# CONFIG_HOSTAP is not set
-# CONFIG_ACX is not set
-CONFIG_NET_WIRELESS=y
-
-#
-# PCMCIA network device support
-#
-# CONFIG_NET_PCMCIA is not set
-
-#
# Wan interfaces
#
# CONFIG_WAN is not set
CONFIG_PPP=y
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_FILTER is not set
-CONFIG_PPP_ASYNC=y
-CONFIG_PPP_SYNC_TTY=y
-CONFIG_PPP_DEFLATE=y
+# CONFIG_PPP_ASYNC is not set
+# CONFIG_PPP_SYNC_TTY is not set
+# CONFIG_PPP_DEFLATE is not set
# CONFIG_PPP_BSDCOMP is not set
# CONFIG_PPP_MPPE is not set
# CONFIG_PPPOE is not set
@@ -734,10 +586,7 @@
#
# Userland interfaces
#
-CONFIG_INPUT_MOUSEDEV=y
-CONFIG_INPUT_MOUSEDEV_PSAUX=y
-CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
-CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
+# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_TSDEV=y
CONFIG_INPUT_TSDEV_SCREEN_X=320
@@ -760,6 +609,7 @@
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
CONFIG_INPUT_TOUCHSCREEN=y
+# CONFIG_TOUCHSCREEN_ADS7846 is not set
# CONFIG_TOUCHSCREEN_GUNZE is not set
# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
@@ -782,6 +632,7 @@
#
CONFIG_SERIO=y
CONFIG_SERIO_SERPORT=y
+# CONFIG_SERIO_LIBPS2 is not set
# CONFIG_SERIO_RAW is not set
# CONFIG_GAMEPORT is not set
@@ -797,11 +648,7 @@
#
# Serial drivers
#
-CONFIG_SERIAL_8250=m
-# CONFIG_SERIAL_8250_CS is not set
-CONFIG_SERIAL_8250_NR_UARTS=4
-CONFIG_SERIAL_8250_RUNTIME_UARTS=4
-# CONFIG_SERIAL_8250_EXTENDED is not set
+# CONFIG_SERIAL_8250 is not set
#
# Non-8250 serial port support
@@ -827,16 +674,9 @@
# CONFIG_WATCHDOG is not set
CONFIG_HW_RANDOM=m
# CONFIG_NVRAM is not set
-CONFIG_SA1100_RTC=y
+CONFIG_SA1100_RTC=m
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
-
-#
-# PCMCIA character devices
-#
-# CONFIG_SYNCLINK_CS is not set
-# CONFIG_CARDMAN_4000 is not set
-# CONFIG_CARDMAN_4040 is not set
# CONFIG_RAW_DRIVER is not set
#
@@ -852,10 +692,20 @@
#
# SPI support
#
-# CONFIG_SPI is not set
-# CONFIG_SPI_MASTER is not set
+CONFIG_SPI=y
+CONFIG_SPI_MASTER=y
#
+# SPI Master Controller Drivers
+#
+# CONFIG_SPI_BITBANG is not set
+CONFIG_SPI_PXA2XX=y
+
+#
+# SPI Protocol Masters
+#
+
+#
# Dallas's 1-wire bus
#
# CONFIG_W1 is not set
@@ -907,7 +757,8 @@
#
# LED devices
#
-# CONFIG_NEW_LEDS is not set
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
#
# LED drivers
@@ -916,13 +767,38 @@
#
# LED Triggers
#
+CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_TIMER=y
+# CONFIG_LEDS_TRIGGER_HWTIMER is not set
+CONFIG_LEDS_TRIGGER_MMC_CARD=y
+# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
+# CONFIG_LEDS_TRIGGER_SHARED is not set
#
# Multimedia devices
#
-# CONFIG_VIDEO_DEV is not set
+CONFIG_VIDEO_DEV=y
+CONFIG_VIDEO_V4L1=y
+CONFIG_VIDEO_V4L1_COMPAT=y
+CONFIG_VIDEO_V4L2=y
#
+# Video Capture Adapters
+#
+
+#
+# Video Capture Adapters
+#
+CONFIG_VIDEO_ADV_DEBUG=y
+CONFIG_VIDEO_HELPER_CHIPS_AUTO=y
+# CONFIG_VIDEO_VIVI is not set
+# CONFIG_VIDEO_CPIA is not set
+
+#
+# Radio Adapters
+#
+
+#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
@@ -938,11 +814,11 @@
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
# CONFIG_FB_MODE_HELPERS is not set
-CONFIG_FB_TILEBLITTING=y
+# CONFIG_FB_TILEBLITTING is not set
# CONFIG_FB_IMAGEON is not set
# CONFIG_FB_S1D13XXX is not set
CONFIG_FB_PXA=y
-# CONFIG_FB_PXA_PARAMETERS is not set
+CONFIG_FB_PXA_PARAMETERS=y
# CONFIG_FB_MBX is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_VSFB is not set
@@ -953,7 +829,7 @@
# CONFIG_VGA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
-CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
+# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
# CONFIG_FONT_8x16 is not set
@@ -969,45 +845,44 @@
#
# Logo configuration
#
-# CONFIG_LOGO is not set
+CONFIG_LOGO=y
+# CONFIG_LOGO_LINUX_MONO is not set
+# CONFIG_LOGO_LINUX_VGA16 is not set
+CONFIG_LOGO_LINUX_CLUT224=y
CONFIG_BACKLIGHT_LCD_SUPPORT=y
-CONFIG_BACKLIGHT_CLASS_DEVICE=m
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
CONFIG_BACKLIGHT_DEVICE=y
-CONFIG_LCD_CLASS_DEVICE=m
-CONFIG_LCD_DEVICE=y
+# CONFIG_LCD_CLASS_DEVICE is not set
# CONFIG_BACKLIGHT_CORGI is not set
-CONFIG_BACKLIGHT_PXAPWM=m
+CONFIG_BACKLIGHT_PXAPWM=y
#
# Sound
#
-CONFIG_SOUND=m
+CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#
-CONFIG_SND=m
-CONFIG_SND_TIMER=m
-CONFIG_SND_PCM=m
-CONFIG_SND_SEQUENCER=m
-# CONFIG_SND_SEQ_DUMMY is not set
+CONFIG_SND=y
+CONFIG_SND_TIMER=y
+CONFIG_SND_PCM=y
+# CONFIG_SND_SEQUENCER is not set
CONFIG_SND_OSSEMUL=y
-CONFIG_SND_MIXER_OSS=m
-CONFIG_SND_PCM_OSS=m
+CONFIG_SND_MIXER_OSS=y
+CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
-CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_DYNAMIC_MINORS is not set
-CONFIG_SND_SUPPORT_OLD_API=y
-CONFIG_SND_VERBOSE_PROCFS=y
+# CONFIG_SND_SUPPORT_OLD_API is not set
+# CONFIG_SND_VERBOSE_PROCFS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
-CONFIG_SND_AC97_CODEC=m
+CONFIG_SND_AC97_CODEC=y
# CONFIG_SND_DUMMY is not set
-# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
@@ -1016,16 +891,10 @@
# ALSA ARM devices
#
# CONFIG_SND_PXA2xx_I2SOUND is not set
-CONFIG_SND_PXA2XX_PCM=m
-CONFIG_SND_PXA2XX_AC97=m
+CONFIG_SND_PXA2XX_PCM=y
+CONFIG_SND_PXA2XX_AC97=y
#
-# PCMCIA devices
-#
-# CONFIG_SND_VXPOCKET is not set
-# CONFIG_SND_PDAUDIOCF is not set
-
-#
# SoC audio support
#
# CONFIG_SND_SOC is not set
@@ -1034,7 +903,7 @@
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
-CONFIG_AC97_BUS=m
+CONFIG_AC97_BUS=y
#
# HID Devices
@@ -1056,14 +925,15 @@
#
# USB Gadget Support
#
-CONFIG_USB_GADGET=m
+CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG_FILES is not set
CONFIG_USB_GADGET_SELECTED=y
# CONFIG_USB_GADGET_NET2280 is not set
# CONFIG_USB_GADGET_PXA2XX is not set
-# CONFIG_USB_GADGET_PXA27X is not set
-CONFIG_USB_GADGET_SX2=y
-CONFIG_USB_SX2=m
+CONFIG_USB_GADGET_PXA27X=y
+CONFIG_USB_PXA27X=y
+# CONFIG_USB_PXA27X_DMA is not set
+# CONFIG_USB_GADGET_SX2 is not set
# CONFIG_USB_GADGET_GOKU is not set
# CONFIG_USB_GADGET_MQ11XX is not set
# CONFIG_USB_GADGET_LH7A40X is not set
@@ -1072,8 +942,9 @@
# CONFIG_USB_GADGET_AT91 is not set
# CONFIG_USB_GADGET_DUMMY_HCD is not set
# CONFIG_USB_GADGET_DUALSPEED is not set
-CONFIG_USB_ZERO=m
-# CONFIG_USB_ETH is not set
+# CONFIG_USB_ZERO is not set
+CONFIG_USB_ETH=m
+# CONFIG_USB_ETH_RNDIS is not set
# CONFIG_USB_GADGETFS is not set
# CONFIG_USB_FILE_STORAGE is not set
# CONFIG_USB_G_SERIAL is not set
@@ -1095,10 +966,30 @@
# Real Time Clock
#
CONFIG_RTC_LIB=y
-# CONFIG_RTC_CLASS is not set
+CONFIG_RTC_CLASS=m
CONFIG_RTC_EPOCH=1970
#
+# RTC interfaces
+#
+CONFIG_RTC_INTF_SYSFS=m
+CONFIG_RTC_INTF_PROC=m
+CONFIG_RTC_INTF_DEV=m
+# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
+
+#
+# RTC drivers
+#
+# CONFIG_RTC_DRV_DS1553 is not set
+# CONFIG_RTC_DRV_DS1742 is not set
+# CONFIG_RTC_DRV_RS5C348 is not set
+# CONFIG_RTC_DRV_M48T86 is not set
+CONFIG_RTC_DRV_SA1100=m
+# CONFIG_RTC_DRV_TEST is not set
+# CONFIG_RTC_DRV_MAX6902 is not set
+# CONFIG_RTC_DRV_V3020 is not set
+
+#
# File systems
#
CONFIG_EXT2_FS=y
@@ -1112,14 +1003,13 @@
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
-CONFIG_MINIX_FS=y
+# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
-CONFIG_INOTIFY=y
-CONFIG_INOTIFY_USER=y
+# CONFIG_INOTIFY is not set
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
-# CONFIG_AUTOFS_FS is not set
-# CONFIG_AUTOFS4_FS is not set
+CONFIG_AUTOFS_FS=y
+CONFIG_AUTOFS4_FS=y
# CONFIG_FUSE_FS is not set
#
@@ -1160,9 +1050,11 @@
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
-# CONFIG_JFFS2_FS is not set
# CONFIG_CRAMFS is not set
-# CONFIG_SQUASHFS is not set
+CONFIG_SQUASHFS=y
+CONFIG_SQUASHFS_EMBEDDED=y
+CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
+# CONFIG_SQUASHFS_VMALLOC is not set
# CONFIG_SQUASHFS_LZMA is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
@@ -1174,14 +1066,14 @@
#
# Network File Systems
#
-CONFIG_NFS_FS=y
+CONFIG_NFS_FS=m
# CONFIG_NFS_V3 is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
# CONFIG_NFSD is not set
-CONFIG_LOCKD=y
+CONFIG_LOCKD=m
CONFIG_NFS_COMMON=y
-CONFIG_SUNRPC=y
+CONFIG_SUNRPC=m
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set
@@ -1201,44 +1093,44 @@
# Native Language Support
#
CONFIG_NLS=y
-CONFIG_NLS_DEFAULT="utf-8"
+CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=y
-CONFIG_NLS_CODEPAGE_737=y
-CONFIG_NLS_CODEPAGE_775=y
-CONFIG_NLS_CODEPAGE_850=y
-CONFIG_NLS_CODEPAGE_852=y
-CONFIG_NLS_CODEPAGE_855=y
-CONFIG_NLS_CODEPAGE_857=y
-CONFIG_NLS_CODEPAGE_860=y
-CONFIG_NLS_CODEPAGE_861=y
-CONFIG_NLS_CODEPAGE_862=y
-CONFIG_NLS_CODEPAGE_863=y
-CONFIG_NLS_CODEPAGE_864=y
-CONFIG_NLS_CODEPAGE_865=y
+# CONFIG_NLS_CODEPAGE_737 is not set
+# CONFIG_NLS_CODEPAGE_775 is not set
+# CONFIG_NLS_CODEPAGE_850 is not set
+# CONFIG_NLS_CODEPAGE_852 is not set
+# CONFIG_NLS_CODEPAGE_855 is not set
+# CONFIG_NLS_CODEPAGE_857 is not set
+# CONFIG_NLS_CODEPAGE_860 is not set
+# CONFIG_NLS_CODEPAGE_861 is not set
+# CONFIG_NLS_CODEPAGE_862 is not set
+# CONFIG_NLS_CODEPAGE_863 is not set
+# CONFIG_NLS_CODEPAGE_864 is not set
+# CONFIG_NLS_CODEPAGE_865 is not set
CONFIG_NLS_CODEPAGE_866=y
-CONFIG_NLS_CODEPAGE_869=y
+# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
-CONFIG_NLS_ISO8859_8=y
-CONFIG_NLS_CODEPAGE_1250=y
-CONFIG_NLS_CODEPAGE_1251=y
-CONFIG_NLS_ASCII=y
+# CONFIG_NLS_ISO8859_8 is not set
+# CONFIG_NLS_CODEPAGE_1250 is not set
+# CONFIG_NLS_CODEPAGE_1251 is not set
+# CONFIG_NLS_ASCII is not set
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_2=y
-CONFIG_NLS_ISO8859_3=y
-CONFIG_NLS_ISO8859_4=y
-CONFIG_NLS_ISO8859_5=y
-CONFIG_NLS_ISO8859_6=y
-CONFIG_NLS_ISO8859_7=y
-CONFIG_NLS_ISO8859_9=y
-CONFIG_NLS_ISO8859_13=y
-CONFIG_NLS_ISO8859_14=y
-CONFIG_NLS_ISO8859_15=y
+# CONFIG_NLS_ISO8859_3 is not set
+# CONFIG_NLS_ISO8859_4 is not set
+# CONFIG_NLS_ISO8859_5 is not set
+# CONFIG_NLS_ISO8859_6 is not set
+# CONFIG_NLS_ISO8859_7 is not set
+# CONFIG_NLS_ISO8859_9 is not set
+# CONFIG_NLS_ISO8859_13 is not set
+# CONFIG_NLS_ISO8859_14 is not set
+# CONFIG_NLS_ISO8859_15 is not set
CONFIG_NLS_KOI8_R=y
-CONFIG_NLS_KOI8_U=y
+# CONFIG_NLS_KOI8_U is not set
CONFIG_NLS_UTF8=y
#
@@ -1263,7 +1155,7 @@
# CONFIG_SMALLOOPS is not set
# CONFIG_DEBUG_KERNEL is not set
CONFIG_LOG_BUF_SHIFT=14
-CONFIG_DEBUG_BUGVERBOSE=y
+# CONFIG_DEBUG_BUGVERBOSE is not set
CONFIG_FRAME_POINTER=y
# CONFIG_DEBUG_USER is not set
@@ -1298,7 +1190,7 @@
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_SERPENT is not set
-# CONFIG_CRYPTO_AES is not set
+CONFIG_CRYPTO_AES=m
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
@@ -1323,6 +1215,5 @@
CONFIG_CRC32=y
# CONFIG_LIBCRC32C is not set
CONFIG_ZLIB_INFLATE=y
-CONFIG_ZLIB_DEFLATE=y
CONFIG_PLIST=y
CONFIG_IOMAP_COPY=y
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/Kconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/Kconfig 2007-04-17 21:02:47 UTC (rev 956)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/Kconfig 2007-04-18 10:12:50 UTC (rev 957)
@@ -1,24 +1,29 @@
menuconfig MACH_XSCALE_PALMTT5
- bool "Palm T5"
- select PXA27x
- select KEYBOARD_PXA27x
- help
- This enables support for PalmOme T5 handheld.
+ bool "Palm T5"
+ select PXA27x
+ help
+ This enables support for Palm T5 handheld.
-config PALMTT5_PM
- tristate "Palm Tungsten T5 Power Management support"
+config PALMT5_DEBUG
+ bool "Debug output for Palm T5"
depends on MACH_XSCALE_PALMTT5
- default y if MACH_XSCALE_PALMTT5
+ default n
help
- Enable support for suspend/resume the PalmOne Tungsten T5 PDA.
-
-config PALMTT5_BATTERY
- tristate "Palm T5 AC97 driver"
- depends on MACH_XSCALE_PALMTT5
- select TOUCHSCREEN_WM97XX
+ Enable core debug output for Palm T5 modules.
+
+config PALMT5_BATTERY
+ tristate "Palm T5 Battery support"
+ select TOUCHSCREEN_WM97XX
+ depends on MACH_XSCALE_PALMTT5
default m
help
- Enable support for PalmOne Tungsten T5 battery to APM.
+ Enable support for Palm T5 battery to APM.
ATM use it only as module, otherwise it hangs.
+
+config PALMT5_PM
+ tristate "Palm T5 Power Management support"
+ depends on MACH_XSCALE_PALMTT5
+ default y if MACH_PALMTT5
+ help
+ Enable support for suspend/resume the Palm T5 PDA.
-
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/Makefile
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/Makefile 2007-04-17 21:02:47 UTC (rev 956)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/Makefile 2007-04-18 10:12:50 UTC (rev 957)
@@ -1,9 +1,7 @@
#
-# Palm Tungsten T5 Linux kernel Makefile
+## Palm T5 Linux kernel Makefile
#
-
+#
obj-$(CONFIG_MACH_XSCALE_PALMTT5) += palmt5.o
-obj-$(CONFIG_PALMTT5_PM) += palmt5_pm.o
-obj-$(CONFIG_PALMTT5_BATTERY) += palmt5_battery.o
-
-
+obj-$(CONFIG_PALMT5_BATTERY) += palmt5_battery.o
+obj-$(CONFIG_PM) += palmt5_pm.o
Deleted: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmld_ac97.c
===================================================================
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmt5_pm.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmt5_pm.c 2007-04-17 21:02:47 UTC (rev 956)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmt5_pm.c 2007-04-18 10:12:50 UTC (rev 957)
@@ -19,11 +19,11 @@
#include <asm/arch/hardware.h>
#include <asm/arch/pxa-regs.h>
-#include <asm/arch/palmtx-gpio.h>
+#include <asm/arch/palmt5-gpio.h>
#include <asm/arch/pxa27x_keyboard.h>
#ifdef CONFIG_PM
-static int palmtx_suspend(struct device *dev, pm_message_t state)
+static int palmt5_suspend(struct device *dev, pm_message_t state)
{
/* Wake-Up on RTC event, etc. */
PWER |= PWER_RTC | PWER_WEP1 ;
@@ -42,11 +42,11 @@
{}
/* Turn off LCD power */
- SET_PALMTX_GPIO(LCD_POWER,0);
+/* SET_PALMTT5_GPIO(LCD_POWER,0);*/
/* Turn screen off */
- SET_PALMTX_GPIO(BL_POWER,0);
+/* SET_PALMTT5_GPIO(BL_POWER,0);*/
/* Turn off USB power */
- SET_PALMTX_GPIO(USB_POWER,0);
+/* SET_PALMTT5_GPIO(USB_POWER,0);*/
/* disable GPIO reset - DO NOT REMOVE!!!!!!!! Palm totally hangs on reset without disabling GPIO reset during sleep */
@@ -55,7 +55,7 @@
return 0;
}
-static int palmtx_resume(struct device *dev)
+static int palmt5_resume(struct device *dev)
{
/* Disabled Deep-Sleep mode */
@@ -65,65 +65,65 @@
PCFR |= PCFR_GPR_EN; /* !! DO NOT REMOVE !! THIS IS NECCESARY FOR ENABLE PALM RESET !! */
- /* Here are all of special to resume Palm TX */
+ /* Here are all of special to resume Palm T5 */
/* Turn on LCD power */
- SET_PALMTX_GPIO(LCD_POWER,1);
+/* SET_PALMTT5_GPIO(LCD_POWER,1);*/
/* Turn screen on */
- SET_PALMTX_GPIO(BL_POWER,1);
+/* SET_PALMTT5_GPIO(BL_POWER,1);*/
/* Turn on USB power */
- SET_PALMTX_GPIO(USB_POWER,1);
+/* SET_PALMTT5_GPIO(USB_POWER,1);*/
return 0;
}
#else
-#define palmtx_suspend NULL
-#define palmtx_resume NULL
+#define palmt5_suspend NULL
+#define palmt5_resume NULL
#endif
-static void palmtx_pxa_ll_pm_suspend(unsigned long resume_addr)
+static void palmt5_pxa_ll_pm_suspend(unsigned long resume_addr)
{
/* For future */
return;
}
-static void palmtx_pxa_ll_pm_resume(void)
+static void palmt5_pxa_ll_pm_resume(void)
{
/* For future */
}
-struct pxa_ll_pm_ops palmtx_ll_pm_ops = {
- .suspend = palmtx_pxa_ll_pm_suspend,
- .resume = palmtx_pxa_ll_pm_resume,
+struct pxa_ll_pm_ops palmt5_ll_pm_ops = {
+ .suspend = palmt5_pxa_ll_pm_suspend,
+ .resume = palmt5_pxa_ll_pm_resume,
};
-static int palmtx_pm_probe(struct device *dev)
+static int palmt5_pm_probe(struct device *dev)
{
- printk(KERN_NOTICE "Palm TX power management driver registered\n");
+ printk(KERN_NOTICE "Palm T5 power management driver registered\n");
return 0;
}
-struct device_driver palmtx_pm_driver = {
- .name = "palmtx-pm",
+struct device_driver palmt5_pm_driver = {
+ .name = "palmt5-pm",
.bus = &platform_bus_type,
- .probe = palmtx_pm_probe,
- .suspend = palmtx_suspend,
- .resume = palmtx_resume,
+ .probe = palmt5_pm_probe,
+ .suspend = palmt5_suspend,
+ .resume = palmt5_resume,
};
-static int __init palmtx_pm_init(void)
+static int __init palmt5_pm_init(void)
{
- return driver_register(&palmtx_pm_driver);
+ return driver_register(&palmt5_pm_driver);
}
-static void __exit palmtx_pm_exit(void)
+static void __exit palmt5_pm_exit(void)
{
- driver_unregister(&palmtx_pm_driver);
+ driver_unregister(&palmt5_pm_driver);
}
-module_init(palmtx_pm_init);
-module_exit(palmtx_pm_exit);
+module_init(palmt5_pm_init);
+module_exit(palmt5_pm_exit);
-MODULE_AUTHOR("Jan Herman <2h...@se...>");
-MODULE_DESCRIPTION("Palm TX power management driver");
+MODULE_AUTHOR("Marek Vasut <mar...@gm...>");
+MODULE_DESCRIPTION("Palm T5 power management driver");
MODULE_LICENSE("GPL");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|