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: <far...@us...> - 2006-11-22 20:38:24
|
Revision: 680
http://svn.sourceforge.net/hackndev/?rev=680&view=rev
Author: farcaller
Date: 2006-11-22 12:38:15 -0800 (Wed, 22 Nov 2006)
Log Message:
-----------
gpioed: Makefile update
Modified Paths:
--------------
linux4palm/tools/modules/Makefile
Modified: linux4palm/tools/modules/Makefile
===================================================================
--- linux4palm/tools/modules/Makefile 2006-11-21 13:39:18 UTC (rev 679)
+++ linux4palm/tools/modules/Makefile 2006-11-22 20:38:15 UTC (rev 680)
@@ -1,7 +1,7 @@
-obj-m += gpioed.o palmt3_i2c.o
+obj-m += gpioed.o gpioed-ng.o
all:
- make -C ../../linux/ M=$(PWD) modules
+ make -C ../linux/ M=$(PWD) modules
clean:
- make -C ../../linux/ M=$(PWD) clean
+ make -C ../linux/ M=$(PWD) clean
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sle...@us...> - 2006-11-21 13:39:23
|
Revision: 679
http://svn.sourceforge.net/hackndev/?rev=679&view=rev
Author: sleep_walker
Date: 2006-11-21 05:39:18 -0800 (Tue, 21 Nov 2006)
Log Message:
-----------
l4p: cmdline fix, less debug output
Modified Paths:
--------------
linux4palm/BFUGarux/BFULinuxHelper.c
linux4palm/BFUGarux/BFUSettings-alone.c
linux4palm/BFUGarux/README
linux4palm/BFUGarux/cmdline
linux4palm/BFUGarux/garux-clean.c
linux4palm/BFUGarux/icons/icon_256.bmp
linux4palm/BFUGarux/icons/icon_256_s.bmp
linux4palm/BFUGarux/icons/icon_hr.bmp
linux4palm/BFUGarux/icons/icon_hr_s.bmp
Modified: linux4palm/BFUGarux/BFULinuxHelper.c
===================================================================
--- linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-17 08:45:11 UTC (rev 678)
+++ linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-21 13:39:18 UTC (rev 679)
@@ -14,6 +14,8 @@
* no warranty, freedom, blah blah blah (you surely know it)
*/
+#define DEBUG
+
#ifdef DEBUG
#define CMDLINE_FILE "cmdline"
#else
Modified: linux4palm/BFUGarux/BFUSettings-alone.c
===================================================================
--- linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-17 08:45:11 UTC (rev 678)
+++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-21 13:39:18 UTC (rev 679)
@@ -1,4 +1,4 @@
-#define BFU_VERBOSE
+//#define BFU_VERBOSE
#include "BFUDefaultSettings.h"
#include "BFUSettings.Rsrc.h"
@@ -184,7 +184,9 @@
// BFUdoDie("Creating address and/or device string",0);
StrPrintF(BFUCommandLinePart," BFUSettings=%x",options);
StrCat(BFUCommandLinePart,del);
+#ifdef BFU_VERBOSE
BFUdoDie(BFUCommandLinePart,0);
+#endif
*netSet='\0';
*globalSet='\0';
// BFUdoDie("Creating network preferences string",0);
@@ -216,13 +218,18 @@
StrCat(BFUCommandLinePart,netSet);
// BFUdoDie(BFUCommandLinePart,0);
StrCat(BFUCommandLinePart,del);
+#ifdef BFU_VERBOSE
BFUdoDie(BFUCommandLinePart,0);
+#endif
}
//global part
+ *globalSet='\0';
+#ifdef BFU_VERBOSE
if (BFUSettingsValues.address)
BFUdoDie(BFUSettingsValues.address,0);
if (BFUSettingsValues.device)
BFUdoDie(BFUSettingsValues.device,0);
+#endif
switch(BFUSettingsValues.source)
{
case 0:
@@ -384,6 +391,15 @@
return true;
}
+static UInt16 BFUSetVolRefNum()
+{
+ UInt16 volRefNum;
+ UInt32 volIterator = vfsIteratorStart;
+
+ VFSVolumeEnumerate(&volRefNum, &volIterator);
+ return volRefNum;
+}
+
/*
*
* this function tries to find saved preferences on cards
@@ -432,9 +448,9 @@
BFUdoDie("BFUSavedPrefs already in RAM",0);
case errNone:
// that means errNone - nothing else is returned by this function
-// BFUdoDie("BFUSavedPrefs found on card",0);
+ BFUdoDie("BFUSavedPrefs found on card",volRefNum);
volIterator = vfsIteratorStop;
- BFUPrefsVolRefNum =volRefNum;
+ BFUPrefsVolRefNum = volRefNum;
break;
default:
//what did I missed???
@@ -573,9 +589,11 @@
return true;
}
+
+
static Boolean BFUExportPrefs2Card()
{
- UInt16 volRefNum = BFUPrefsFoundOnCard ? BFUPrefsVolRefNum : 1;
+ UInt16 volRefNum = BFUPrefsFoundOnCard ? BFUPrefsVolRefNum : BFUSetVolRefNum(); //FIXME: this line should be remade
// UInt32 volIterator=vfsIteratorStart;
Err err;
// BFUdoDie("Going to delete old preferences...",0);
@@ -589,14 +607,16 @@
BFUdoDie("Bad filename (VFSFileDelete)",0);
break;
case vfsErrDirNotEmpty:
- BFUdoDie("Directory is not empty (VFSFileDelete). That means something wrong, I'm not deleting directories...",0);
+ BFUdoDie("Directory is not empty (VFSFileDelete). That means something is wrong, I'm not deleting directories...",0);
return false;
break;
case vfsErrFileStillOpen:
BFUdoDie("Old preferences are still opened - shouldn't happen",0);
break;
case vfsErrFileNotFound:
+#ifdef BFU_VERBOSE
BFUdoDie("Old preferences couldn't be found, it's ok...",0);
+#endif
break;
case vfsErrFilePermissionDenied:
BFUdoDie("Couldn't delete old preferences - permission denied.",0);
@@ -684,13 +704,13 @@
BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUSilentBootBox));
break;
case BFUCardReadonlyBox:
- BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUCardReadonlyBox));
+ BFUSettingsValues.cardRO = CtlGetValue(getObjectPtr(pForm,BFUCardReadonlyBox));
break;
case BFUDebugModeBox:
- BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUDebugModeBox));
+ BFUSettingsValues.debug = CtlGetValue(getObjectPtr(pForm,BFUDebugModeBox));
break;
case BFUKeyboardSupportBox:
- BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUKeyboardSupportBox));
+ BFUSettingsValues.keyboard = CtlGetValue(getObjectPtr(pForm,BFUKeyboardSupportBox));
break;
case BFUReflashBox:
BFUSettingsValues.reflash = CtlGetValue(getObjectPtr(pForm,BFUReflashBox));
Modified: linux4palm/BFUGarux/README
===================================================================
--- linux4palm/BFUGarux/README 2006-11-17 08:45:11 UTC (rev 678)
+++ linux4palm/BFUGarux/README 2006-11-21 13:39:18 UTC (rev 679)
@@ -8,13 +8,10 @@
1) Compile a suitable kernel for the Palm and get the zImage.
2) Copy the zImage file in to the boot loader source directory.
3) Type 'make' to see usage - syntax is
- make <palm_type> [BFU] <garux-type.prc>
+ make <palm_type> <BFU>
<palm_type> could be palmld, palmte, palmtt, palmtt3, palmtt5, palmtx, palmz72
- [BFU] - type BFU if you want BFUSettings support
- <garux-type.prc> could be:
- garux.prc - good old one
- garux-cleaner.prc - rewrite of garux code to be better modificable
+ <BFU> could be BFU or noBFU - type BFU if you want BFUSettings support
II] Bugs and Limitations
Modified: linux4palm/BFUGarux/cmdline
===================================================================
--- linux4palm/BFUGarux/cmdline 2006-11-17 08:45:11 UTC (rev 678)
+++ linux4palm/BFUGarux/cmdline 2006-11-21 13:39:18 UTC (rev 679)
@@ -1 +1 @@
-blah blah blah BFUSettings=0BE0;c0a80101c0a80115ffffffff;/linux2ram;/dev/mmcblk0p1;20%; blah
+mem=0x04000000 initrd=0xA0400000,631365 root=/dev/ram0 init=/linuxrc BFUSettings=0B60;C0A8017BC0A80101FFFFFFFF;/linux2ram;/dev/mmcblk0p1;20%;
Modified: linux4palm/BFUGarux/garux-clean.c
===================================================================
--- linux4palm/BFUGarux/garux-clean.c 2006-11-17 08:45:11 UTC (rev 678)
+++ linux4palm/BFUGarux/garux-clean.c 2006-11-21 13:39:18 UTC (rev 679)
@@ -1,16 +1,38 @@
/* Garux-clean
*
- * rewriten garux.c (see its credits), based on OnBoardC skeleton and mainly tested there, by Tomas Cech (Sleep.Walker)
+ * rewriten garux.c , based on OnBoardC skeleton and mainly tested there, by Tomas Cech (Sleep.Walker)
* bugs: fr...@gm...
* (hope that there aren't any)
*
* 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.
+ *
+ * runLinuxKernel() is from garux.c
+ *
+ * Garux credits
+ * Linux Loader for the Palm OS.
+ *
+ * Copyright (C) 2004 Vinayak R. Borkar
+ * Author: Vinayak R. Borkar [vin...@us...]
+ *
+ * Original version by Romain Goyet [r....@gm...]
+ *
+ * 11-Sep-2005, Alex Osborne [bob...@gm...]:
+ * Updated to work with multiple handhelds.
+ *
+ * Device support based on the work of:
+ * Nikolay Petukhov - Palm Tungsten T2
+ * Vladimir Pouzanov - Palm Tungsten T3
+ *
+ * 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.
*/
+
#define ForSimulator
//#define DEBUG
@@ -133,8 +155,8 @@
#ifdef with_BFUSettings
if (BFUCommandLinePart[0] != '\0')
{
- BFUdoDie(parameters,StrLen(parameters));
- BFUdoDie(BFUCommandLinePart,StrLen(parameters));
+// BFUdoDie(parameters,StrLen(parameters));
+// BFUdoDie(BFUCommandLinePart,StrLen(parameters));
StrCat(parameters,BFUCommandLinePart);
}
#endif
@@ -344,7 +366,7 @@
handled = true;
break;
case frmCloseEvent:
- StrNCopy(parameters,FldGetTextPtr(getObjectPtr(pForm,KernelParam)),KernelParamLength);
+// StrNCopy(parameters,FldGetTextPtr(getObjectPtr(pForm,KernelParam)),KernelParamLength);
mainFormOnClose(pForm);
FrmEraseForm(pForm);
FrmDeleteForm(pForm);
@@ -370,6 +392,7 @@
printf("Serial open, port id: %x\n", portid);
SrmSend(portid, "Garux.\n\n", 8, &err);
#endif
+ StrNCopy(parameters,FldGetTextPtr(getObjectPtr(pForm,KernelParam)),KernelParamLength);
runLinuxKernel();
break;
@@ -469,7 +492,9 @@
if (BFUSettingsInit())
{
WinDrawChars("BFUSettings were set up",StrLen("BFUSettings were set up"),9,128);
+#ifdef BFU_VERBOSE
BFUdoDie(BFUCommandLinePart,0);
+#endif
}
else
WinDrawChars("BFUSettings were not set up",StrLen("BFUSettings were not set up"),9,128);
Modified: linux4palm/BFUGarux/icons/icon_256.bmp
===================================================================
(Binary files differ)
Modified: linux4palm/BFUGarux/icons/icon_256_s.bmp
===================================================================
(Binary files differ)
Modified: linux4palm/BFUGarux/icons/icon_hr.bmp
===================================================================
(Binary files differ)
Modified: linux4palm/BFUGarux/icons/icon_hr_s.bmp
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2006-11-17 08:45:13
|
Revision: 678
http://svn.sourceforge.net/hackndev/?rev=678&view=rev
Author: bobofdoom
Date: 2006-11-17 00:45:11 -0800 (Fri, 17 Nov 2006)
Log Message:
-----------
l4p: include/asm-arm/arch-pxa/palmld-ac97 removed in favour of sound/arm/wm9712.h
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmld_ac97.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmld_ac97.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmld_ac97.c 2006-11-17 08:44:32 UTC (rev 677)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt5/palmld_ac97.c 2006-11-17 08:45:11 UTC (rev 678)
@@ -20,7 +20,6 @@
#include <asm/arch/pxa-regs.h>
#include <asm/arch/irqs.h>
#include <asm/arch/palmt5-gpio.h>
-#include <asm/arch/palmld-ac97.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
@@ -31,6 +30,7 @@
#include <sound/pcm.h>
#include <sound/initval.h>
#include <sound/ac97_codec.h>
+#include <sound/wm9712.h>
#define palmld_ac97_WORK_QUEUE_NAME "palmld_ac97.c"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2006-11-17 08:44:33
|
Revision: 677
http://svn.sourceforge.net/hackndev/?rev=677&view=rev
Author: bobofdoom
Date: 2006-11-17 00:44:32 -0800 (Fri, 17 Nov 2006)
Log Message:
-----------
l4p: include/asm-arm/arch-pxa/palmld-ac97 removed in favour of sound/arm/wm9712.h
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmld_ac97.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmld_ac97.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmld_ac97.c 2006-11-17 08:43:31 UTC (rev 676)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmld_ac97.c 2006-11-17 08:44:32 UTC (rev 677)
@@ -32,10 +32,10 @@
#include <sound/pcm.h>
#include <sound/initval.h>
#include <sound/ac97_codec.h>
+#include <sound/wm9712.h>
#include <asm/arch/palmtx-gpio.h>
#include <asm/arch/palmtx-init.h>
-#include <asm/arch/palmld-ac97.h>
#define X_AXIS_MAX 3900
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2006-11-17 08:43:33
|
Revision: 676
http://svn.sourceforge.net/hackndev/?rev=676&view=rev
Author: bobofdoom
Date: 2006-11-17 00:43:31 -0800 (Fri, 17 Nov 2006)
Log Message:
-----------
l4p: include/asm-arm/arch-pxa/palmld-ac97 removed in favour of sound/arm/wm9712.h
Removed Paths:
-------------
linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-ac97.h
Deleted: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-ac97.h
===================================================================
--- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-ac97.h 2006-11-17 08:18:03 UTC (rev 675)
+++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmld-ac97.h 2006-11-17 08:43:31 UTC (rev 676)
@@ -1,92 +0,0 @@
-/*
- * Definitions for the LifeDrive's WM9712 AC97 codec
- * Based upon wm97xx.h by Liam Girdwood, Wolfson Microelectronics
- */
-
-#ifndef _PALMLD_AC97_H_
-#define _PALMLD_AC97_H_
-
-/*
- * WM97xx AC97 Touchscreen registers
- */
-#define AC97_WM97XX_DIGITISER1 0x76
-#define AC97_WM97XX_DIGITISER2 0x78
-#define AC97_WM97XX_DIGITISER_RD 0x7a
-#define AC97_WM9713_DIG1 0x74
-#define AC97_WM9713_DIG2 AC97_WM97XX_DIGITISER1
-#define AC97_WM9713_DIG3 AC97_WM97XX_DIGITISER2
-
-/*
- * WM97xx GPGIO states
- */
-#define WM97XX_GPIO_OUT 0
-#define WM97XX_GPIO_IN 0
-#define WM97XX_GPIO_POL_HIGH 1
-#define WM97XX_GPIO_POL_LOW 0
-#define WM97XX_GPIO_STICKY 1
-#define WM97XX_GPIO_NOTSTICKY 0
-#define WM97XX_GPIO_WAKE 1
-#define WM97XX_GPIO_NOWAKE 0
-
-/*
- * WM97xx register bits
- */
-#define WM97XX_POLL 0x8000 /* initiate a polling measurement */
-#define WM97XX_ADCSEL_X 0x1000 /* x coord measurement */
-#define WM97XX_ADCSEL_Y 0x2000 /* y coord measurement */
-#define WM97XX_ADCSEL_PRES 0x3000 /* pressure measurement */
-#define WM97XX_ADCSEL_COMP1 0x4000 /* aux1 measurement */
-#define WM97XX_ADCSEL_COMP2 0x5000 /* aux2 measurement */
-#define WM97XX_ADCSEL_BMON 0x6000 /* aux3 measurement */
-#define WM97XX_ADCSEL_WIPER 0x7000 /* aux4 measurement */
-#define WM97XX_ADCSEL_MASK 0x7000
-#define WM97XX_COO 0x0800 /* enable coordinate mode */
-#define WM97XX_CTC 0x0400 /* enable continuous mode */
-#define WM97XX_CM_RATE_93 0x0000 /* 93.75Hz continuous rate */
-#define WM97XX_CM_RATE_187 0x0100 /* 187.5Hz continuous rate */
-#define WM97XX_CM_RATE_375 0x0200 /* 375Hz continuous rate */
-#define WM97XX_CM_RATE_750 0x0300 /* 750Hz continuous rate */
-#define WM97XX_CM_RATE_8K 0x00f0 /* 8kHz continuous rate */
-#define WM97XX_CM_RATE_12K 0x01f0 /* 12kHz continuous rate */
-#define WM97XX_CM_RATE_24K 0x02f0 /* 24kHz continuous rate */
-#define WM97XX_CM_RATE_48K 0x03f0 /* 48kHz continuous rate */
-#define WM97XX_CM_RATE_MASK 0x03f0
-#define WM97XX_RATE(i) (((i & 3) << 8) | ((i & 4) ? 0xf0 : 0))
-#define WM97XX_DELAY(i) ((i << 4) & 0x00f0) /* sample delay times */
-#define WM97XX_DELAY_MASK 0x00f0
-#define WM97XX_SLEN 0x0008 /* slot read back enable */
-#define WM97XX_SLT(i) ((i - 5) & 0x7) /* touchpanel slot selection (5-11) */
-#define WM97XX_SLT_MASK 0x0007
-#define WM97XX_PRP_DETW 0x4000 /* pen detect on, digitiser off, wake up */
-#define WM97XX_PRP_DET 0x8000 /* pen detect on, digitiser off, no wake up */
-#define WM97XX_PRP_DET_DIG 0xc000 /* pen detect on, digitiser on */
-#define WM97XX_RPR 0x2000 /* wake up on pen down */
-#define WM97XX_PEN_DOWN 0x8000 /* pen is down */
-#define WM97XX_ADCSRC_MASK 0x7000 /* ADC source mask */
-
-#define WM97XX_AUX_ID1 0x8001
-#define WM97XX_AUX_ID2 0x8002
-#define WM97XX_AUX_ID3 0x8003
-#define WM97XX_AUX_ID4 0x8004
-
-/* Codec GPIO's */
-#define WM97XX_MAX_GPIO 16
-#define WM97XX_GPIO_1 (1 << 1)
-#define WM97XX_GPIO_2 (1 << 2)
-#define WM97XX_GPIO_3 (1 << 3)
-#define WM97XX_GPIO_4 (1 << 4)
-#define WM97XX_GPIO_5 (1 << 5)
-#define WM97XX_GPIO_6 (1 << 6)
-#define WM97XX_GPIO_7 (1 << 7)
-#define WM97XX_GPIO_8 (1 << 8)
-#define WM97XX_GPIO_9 (1 << 9)
-#define WM97XX_GPIO_10 (1 << 10)
-#define WM97XX_GPIO_11 (1 << 11)
-#define WM97XX_GPIO_12 (1 << 12)
-#define WM97XX_GPIO_13 (1 << 13)
-#define WM97XX_GPIO_14 (1 << 14)
-#define WM97XX_GPIO_15 (1 << 15)
-
-#define AC97_LINK_FRAME 21 /* time in uS for AC97 link frame */
-
-#endif /* _PALMLD_AC97_H_ */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2006-11-17 08:18:11
|
Revision: 675
http://svn.sourceforge.net/hackndev/?rev=675&view=rev
Author: bobofdoom
Date: 2006-11-17 00:18:03 -0800 (Fri, 17 Nov 2006)
Log Message:
-----------
l4p: Applying pxa2xx-ac97 errata fix E54 to all pxa27x devices and some minor cosmetic changes.
Modified Paths:
--------------
linux4palm/linux/trunk/sound/arm/pxa2xx-ac97.c
Modified: linux4palm/linux/trunk/sound/arm/pxa2xx-ac97.c
===================================================================
--- linux4palm/linux/trunk/sound/arm/pxa2xx-ac97.c 2006-11-16 21:29:19 UTC (rev 674)
+++ linux4palm/linux/trunk/sound/arm/pxa2xx-ac97.c 2006-11-17 08:18:03 UTC (rev 675)
@@ -63,30 +63,32 @@
gsr_bits = 0;
val = *reg_addr;
-// cris: dunno if it will work with all PXA27x so it's active only for the TX
-//#ifdef CONFIG_PXA27x
-#ifdef CONFIG_MACH_PALMTX
- // recommended procedure for reg 0x54 (see PXA27x Specification Update: 28007109.pdf sec.: E54)
- if (reg == AC97_GPIO_STATUS){
- if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_CDONE, 1) <= 0 &&
- !((GSR | gsr_bits) & GSR_CDONE)) {
- printk(KERN_ERR "%s: read error (ac97_reg=%d GSR=%#lx)\n",
- __FUNCTION__, reg, GSR | gsr_bits);
+#ifdef CONFIG_PXA27x
+ /* recommended procedure for reg 0x54
+ (see PXA27x Specification Update: 28007109.pdf sec.: E54) */
+ if (reg == AC97_GPIO_STATUS)
+ {
+ if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_CDONE,
+ 1) <= 0 && !((GSR | gsr_bits) & GSR_CDONE)) {
+ printk(KERN_ERR "%s: read error (ac97_reg=%d "
+ "GSR=%#lx)\n", __FUNCTION__,
+ reg, GSR | gsr_bits);
val = -1;
goto out;
}
GSR = GSR_CDONE | GSR_SDONE;
-
}
- else {
+ else
#else
- if (reg == AC97_GPIO_STATUS)
+ if (reg == AC97_GPIO_STATUS)
goto out;
#endif
- if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_SDONE, 1) <= 0 &&
- !((GSR | gsr_bits) & GSR_SDONE)) {
+
+ if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_SDONE, 1) <= 0
+ && !((GSR | gsr_bits) & GSR_SDONE))
+ {
printk(KERN_ERR "%s: read error (ac97_reg=%d GSR=%#lx)\n",
- __FUNCTION__, reg, GSR | gsr_bits);
+ __FUNCTION__, reg, GSR | gsr_bits);
val = -1;
goto out;
}
@@ -115,20 +117,21 @@
GSR = GSR_CDONE | GSR_SDONE;
gsr_bits = 0;
*reg_addr = val;
-//#ifdef CONFIG_PXA27x
-#ifdef CONFIG_MACH_PALMTX
- // recommended procedure for reg 0x54 (see PXA27x Specification Update: 28007109.pdf sec.: E54)
- if (reg == AC97_GPIO_STATUS){
+
+#ifdef CONFIG_PXA27x
+ /* recommended procedure for reg 0x54
+ (see PXA27x Specification Update: 28007109.pdf sec.: E54) */
+ if (reg == AC97_GPIO_STATUS) {
udelay(50);
- }
- else {
+ } else {
#endif
- if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_CDONE, 1) <= 0 &&
- !((GSR | gsr_bits) & GSR_CDONE))
- printk(KERN_ERR "%s: write error (ac97_reg=%d GSR=%#lx)\n",
- __FUNCTION__, reg, GSR | gsr_bits);
-//#ifdef CONFIG_PXA27x
-#ifdef CONFIG_MACH_PALMTX
+ if (wait_event_timeout(gsr_wq, (GSR | gsr_bits) & GSR_CDONE,
+ 1) <= 0 && !((GSR | gsr_bits) & GSR_CDONE)) {
+ printk(KERN_ERR "%s: write error (ac97_reg=%d "
+ "GSR=%#lx)\n", __FUNCTION__,
+ reg, GSR | gsr_bits);
+ }
+#ifdef CONFIG_PXA27x
}
#endif
mutex_unlock(&car_mutex);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-16 21:36:29
|
Revision: 674
http://svn.sourceforge.net/hackndev/?rev=674&view=rev
Author: farcaller
Date: 2006-11-16 13:29:19 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
svn goes to hell, will publish to git later
Removed Paths:
-------------
cmh/trunk/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-16 21:25:24
|
Revision: 672
http://svn.sourceforge.net/hackndev/?rev=672&view=rev
Author: farcaller
Date: 2006-11-16 13:25:14 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
Removed Paths:
-------------
cmh/trunk/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-16 21:18:21
|
Revision: 670
http://svn.sourceforge.net/hackndev/?rev=670&view=rev
Author: farcaller
Date: 2006-11-16 13:14:34 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
Removed Paths:
-------------
cmh/trunk/apps/
cmh/trunk/manage.py
cmh/trunk/media2/
cmh/trunk/settings.py
cmh/trunk/templates/
cmh/trunk/urls.py
Deleted: cmh/trunk/manage.py
===================================================================
--- cmh/trunk/manage.py 2006-11-16 21:08:00 UTC (rev 669)
+++ cmh/trunk/manage.py 2006-11-16 21:14:34 UTC (rev 670)
@@ -1,11 +0,0 @@
-#!/usr/bin/env python
-from django.core.management import execute_manager
-try:
- import settings # Assumed to be in the same directory.
-except ImportError:
- import sys
- sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
- sys.exit(1)
-
-if __name__ == "__main__":
- execute_manager(settings)
Deleted: cmh/trunk/settings.py
===================================================================
--- cmh/trunk/settings.py 2006-11-16 21:08:00 UTC (rev 669)
+++ cmh/trunk/settings.py 2006-11-16 21:14:34 UTC (rev 670)
@@ -1,108 +0,0 @@
-# Django settings for cmh project.
-
-ROOT_DIR = '/home/farcaller/develop/cmh/'
-
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
-
-ADMINS = (
- ('Farcaller', 'far...@gm...'),
-)
-
-MANAGERS = ADMINS
-DEFAULT_FROM_EMAIL = 'rob...@ha...'
-SERVER_EMAIL = DEFAULT_FROM_EMAIL
-INTERNAL_IPS = (
- '127.0.0.1',
-)
-
-DATABASE_ENGINE = 'sqlite3'
-DATABASE_NAME = ROOT_DIR + 'db/db.sqlite'
-DATABASE_USER = ''
-DATABASE_PASSWORD = ''
-DATABASE_HOST = ''
-DATABASE_PORT = ''
-
-# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
-TIME_ZONE = 'GMT'
-LANGUAGE_CODE = 'en-us'
-SITE_ID = 1
-
-# If you set this to False, Django will make some optimizations so as not
-# to load the internationalization machinery.
-USE_I18N = False
-
-# Absolute path to the directory that holds media.
-# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = ROOT_DIR + 'media/'
-
-# URL that handles the media served from MEDIA_ROOT.
-# Example: "http://media.lawrence.com"
-MEDIA_URL = 'http://localhost/media/'
-
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
-
-# Make this unique, and don't share it with anybody.
-SECRET_KEY = 'k^+wg^dwo!87(f@l9zh07a8^xy299*oo)#lfogst72u87tx&eu'
-
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.load_template_source',
- 'django.template.loaders.app_directories.load_template_source',
-# 'django.template.loaders.eggs.load_template_source',
-)
-
-MIDDLEWARE_CLASSES = (
- 'django.middleware.common.CommonMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.middleware.doc.XViewMiddleware',
-)
-
-APPEND_SLASH = True
-PREPEND_WWW = False
-
-DATE_FORMAT = 'N j, Y'
-DATETIME_FORMAT = 'N j, Y, H:i'
-TIME_FORMAT = 'H:i'
-YEAR_MONTH_FORMAT = 'F Y'
-MONTH_DAY_FORMAT = 'F j'
-
-# This saves bandwidth but slows down performance
-USE_ETAGS = False
-
-ROOT_URLCONF = 'cmh.urls'
-
-TEMPLATE_DIRS = (
- ROOT_DIR + 'templates/',
-)
-
-TEMPLATE_CONTEXT_PROCESSORS = (
- 'django.core.context_processors.auth',
- 'django.core.context_processors.debug',
- 'django.core.context_processors.i18n',
- 'cmh.apps.projects.context_processors.category',
-)
-
-NEWS_ARTICLE_INTRO_SIZE = 300
-
-INSTALLED_APPS = (
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
- 'django.contrib.admin',
-
- 'django.contrib.humanize',
-
- 'cmh.apps.syscore',
- 'cmh.apps.news',
- 'cmh.apps.frontpage',
- 'cmh.apps.projects',
- 'cmh.apps.forums',
- 'cmh.apps.users',
- 'cmh.apps.polls',
-)
Deleted: cmh/trunk/urls.py
===================================================================
--- cmh/trunk/urls.py 2006-11-16 21:08:00 UTC (rev 669)
+++ cmh/trunk/urls.py 2006-11-16 21:14:34 UTC (rev 670)
@@ -1,30 +0,0 @@
-from django.conf.urls.defaults import *
-
-urlpatterns = patterns('',
- # Front page
- (r'^$', 'cmh.apps.frontpage.views.index'),
-
- # Admin
- (r'^admin/', include('django.contrib.admin.urls')),
-
- # News
- (r'^news/', include('cmh.apps.news.urls')),
-
- # Forum
- ##(r'^forum/', include('cmh.apps.forum.urls')),
-
- # Projects
- (r'^projects/', include('cmh.apps.projects.urls')),
-
- # RPC (AJAX callback stuff)
- ##(r'^rpc/', include('cmh.apps.rpc.urls')),
-
- # Downloads
- ##(r'^downloads/', include('cmh.apps.downloads.urls')),
-
- # Links
- ##(r'^links/', include('cmh.apps.links.urls')),
-
- # Resources (for testing)
- (r'^media2/(.*)$', 'django.views.static.serve', {'document_root': '/home/farcaller/develop/cmh/media2'}),
-)
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-16 21:07:55
|
Revision: 666
http://svn.sourceforge.net/hackndev/?rev=666&view=rev
Author: farcaller
Date: 2006-11-16 13:00:24 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
Merging first part of patched postmr (broken)
Added Paths:
-----------
cmh/trunk/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-16 21:05:03
|
Revision: 668
http://svn.sourceforge.net/hackndev/?rev=668&view=rev
Author: farcaller
Date: 2006-11-16 13:04:50 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
CMH: Merging first part of patched postmr (broken)
Added Paths:
-----------
cmh/trunk/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-16 21:04:31
|
Revision: 667
http://svn.sourceforge.net/hackndev/?rev=667&view=rev
Author: farcaller
Date: 2006-11-16 13:04:11 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
r666 failed, reverting...
Removed Paths:
-------------
cmh/trunk/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-16 20:55:25
|
Revision: 665
http://svn.sourceforge.net/hackndev/?rev=665&view=rev
Author: farcaller
Date: 2006-11-16 12:55:07 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
CMH: preparing to merge last branch
Added Paths:
-----------
cmh/branches/0.2-postmr/
Removed Paths:
-------------
cmh/trunk/
Copied: cmh/branches/0.2-postmr (from rev 664, cmh/trunk)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2006-11-16 03:05:53
|
Revision: 663
http://svn.sourceforge.net/hackndev/?rev=663&view=rev
Author: bobofdoom
Date: 2006-11-15 19:05:47 -0800 (Wed, 15 Nov 2006)
Log Message:
-----------
l4p: added machine independent WM9712 header.
Added Paths:
-----------
linux4palm/linux/trunk/include/sound/wm9712.h
Added: linux4palm/linux/trunk/include/sound/wm9712.h
===================================================================
--- linux4palm/linux/trunk/include/sound/wm9712.h (rev 0)
+++ linux4palm/linux/trunk/include/sound/wm9712.h 2006-11-16 03:05:47 UTC (rev 663)
@@ -0,0 +1,108 @@
+/*
+ * Definitions for WM9712 AC97 codec
+ * Based upon wm97xx.h by Liam Girdwood, Wolfson Microelectronics
+ */
+
+#ifndef _WM9712_H_
+#define _WM9712_H_
+
+
+#define AC97_ADD_FUNC 0x58 /* Additional functions */
+
+/*
+ * WM97xx AC97 Touchscreen registers
+ */
+#define AC97_WM97XX_DIGITISER1 0x76
+#define AC97_WM97XX_DIGITISER2 0x78
+#define AC97_WM97XX_DIGITISER_RD 0x7a
+#define AC97_WM9713_DIG1 0x74
+#define AC97_WM9713_DIG2 AC97_WM97XX_DIGITISER1
+#define AC97_WM9713_DIG3 AC97_WM97XX_DIGITISER2
+
+/*
+ * WM97xx GPGIO states
+ */
+#define WM97XX_GPIO_OUT 0
+#define WM97XX_GPIO_IN 1
+#define WM97XX_GPIO_POL_HIGH 1
+#define WM97XX_GPIO_POL_LOW 0
+#define WM97XX_GPIO_STICKY 1
+#define WM97XX_GPIO_NOTSTICKY 0
+#define WM97XX_GPIO_WAKE 1
+#define WM97XX_GPIO_NOWAKE 0
+
+/*
+ * WM97xx register bits
+ */
+#define WM97XX_POLL 0x8000 /* initiate a polling measurement */
+#define WM97XX_ADCSEL_X 0x1000 /* x coord measurement */
+#define WM97XX_ADCSEL_Y 0x2000 /* y coord measurement */
+#define WM97XX_ADCSEL_PRES 0x3000 /* pressure measurement */
+#define WM97XX_ADCSEL_COMP1 0x4000 /* aux1 measurement */
+#define WM97XX_ADCSEL_COMP2 0x5000 /* aux2 measurement */
+#define WM97XX_ADCSEL_BMON 0x6000 /* aux3 measurement */
+#define WM97XX_ADCSEL_WIPER 0x7000 /* aux4 measurement */
+#define WM97XX_ADCSEL_MASK 0x7000
+#define WM97XX_COO 0x0800 /* enable coordinate mode */
+#define WM97XX_CTC 0x0400 /* enable continuous mode */
+#define WM97XX_CM_RATE_93 0x0000 /* 93.75Hz continuous rate */
+#define WM97XX_CM_RATE_187 0x0100 /* 187.5Hz continuous rate */
+#define WM97XX_CM_RATE_375 0x0200 /* 375Hz continuous rate */
+#define WM97XX_CM_RATE_750 0x0300 /* 750Hz continuous rate */
+#define WM97XX_CM_RATE_8K 0x00f0 /* 8kHz continuous rate */
+#define WM97XX_CM_RATE_12K 0x01f0 /* 12kHz continuous rate */
+#define WM97XX_CM_RATE_24K 0x02f0 /* 24kHz continuous rate */
+#define WM97XX_CM_RATE_48K 0x03f0 /* 48kHz continuous rate */
+#define WM97XX_CM_RATE_MASK 0x03f0
+#define WM97XX_RATE(i) (((i & 3) << 8) | ((i & 4) ? 0xf0 : 0))
+#define WM97XX_DELAY(i) ((i << 4) & 0x00f0) /* sample delay times */
+#define WM97XX_DELAY_MASK 0x00f0
+#define WM97XX_SLEN 0x0008 /* slot read back enable */
+#define WM97XX_SLT(i) ((i - 5) & 0x7) /* touchpanel slot selection (5-11) */
+#define WM97XX_SLT_MASK 0x0007
+#define WM97XX_PRP_DETW 0x4000 /* pen detect on, digitiser off, wake up */
+#define WM97XX_PRP_DET 0x8000 /* pen detect on, digitiser off, no wake up */
+#define WM97XX_PRP_DET_DIG 0xc000 /* pen detect on, digitiser on */
+#define WM97XX_RPR 0x2000 /* wake up on pen down */
+#define WM97XX_PEN_DOWN 0x8000 /* pen is down */
+#define WM97XX_ADCSRC_MASK 0x7000 /* ADC source mask */
+
+#define WM97XX_AUX_ID1 0x8001
+#define WM97XX_AUX_ID2 0x8002
+#define WM97XX_AUX_ID3 0x8003
+#define WM97XX_AUX_ID4 0x8004
+
+/* Codec GPIO's */
+#define WM97XX_MAX_GPIO 16
+#define WM97XX_GPIO_1 (1 << 1)
+#define WM97XX_GPIO_2 (1 << 2)
+#define WM97XX_GPIO_3 (1 << 3)
+#define WM97XX_GPIO_4 (1 << 4)
+#define WM97XX_GPIO_5 (1 << 5)
+#define WM97XX_GPIO_6 (1 << 6)
+#define WM97XX_GPIO_7 (1 << 7)
+#define WM97XX_GPIO_8 (1 << 8)
+#define WM97XX_GPIO_9 (1 << 9)
+#define WM97XX_GPIO_10 (1 << 10)
+#define WM97XX_GPIO_11 (1 << 11)
+#define WM97XX_GPIO_12 (1 << 12)
+#define WM97XX_GPIO_13 (1 << 13)
+#define WM97XX_GPIO_14 (1 << 14)
+#define WM97XX_GPIO_15 (1 << 15)
+
+/* WM9712 Bits */
+#define WM9712_45W 0x1000 /* set for 5-wire touchscreen */
+#define WM9712_PDEN 0x0800 /* measure only when pen down */
+#define WM9712_WAIT 0x0200 /* wait until adc is read before next sample */
+#define WM9712_PIL 0x0100 /* current used for pressure measurement. set 400uA else 200uA */
+#define WM9712_MASK_HI 0x0040 /* hi on mask pin (47) stops conversions */
+#define WM9712_MASK_EDGE 0x0080 /* rising/falling edge on pin delays sample */
+#define WM9712_MASK_SYNC 0x00c0 /* rising/falling edge on mask initiates sample */
+#define WM9712_RPU(i) (i&0x3f) /* internal pull up on pen detect (64k / rpu) */
+#define WM9712_PD(i) (0x1 << i) /* power management */
+#define WM9712_ADCSEL_COMP1 0x4000 /* COMP1/AUX1 measurement (pin29) */
+#define WM9712_ADCSEL_COMP2 0x5000 /* COMP2/AUX2 measurement (pin30) */
+#define WM9712_ADCSEL_BMON 0x6000 /* BMON/AUX3 measurement (pin31) */
+#define WM9712_ADCSEL_WIPER 0x7000 /* WIPER/AUX4 measurement (pin12) */
+
+#endif /* _A730_AC97_H_ */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-03 21:26:49
|
Revision: 662
http://svn.sourceforge.net/hackndev/?rev=662&view=rev
Author: farcaller
Date: 2006-11-03 13:26:24 -0800 (Fri, 03 Nov 2006)
Log Message:
-----------
l4p: forgot to remove useless debug stuff
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/misc/battchargemon.c
Modified: linux4palm/linux/trunk/drivers/misc/battchargemon.c
===================================================================
--- linux4palm/linux/trunk/drivers/misc/battchargemon.c 2006-11-03 21:23:57 UTC (rev 661)
+++ linux4palm/linux/trunk/drivers/misc/battchargemon.c 2006-11-03 21:26:24 UTC (rev 662)
@@ -19,8 +19,6 @@
#include <linux/device.h>
#include <linux/battchargemon.h>
-#define DEB(s) printk(KERN_ERR s "\n");
-
/**** handlers ****/
static ssize_t battery_show_id(struct class_device *cdev, char *buf) {
struct battery *bat = container_of(cdev, struct battery, class_dev);
@@ -146,7 +144,6 @@
static int __init battcharge_class_init(void)
{
int ret = class_register(&battery_class);
- DEB("initializing battcharge");
if(likely(ret)) {
if(likely((ret = class_register(&charger_class)) == 0)) {
return 0;
@@ -159,7 +156,6 @@
static void __exit battcharge_class_exit(void)
{
- DEB("modexit");
class_unregister(&charger_class);
class_unregister(&battery_class);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-03 21:24:17
|
Revision: 661
http://svn.sourceforge.net/hackndev/?rev=661&view=rev
Author: farcaller
Date: 2006-11-03 13:23:57 -0800 (Fri, 03 Nov 2006)
Log Message:
-----------
l4p: made battchargemon usable
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/misc/battchargemon.c
linux4palm/linux/trunk/include/linux/battchargemon.h
Modified: linux4palm/linux/trunk/drivers/misc/battchargemon.c
===================================================================
--- linux4palm/linux/trunk/drivers/misc/battchargemon.c 2006-11-03 20:09:33 UTC (rev 660)
+++ linux4palm/linux/trunk/drivers/misc/battchargemon.c 2006-11-03 21:23:57 UTC (rev 661)
@@ -19,9 +19,35 @@
#include <linux/device.h>
#include <linux/battchargemon.h>
+#define DEB(s) printk(KERN_ERR s "\n");
+/**** handlers ****/
+static ssize_t battery_show_id(struct class_device *cdev, char *buf) {
+ struct battery *bat = container_of(cdev, struct battery, class_dev);
+ return sprintf(buf, "%s\n", bat->id);
+}
+static ssize_t charger_show_id(struct class_device *cdev, char *buf) {
+ struct charger *bat = container_of(cdev, struct charger, class_dev);
+ return sprintf(buf, "%s\n", bat->id);
+}
+#define show_int_val(_class, _name) \
+static ssize_t _class##_show_##_name(struct class_device *cdev, char *buf) { \
+ struct _class *cl = container_of(cdev, struct _class, class_dev); \
+ if (cl->get_##_name) \
+ return sprintf(buf, "%d\n", cl->get_##_name(cl)); \
+ return 0; \
+}
+
+show_int_val(battery, min_voltage);
+show_int_val(battery, max_voltage);
+show_int_val(battery, voltage);
+show_int_val(battery, current);
+show_int_val(battery, temp);
+show_int_val(battery, charge);
+show_int_val(charger, status);
+
static struct class battery_class = {
.name = "battery",
// .hotplug = battery_class_hotplug,
@@ -32,9 +58,95 @@
.name = "charger",
};
+#define CLS_DEV_ATTR(_class, _name, _mode, _show, _store) \
+ struct class_device_attribute _class##_class_device_attr_##_name = { \
+ .attr = { .name = #_name, .mode = _mode, .owner = THIS_MODULE }, \
+ .show = _show, \
+ .store = _store, \
+ }
+
+/**** device attributes ****/
+static CLS_DEV_ATTR (battery, id, 0444, battery_show_id, NULL);
+static CLS_DEV_ATTR (battery, min_voltage, 0444, battery_show_min_voltage, NULL);
+static CLS_DEV_ATTR (battery, max_voltage, 0444, battery_show_max_voltage, NULL);
+static CLS_DEV_ATTR (battery, voltage, 0444, battery_show_voltage, NULL);
+static CLS_DEV_ATTR (battery, current, 0444, battery_show_current, NULL);
+static CLS_DEV_ATTR (battery, temp, 0444, battery_show_temp, NULL);
+static CLS_DEV_ATTR (battery, charge, 0444, battery_show_charge, NULL);
+
+static CLS_DEV_ATTR (charger, id, 0444, charger_show_id, NULL);
+static CLS_DEV_ATTR (charger, status, 0444, charger_show_status, NULL);
+
+/**** class registration ****/
+
+#define create_entry_conditional(_name) \
+if(bat->get_##_name) \
+ class_device_create_file(&bat->class_dev, &battery_class_device_attr_##_name);
+
+int battery_class_register(struct battery *bat)
+{
+ int rc = 0;
+
+ WARN_ON(!bat->name);
+ bat->class_dev.class = &battery_class;
+ strcpy(bat->class_dev.class_id, bat->name);
+ rc = class_device_register(&bat->class_dev);
+ if(rc)
+ goto out;
+
+ if(bat->id)
+ class_device_create_file(&bat->class_dev, &battery_class_device_attr_id);
+ create_entry_conditional(min_voltage);
+ create_entry_conditional(max_voltage);
+ create_entry_conditional(voltage);
+ create_entry_conditional(current);
+ create_entry_conditional(temp);
+ create_entry_conditional(charge);
+
+out:
+ return rc;
+}
+EXPORT_SYMBOL (battery_class_register);
+
+void battery_class_unregister (struct battery *bat)
+{
+ class_device_unregister(&bat->class_dev);
+}
+EXPORT_SYMBOL (battery_class_unregister);
+
+int charger_class_register(struct charger *cha)
+{
+ int rc = 0;
+
+ WARN_ON(!cha->name);
+ cha->class_dev.class = &charger_class;
+ strcpy(cha->class_dev.class_id, cha->name);
+ rc = class_device_register(&cha->class_dev);
+ if(rc)
+ goto out;
+
+ if(cha->id)
+ class_device_create_file(&cha->class_dev, &charger_class_device_attr_id);
+ if(cha->get_status)
+ class_device_create_file(&cha->class_dev, &charger_class_device_attr_status);
+
+out:
+ return rc;
+}
+EXPORT_SYMBOL (charger_class_register);
+
+void charger_class_unregister (struct charger *cha)
+{
+ class_device_unregister(&cha->class_dev);
+}
+EXPORT_SYMBOL (charger_class_unregister);
+
+/**** module init/exit ****/
+
static int __init battcharge_class_init(void)
{
int ret = class_register(&battery_class);
+ DEB("initializing battcharge");
if(likely(ret)) {
if(likely((ret = class_register(&charger_class)) == 0)) {
return 0;
@@ -47,6 +159,7 @@
static void __exit battcharge_class_exit(void)
{
+ DEB("modexit");
class_unregister(&charger_class);
class_unregister(&battery_class);
}
Modified: linux4palm/linux/trunk/include/linux/battchargemon.h
===================================================================
--- linux4palm/linux/trunk/include/linux/battchargemon.h 2006-11-03 20:09:33 UTC (rev 660)
+++ linux4palm/linux/trunk/include/linux/battchargemon.h 2006-11-03 21:23:57 UTC (rev 661)
@@ -32,17 +32,13 @@
struct charger {
struct class_device class_dev;
const char *name;
+ char *id;
#define CHARGER_DISCONNECTED 0
#define CHARGER_CONNECTED 1
int (*get_status)(struct charger *);
};
-#define BATTERY_STATUS_UNKNOWN 0
-#define BATTERY_STATUS_CHARGING 1
-#define BATTERY_STATUS_DISCHARGING 2
-#define BATTERY_STATUS_NOT_CHARGING 3
-
extern int battery_class_register(struct battery *);
extern void battery_class_unregister(struct battery *);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-03 20:09:49
|
Revision: 660
http://svn.sourceforge.net/hackndev/?rev=660&view=rev
Author: farcaller
Date: 2006-11-03 12:09:33 -0800 (Fri, 03 Nov 2006)
Log Message:
-----------
l4p: initial commit of battery/charger classes
Added Paths:
-----------
linux4palm/linux/trunk/drivers/misc/battchargemon.c
linux4palm/linux/trunk/include/linux/battchargemon.h
Added: linux4palm/linux/trunk/drivers/misc/battchargemon.c
===================================================================
--- linux4palm/linux/trunk/drivers/misc/battchargemon.c (rev 0)
+++ linux4palm/linux/trunk/drivers/misc/battchargemon.c 2006-11-03 20:09:33 UTC (rev 660)
@@ -0,0 +1,63 @@
+/*
+ * battchargemon.c
+ *
+ * Battery and charger monitor class, mostly inspired by battery.c
+ *
+ * (c) 2006 Vladimir "Farcaller" Pouzanov <far...@gm...>
+ *
+ * You may use this code as per GPL version 2
+ *
+ * All volatges, currents, charges, and temperatures in mV, mA, mJ and
+ * tenths of a degree unless otherwise stated.
+ *
+ */
+
+#include <linux/config.h>
+#include <linux/module.h>
+#include <linux/types.h>
+#include <linux/init.h>
+#include <linux/device.h>
+#include <linux/battchargemon.h>
+
+
+
+
+static struct class battery_class = {
+ .name = "battery",
+// .hotplug = battery_class_hotplug,
+// .release = battery_class_release,
+};
+
+static struct class charger_class = {
+ .name = "charger",
+};
+
+static int __init battcharge_class_init(void)
+{
+ int ret = class_register(&battery_class);
+ if(likely(ret)) {
+ if(likely((ret = class_register(&charger_class)) == 0)) {
+ return 0;
+ } else {
+ class_unregister(&battery_class);
+ }
+ }
+ return ret;
+}
+
+static void __exit battcharge_class_exit(void)
+{
+ class_unregister(&charger_class);
+ class_unregister(&battery_class);
+}
+
+#ifdef MODULE
+module_init(battcharge_class_init);
+#else /* start early */
+subsys_initcall(battcharge_class_init);
+#endif
+module_exit(battcharge_class_exit);
+
+MODULE_DESCRIPTION("Battery and charger driver");
+MODULE_AUTHOR("Vladimir Pouzanov");
+MODULE_LICENSE("GPL");
Added: linux4palm/linux/trunk/include/linux/battchargemon.h
===================================================================
--- linux4palm/linux/trunk/include/linux/battchargemon.h (rev 0)
+++ linux4palm/linux/trunk/include/linux/battchargemon.h 2006-11-03 20:09:33 UTC (rev 660)
@@ -0,0 +1,51 @@
+/*
+ * battchargemon.h
+ *
+ * Battery and charger monitor class
+ *
+ * (c) 2006 Vladimir "Farcaller" Pouzanov <far...@gm...>
+ *
+ * You may use this code as per GPL version 2
+ *
+ */
+
+#ifndef _LINUX_BATTCHARGEMON_H
+#define _LINUX_BATTCHARGEMON_H
+
+#include <linux/device.h>
+
+struct battery {
+ struct class_device class_dev;
+ const char *name;
+ char *id;
+ int (*get_min_voltage)(struct battery *);
+ int (*get_max_voltage)(struct battery *);
+ int (*get_voltage)(struct battery *);
+
+ int (*get_current)(struct battery *);
+
+ int (*get_temp)(struct battery *);
+
+ int (*get_charge)(struct battery *);
+};
+
+struct charger {
+ struct class_device class_dev;
+ const char *name;
+
+#define CHARGER_DISCONNECTED 0
+#define CHARGER_CONNECTED 1
+ int (*get_status)(struct charger *);
+};
+
+#define BATTERY_STATUS_UNKNOWN 0
+#define BATTERY_STATUS_CHARGING 1
+#define BATTERY_STATUS_DISCHARGING 2
+#define BATTERY_STATUS_NOT_CHARGING 3
+
+extern int battery_class_register(struct battery *);
+extern void battery_class_unregister(struct battery *);
+
+
+#endif
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-11-02 05:40:27
|
Revision: 659
http://svn.sourceforge.net/hackndev/?rev=659&view=rev
Author: farcaller
Date: 2006-11-01 21:31:15 -0800 (Wed, 01 Nov 2006)
Log Message:
-----------
palmt3: updated defconfig to the one, that 0.83 uses
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/configs/palmt3_defconfig
Modified: linux4palm/linux/trunk/arch/arm/configs/palmt3_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmt3_defconfig 2006-10-31 13:41:37 UTC (rev 658)
+++ linux4palm/linux/trunk/arch/arm/configs/palmt3_defconfig 2006-11-02 05:31:15 UTC (rev 659)
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.17-hnd0-tt3
-# Tue Oct 31 09:50:51 2006
+# Wed Nov 1 21:22:55 2006
#
CONFIG_ARM=y
CONFIG_MMU=y
@@ -210,8 +210,7 @@
# CONFIG_PREEMPT is not set
CONFIG_NO_IDLE_HZ=y
CONFIG_HZ=100
-CONFIG_AEABI=y
-CONFIG_OABI_COMPAT=y
+# CONFIG_AEABI is not set
# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
@@ -266,6 +265,7 @@
CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_AOUT is not set
CONFIG_BINFMT_MISC=m
+# CONFIG_ARTHUR is not set
#
# Power management options
@@ -306,15 +306,9 @@
CONFIG_INET_TCP_DIAG=m
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_BIC=y
-CONFIG_IPV6=y
-# CONFIG_IPV6_PRIVACY is not set
-# CONFIG_IPV6_ROUTER_PREF is not set
-# CONFIG_INET6_AH is not set
-# CONFIG_INET6_ESP is not set
-# CONFIG_INET6_IPCOMP is not set
+# CONFIG_IPV6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
-# CONFIG_IPV6_TUNNEL is not set
# CONFIG_NETFILTER is not set
#
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2006-10-31 13:41:48
|
Revision: 658
http://svn.sourceforge.net/hackndev/?rev=658&view=rev
Author: bobofdoom
Date: 2006-10-31 05:41:37 -0800 (Tue, 31 Oct 2006)
Log Message:
-----------
palmld: defconfig: Qt/C requires compaq protocol tsdev.
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 2006-10-31 07:51:11 UTC (rev 657)
+++ linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig 2006-10-31 13:41:37 UTC (rev 658)
@@ -598,7 +598,9 @@
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
-# CONFIG_INPUT_TSDEV is not set
+CONFIG_INPUT_TSDEV=y
+CONFIG_INPUT_TSDEV_SCREEN_X=320
+CONFIG_INPUT_TSDEV_SCREEN_Y=480
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-10-31 07:51:17
|
Revision: 657
http://svn.sourceforge.net/hackndev/?rev=657&view=rev
Author: farcaller
Date: 2006-10-30 23:51:11 -0800 (Mon, 30 Oct 2006)
Log Message:
-----------
palmt3: updated defconfig
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/configs/palmt3_defconfig
Modified: linux4palm/linux/trunk/arch/arm/configs/palmt3_defconfig
===================================================================
--- linux4palm/linux/trunk/arch/arm/configs/palmt3_defconfig 2006-10-31 06:35:33 UTC (rev 656)
+++ linux4palm/linux/trunk/arch/arm/configs/palmt3_defconfig 2006-10-31 07:51:11 UTC (rev 657)
@@ -1,8 +1,7 @@
-# zcat /proc/config.gz
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.17-hnd0-tt3
-# Tue Oct 24 21:02:13 2006
+# Tue Oct 31 09:50:51 2006
#
CONFIG_ARM=y
CONFIG_MMU=y
@@ -17,7 +16,6 @@
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
-CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
#
@@ -209,7 +207,7 @@
#
# Kernel Features
#
-CONFIG_PREEMPT=y
+# CONFIG_PREEMPT is not set
CONFIG_NO_IDLE_HZ=y
CONFIG_HZ=100
CONFIG_AEABI=y
@@ -599,7 +597,7 @@
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
CONFIG_INPUT_TOUCHSCREEN=y
-CONFIG_TOUCHSCREEN_TSC2101=y
+CONFIG_TOUCHSCREEN_TSC2101=m
# CONFIG_TOUCHSCREEN_GUNZE is not set
# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
@@ -774,7 +772,7 @@
# CONFIG_SOC_TC6393XB is not set
# CONFIG_HTC_ASIC2 is not set
# CONFIG_HTC_ASIC3 is not set
-CONFIG_SOC_TSC2101=y
+CONFIG_SOC_TSC2101=m
#
# Misc devices
@@ -860,14 +858,14 @@
#
# Sound
#
-CONFIG_SOUND=y
+CONFIG_SOUND=m
#
# Advanced Linux Sound Architecture
#
-CONFIG_SND=y
-CONFIG_SND_TIMER=y
-CONFIG_SND_PCM=y
+CONFIG_SND=m
+CONFIG_SND_TIMER=m
+CONFIG_SND_PCM=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
@@ -876,16 +874,15 @@
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_DYNAMIC_MINORS=y
-CONFIG_SND_SUPPORT_OLD_API=y
+# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_VERBOSE_PROCFS is not set
-CONFIG_SND_VERBOSE_PRINTK=y
-CONFIG_SND_DEBUG=y
-CONFIG_SND_DEBUG_DETECT=y
+# CONFIG_SND_VERBOSE_PRINTK is not set
+# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
-# CONFIG_SND_DUMMY is not set
+CONFIG_SND_DUMMY=m
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
@@ -902,7 +899,7 @@
# CONFIG_SND_HX4700 is not set
# CONFIG_SND_HTCUNIVERSAL is not set
# CONFIG_SND_H5XXX_AK4535 is not set
-CONFIG_SND_PXA2xx_I2SOUND=y
+CONFIG_SND_PXA2xx_I2SOUND=m
# CONFIG_SND_PXA2XX_AC97 is not set
#
@@ -1127,7 +1124,6 @@
# CONFIG_DETECT_SOFTLOCKUP is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_DEBUG_SLAB is not set
-CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-10-31 06:35:43
|
Revision: 656
http://svn.sourceforge.net/hackndev/?rev=656&view=rev
Author: farcaller
Date: 2006-10-30 22:35:33 -0800 (Mon, 30 Oct 2006)
Log Message:
-----------
palmt3: moved lcd power to palmt3.c
removed palmt3_bl_device until someone figures wtf is that (old backlight driver?)
returned pxafb_backlight_power code
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmt3/palmt3.c
linux4palm/linux/trunk/drivers/video/pxafb.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmt3/palmt3.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmt3/palmt3.c 2006-10-31 06:03:40 UTC (rev 655)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmt3/palmt3.c 2006-10-31 06:35:33 UTC (rev 656)
@@ -44,11 +44,34 @@
/*** BackLight ***/
+/* FIXME: wtf is this? Pending for removal
static struct platform_device palmt3_bl_device = {
.name = "palmt3-bl",
.id = -1,
};
+*/
+static void palmt3_pxafb_backlight_power(int level)
+{
+ // just turn it on/off, other controls via backlight class
+ if(level)
+ CKEN = CKEN | CKEN1_PWM1;
+ else
+ CKEN = CKEN & (~CKEN1_PWM1);
+}
+
+static void palmt3_pxafb_lcd_power(int level)
+{
+ if(level) {
+ GPSR1 = GPIO_bit(38);
+ GPSR1 = GPIO_bit(41);
+
+ } else {
+ GPLR1 = GPIO_bit(38);
+ GPLR1 = GPIO_bit(41);
+ }
+}
+
static struct pxafb_mach_info palmt3lcd __initdata = {
.pixclock = 0,
.xres = 320,
@@ -65,7 +88,8 @@
.lccr0 = 0x003008F9,
.lccr3 = 0x03700002,
- .pxafb_backlight_power = NULL,
+ .pxafb_backlight_power = palmt3_pxafb_backlight_power,
+ .pxafb_lcd_power = palmt3_pxafb_lcd_power,
};
/*** SSP ***/
@@ -223,7 +247,7 @@
/*** INIT ***/
static struct platform_device *devices[] __initdata = {
- &palmt3_bl_device,
+ //&palmt3_bl_device,
&tsc2101_device,
&palmt3_btn_device,
&palmt3_backlight_device,
Modified: linux4palm/linux/trunk/drivers/video/pxafb.c
===================================================================
--- linux4palm/linux/trunk/drivers/video/pxafb.c 2006-10-31 06:03:40 UTC (rev 655)
+++ linux4palm/linux/trunk/drivers/video/pxafb.c 2006-10-31 06:35:33 UTC (rev 656)
@@ -747,11 +747,6 @@
pr_debug("reg_lccr2 0x%08x\n", (unsigned int) fbi->reg_lccr2);
pr_debug("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3);
-#ifdef CONFIG_MACH_T3XSCALE
- GPSR1 = GPIO_bit(38);
- GPSR1 = GPIO_bit(41);
-#endif
-
/* enable LCD controller clock */
pxa_set_cken(CKEN16_LCD, 1);
@@ -791,10 +786,6 @@
/* disable LCD controller clock */
pxa_set_cken(CKEN16_LCD, 0);
-#ifdef CONFIG_MACH_T3XSCALE
- GPCR1 = GPIO_bit(38);
- GPCR1 = GPIO_bit(41);
-#endif
}
/*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-10-31 06:03:47
|
Revision: 655
http://svn.sourceforge.net/hackndev/?rev=655&view=rev
Author: farcaller
Date: 2006-10-30 22:03:40 -0800 (Mon, 30 Oct 2006)
Log Message:
-----------
palmt3: added GPIOs 38 and 41 to enable/disable controller code
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/video/pxafb.c
Modified: linux4palm/linux/trunk/drivers/video/pxafb.c
===================================================================
--- linux4palm/linux/trunk/drivers/video/pxafb.c 2006-10-31 04:03:13 UTC (rev 654)
+++ linux4palm/linux/trunk/drivers/video/pxafb.c 2006-10-31 06:03:40 UTC (rev 655)
@@ -747,6 +747,11 @@
pr_debug("reg_lccr2 0x%08x\n", (unsigned int) fbi->reg_lccr2);
pr_debug("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3);
+#ifdef CONFIG_MACH_T3XSCALE
+ GPSR1 = GPIO_bit(38);
+ GPSR1 = GPIO_bit(41);
+#endif
+
/* enable LCD controller clock */
pxa_set_cken(CKEN16_LCD, 1);
@@ -786,6 +791,10 @@
/* disable LCD controller clock */
pxa_set_cken(CKEN16_LCD, 0);
+#ifdef CONFIG_MACH_T3XSCALE
+ GPCR1 = GPIO_bit(38);
+ GPCR1 = GPIO_bit(41);
+#endif
}
/*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2006-10-31 04:03:29
|
Revision: 654
http://svn.sourceforge.net/hackndev/?rev=654&view=rev
Author: bobofdoom
Date: 2006-10-30 20:03:13 -0800 (Mon, 30 Oct 2006)
Log Message:
-----------
palmld: Enabling many NLS codepages and setting UTF-8 to be default.
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 2006-10-31 02:29:20 UTC (rev 653)
+++ linux4palm/linux/trunk/arch/arm/configs/palmld_defconfig 2006-10-31 04:03:13 UTC (rev 654)
@@ -994,44 +994,44 @@
# Native Language Support
#
CONFIG_NLS=y
-CONFIG_NLS_DEFAULT="iso8859-1"
+CONFIG_NLS_DEFAULT="utf-8"
CONFIG_NLS_CODEPAGE_437=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 is not set
-# CONFIG_NLS_CODEPAGE_869 is not set
+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_866=y
+CONFIG_NLS_CODEPAGE_869=y
# 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 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_8=y
+CONFIG_NLS_CODEPAGE_1250=y
+CONFIG_NLS_CODEPAGE_1251=y
+CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
-# CONFIG_NLS_ISO8859_2 is not set
-# 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 is not set
-# CONFIG_NLS_KOI8_U is not set
+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_KOI8_R=y
+CONFIG_NLS_KOI8_U=y
CONFIG_NLS_UTF8=y
#
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <bob...@us...> - 2006-10-31 02:29:30
|
Revision: 653
http://svn.sourceforge.net/hackndev/?rev=653&view=rev
Author: bobofdoom
Date: 2006-10-30 18:29:20 -0800 (Mon, 30 Oct 2006)
Log Message:
-----------
l4p: Fixed 12-hour out clock bug. Committed for step2back.
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/time.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/time.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/time.c 2006-10-30 22:39:11 UTC (rev 652)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/time.c 2006-10-31 02:29:20 UTC (rev 653)
@@ -29,18 +29,24 @@
#include <asm/mach/time.h>
#include <asm/arch/pxa-regs.h>
-#define ONE_YEAR 31557600 /* seconds */
+#define PL_ODDS (1970-CONFIG_PXA_RTC_EPOCH)
+#define SECS_PER_DAY 24*60*60
+#define SECS_PER_LEAP (SECS_PER_DAY*366)
+#define SECS_PER_OTHER (SECS_PER_DAY*365)
+#define SECS_LY (((PL_ODDS-(PL_ODDS % 4))/4)*SECS_PER_LEAP)
+#define SECS_OY ((PL_ODDS-((PL_ODDS-(PL_ODDS % 4))/4))*SECS_PER_OTHER)
+#define SECS_ODDS_SUM (SECS_LY+SECS_OY)
static inline unsigned long pxa_get_rtc_time(void)
{
- return RCNR - (1970-CONFIG_PXA_RTC_EPOCH)*ONE_YEAR;
+ return RCNR - SECS_ODDS_SUM;
}
static int pxa_set_rtc(void)
{
unsigned long current_time = xtime.tv_sec;
- current_time += (1970-CONFIG_PXA_RTC_EPOCH)*ONE_YEAR;
+ current_time += SECS_ODDS_SUM;
if (RTSR & RTSR_ALE) {
/* make sure not to forward the clock over an alarm */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <far...@us...> - 2006-10-30 22:39:19
|
Revision: 652
http://svn.sourceforge.net/hackndev/?rev=652&view=rev
Author: farcaller
Date: 2006-10-30 14:39:11 -0800 (Mon, 30 Oct 2006)
Log Message:
-----------
palmt3: added licence to tsc2101_ts module
Modified Paths:
--------------
linux4palm/linux/trunk/drivers/input/touchscreen/tsc2101_ts.c
Modified: linux4palm/linux/trunk/drivers/input/touchscreen/tsc2101_ts.c
===================================================================
--- linux4palm/linux/trunk/drivers/input/touchscreen/tsc2101_ts.c 2006-10-30 22:24:55 UTC (rev 651)
+++ linux4palm/linux/trunk/drivers/input/touchscreen/tsc2101_ts.c 2006-10-30 22:39:11 UTC (rev 652)
@@ -70,3 +70,5 @@
EXPORT_SYMBOL(tsc2101_ts_report);
EXPORT_SYMBOL(tsc2101_ts_setup);
+
+MODULE_LICENSE("GPL");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|