|
From: <mis...@us...> - 2007-09-15 20:45:35
|
Revision: 1321
http://hackndev.svn.sourceforge.net/hackndev/?rev=1321&view=rev
Author: miska_tx
Date: 2007-09-15 13:45:29 -0700 (Sat, 15 Sep 2007)
Log Message:
-----------
PalmTT5: Some corgi_bl related cleanup in pm.
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5.c
linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5_pm.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5.c 2007-09-14 15:31:33 UTC (rev 1320)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5.c 2007-09-15 20:45:29 UTC (rev 1321)
@@ -151,10 +151,12 @@
static void palmtt5_bl_power(int on)
{
- SET_PALMTT5_GPIO(BL_POWER, on);
- pxa_set_cken(CKEN0_PWM0, on);
- pxa_set_cken(CKEN1_PWM1, on);
- mdelay(50);
+ if(GET_PALMTT5_GPIO(BL_POWER)!=on) {
+ SET_PALMTT5_GPIO(LCD_POWER, on);
+ SET_PALMTT5_GPIO(BL_POWER, on);
+ pxa_set_cken(CKEN0_PWM0, on);
+ pxa_set_cken(CKEN1_PWM1, on);
+ }
}
static void palmtt5_set_bl_intensity(int intensity)
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5_pm.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5_pm.c 2007-09-14 15:31:33 UTC (rev 1320)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtt5/palmtt5_pm.c 2007-09-15 20:45:29 UTC (rev 1321)
@@ -41,10 +41,6 @@
while(!(OSCC & OSCC_OOK))
{}
- /* Turn off LCD power */
- SET_PALMTT5_GPIO(LCD_POWER,0);
- /* Turn screen off */
- SET_PALMTT5_GPIO(BL_POWER,0);
/* Turn off USB power */
SET_PALMTT5_GPIO(USB_POWER,0);
@@ -67,10 +63,6 @@
/* Here are all of special to resume Palm T5 */
- /* Turn on LCD power */
- SET_PALMTT5_GPIO(LCD_POWER,1);
- /* Turn screen on */
- SET_PALMTT5_GPIO(BL_POWER,1);
/* Turn on USB power */
SET_PALMTT5_GPIO(USB_POWER,1);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|