[#4900] kernel fails to build in pm.c when allow wakeup from standby by GPIO

Document created by Aaronwu Employee on Aug 30, 2013
Version 1Show Document
  • View in full screen mode

[#4900] kernel fails to build in pm.c when allow wakeup from standby by GPIO

Submitted By: Vivi Li

Open Date

2009-02-13 01:18:41     Close Date

2009-02-23 05:48:54

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Make Errors     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-2008_Dec_12

App binary format:

N/A     

Summary: kernel fails to build in pm.c when allow wakeup from standby by GPIO

Details:

 

Enable power management and allow wakeup from standby by GPIO, it fails to build kernel in pm.c with undeclared identifier.

 

Bellow is the log for bf548-ezkit and kernel config is attached.

--

arch/blackfin/mach-common/pm.c: In function ‘bfin_pm_suspend_standby_enter’:

arch/blackfin/mach-common/pm.c:71: error: implicit declaration of function ‘gpio_pm_wakeup_request’

arch/blackfin/mach-common/pm.c:71: error: ‘PM_WAKE_LOW’ undeclared (first use in this function)

arch/blackfin/mach-common/pm.c:71: error: (Each undeclared identifier is reported only once

arch/blackfin/mach-common/pm.c:71: error: for each function it appears in.)

make[2]: *** [arch/blackfin/mach-common/pm.o] Error 1

make[1]: *** [arch/blackfin/mach-common] Error 2

make[1]: *** Waiting for unfinished jobs....

make[1]: INTERNAL: Exiting with 5 jobserver tokens available; should be 4!

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

make: *** [linux] Error 1

--

 

Follow-ups

 

--- Michael Hennerich                                        2009-02-13 06:42:54

assign to me

-Michael

 

--- Michael Hennerich                                        2009-02-16 05:26:33

This feature is not available on BF54x.

Fixed on svn trunk.

-Michael

 

--- Vivi Li                                                  2009-02-18 03:58:46

OK, I see.

 

Another question, the option "Allow Wake-Up from GPIOs

(PM_WAKEUP_BY_GPIO)" should work on BF548?

When I tried this option, it can not work simply by pressing buttons. So there

should be other way to use it?

 

--- Michael Hennerich                                        2009-02-18 04:47:01

This option enables:

General-purpose event (all processors, except ADSP-BF549). Set

the general-purpose wake-up enable (GPWE) control bit to enable

wake-up upon detection of an active low signal on the GPW pin

 

The /GPW pin also known as PH7 and is by default not connected to an Push

Button on BF548-EZKIT.

(There is an option but the resistor is by default not populated)

 

If you like to test standby mode with the BF548-EZKIT use the KEYPAD or RTC

wake functionality.

 

-Michael

 

--- Vivi Li                                                  2009-02-23 05:48:53

OK, I see. Close this bug.

Thank you, Michael!

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.power    application/octet-stream    32892    Vivi Li

Attachments

Outcomes