[PATCH] hxd8-resume.patch

Ben Dooks ben at trinity.fluff.org
Sun May 20 11:55:40 CEST 2007


On Sun, May 20, 2007 at 04:13:20PM +0800, matt_hsu wrote:
> Log:
> 	HXD8: GPG[15:13] must be selected as input for resuming from u-boot.

> Index: linux-2.6.21/arch/arm/mach-s3c2410/pm.c
> ===================================================================
> --- linux-2.6.21.orig/arch/arm/mach-s3c2410/pm.c	2007-05-20 16:01:35.000000000 +0800
> +++ linux-2.6.21/arch/arm/mach-s3c2410/pm.c	2007-05-20 16:04:23.000000000 +0800
> @@ -85,6 +85,12 @@
>  	if ( machine_is_aml_m5900() )
>  		s3c2410_gpio_setpin(S3C2410_GPF2, 1);
>  
> +	
> +	if ( machine_is_hxd8()){

minor formatting here, no space between open bracket and condition, and
a space between the end bracket and the open brace.

	if (machine_is_hxd8()) {

> +		s3c2410_gpio_cfgpin(S3C2410_GPG13, S3C2410_GPG13_INP);
> +		s3c2410_gpio_cfgpin(S3C2410_GPG14, S3C2410_GPG14_INP);
> +		s3c2410_gpio_cfgpin(S3C2410_GPG15, S3C2410_GPG15_INP);
> +	}
>  }
>  
>  static int s3c2410_pm_resume(struct sys_device *dev)

I may change this into a callback function for the machine in the
next release. For the moment this is correct.

-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20070520/9d65697b/attachment.pgp 


More information about the openmoko-kernel mailing list