[PATCH] Use the pcf50633 APM emulation code (applies to -andy branch)

Mike (mwester) mwester at dls.net
Sat Jul 26 03:54:05 CEST 2008


enable-pcf50633-apm-emulation.patch

Use the pcf50633 APM emulation code.  This needs to be enabled to go along
with the recent change to disable CONFIG_APM_POWER in the gta02 defconfig (prior
to disabling that defconfig entry, the generic APM_POWER driver was being used;
without this change, no APM power driver is being used and /proc/apm returns no
useful information at all.

Signed-off-by: Mike Westerhof <mwester at dls.net>

diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 7d4d6d5..228baae 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -565,7 +565,7 @@ static struct pcf50633_platform_data gta02_pcf_pdata = {
        .r_fix_batt     = 10000,
        .r_fix_batt_par = 10000,
        .r_sense_milli  = 220,
-       .flag_use_apm_emulation = 0,
+       .flag_use_apm_emulation = 1,
        .resumers = {
                [0] = PCF50633_INT1_USBINS |
                      PCF50633_INT1_USBREM |





More information about the openmoko-kernel mailing list