From: Leblanc f. <fle...@us...> - 2002-04-23 13:14:33
|
Update of /cvsroot/linux-mips/linux/arch/mips/vr41xx/common In directory usw-pr-cvs1:/tmp/cvs-serv14927/arch/mips/vr41xx/common Modified Files: giuinfo.c power.c Log Message: Casio e15 support improvement. Index: giuinfo.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/vr41xx/common/giuinfo.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- giuinfo.c 7 Mar 2002 09:15:16 -0000 1.1 +++ giuinfo.c 23 Apr 2002 13:14:28 -0000 1.2 @@ -10,7 +10,11 @@ * for more details. * */ - +/* + * Changes: + * Francois Leblanc <fra...@ce...> Wed, 04 apr 2002 + * - Add more info view. + */ #include <linux/kernel.h> #include <linux/proc_fs.h> #include <linux/init.h> @@ -76,13 +80,31 @@ *VR41XX_MISCREG13, *VR41XX_MISCREG14, *VR41XX_MISCREG15); #else len = sprintf(page, - "giuiosell: 0x%04hx\n" - "giuioselh: 0x%04hx\n" - "giupiodl: 0x%04hx\n" - "giupiodh: 0x%04hx\n" - "giupodatl: 0x%04hx\n", + "giuiosell: 0x%04hx\n" + "giuioselh: 0x%04hx\n" + "giupiodl: 0x%04hx\n" + "giupiodh: 0x%04hx\n" + "giupodatl: 0x%04hx\n" + "\n" + "giupodath: 0x%04hx\n" + "giuintstatl: 0x%04hx\n" + "giuintstath: 0x%04hx\n" + "giuintenl: 0x%04hx\n" + "giuintenh: 0x%04hx\n" + "giuinttypl: 0x%04hx\n" + "giuinttyph: 0x%04hx\n" + "giuintalsell: 0x%04hx\n" + "giuintalselh: 0x%04hx\n" + "giuinthtsell: 0x%04hx\n" + "giuinthtselh: 0x%04hx\n" + "giuusepdn: 0x%04hx\n" + "giutermupdn: 0x%04hx\n", *VR41XX_GIUIOSELL, *VR41XX_GIUIOSELH, *VR41XX_GIUPIODL, - *VR41XX_GIUPIODH, *VR41XX_GIUPODATL); + *VR41XX_GIUPIODH, *VR41XX_GIUPODATL, *VR41XX_GIUPODATH, + *VR41XX_GIUINTSTATL, *VR41XX_GIUINTSTATH, *VR41XX_GIUINTENL, + *VR41XX_GIUINTENH, *VR41XX_GIUINTTYPL, *VR41XX_GIUINTTYPH, + *VR41XX_GIUINTALSELL, *VR41XX_GIUINTALSELH, *VR41XX_GIUINTHTSELL, + *VR41XX_GIUINTHTSELH, *VR41XX_GIUUSEUPDN, *VR41XX_GIUTERMUPDN); #endif if (len <= off+count) *eof = 1; Index: power.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/vr41xx/common/power.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- power.c 22 Mar 2002 10:22:43 -0000 1.2 +++ power.c 23 Apr 2002 13:14:28 -0000 1.3 @@ -3,14 +3,19 @@ * PM User interface loosely based on Andrew Henroid's i386 ACPI driver * * Copyright (C) 2000 Michael Klar - * Copyright (C) 2002 François Leblanc <fra...@ce...> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * */ - +/* + * Changes: + * Francois Leblanc <fra...@ce...> Wed, 27 Mar 2002 + * - Add extend hibernate function to let board manage specific + * actions before hibernate like casio E15 witch update win ce + * memory signature before halt and so reboot in linux. + */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/config.h> @@ -164,6 +169,8 @@ // never reached... } +extern void DbgInitSerial(void); + asmlinkage int do_wakeup(void) { int i, retval; @@ -186,6 +193,13 @@ *(MIN_GPIOREG + i) = gpio_state[i]; do_pm_irq_request(PM_RESUME); retval = pm_send_all(PM_RESUME, (void *)0); + +#ifdef CONFIG_REMOTE_DEBUG + //re-init serial + set_debug_traps(); + DbgInitSerial(); +#endif + if (!retval) { sti(); up(&vr41xx_dma_sem); |