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.

Attachment: signature.asc
Description: Digital signature

Reply via email to