6/07/2012

How to get the power on status on MSM7x30

in 7x30, osbl_smem_store_pon_status() will call pm_get_power_on_status() to get the PON status and save that to the share memory. The pm_get_power_on_status() can differentiate the SMPL and WDOG timer out



FUNCTION pm_get_power_on_status EXTERNAL FUNCTION



DESCRIPTION

This function returns the phone power-on status, and it should be called

at the earliest possible moment at boot up



INPUT PARAMETERS

1) Parameter name: *pwr_on_status

- pointer to 32-bit unsigned integer that stores the power on status

including keypad power on, RTC alarm trigger, cable power on, SMPL,

watchdog timeout, wall charger and USB charger with definitions as the

following:



PM_PWR_ON_EVENT_KEYPAD 0x1

PM_PWR_ON_EVENT_RTC 0x2

PM_PWR_ON_EVENT_CABLE 0x4

PM_PWR_ON_EVENT_SMPL 0x8

PM_PWR_ON_EVENT_WDOG 0x10

PM_PWR_ON_EVENT_USB_CHG 0x20

PM_PWR_ON_EVENT_WALL_CHG 0x40

No comments:

Post a Comment