Files
android_kernel_motorola_sm6225/include/uapi/linux
Rick Adams f699c92b61 msm: 8x55: put reason for boot in procfs from SMEM
During board initialization read the shared memory item
SMEM_POWER_ON_STATUS_INFO and place it in the procfs at
/proc/sys/kernel/boot_reason

The data item is an integer with a bit being set to identify the reason
the device was powered on. The values of this data item is defined in
the document Document/arm/msm/boot.txt, the following is the data in the
documentation file.

power_on_status values set by the PMIC for power on event:
----------------------------------------------------------
0x01 -- keyboard power on
0x02 -- RTC alarm
0x04 -- cable power on
0x08 -- SMPL
0x10 -- Watch Dog timeout
0x20 -- USB charger
0x40 -- Wall charger
0xFF -- error reading power_on_status value

Change-Id: I59e665f92e6e29f7dfef4380314f676a2d92c94b
Signed-off-by: Rick Adams <rgadams@codeaurora.org>
2018-11-08 14:26:42 -08:00
..
…
…
…
…
…
2018-07-23 19:18:10 +01:00
…
…
…
…
…
…
…
…
…
…
2018-08-06 10:24:33 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-08-22 10:52:49 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2018-07-25 06:59:23 -04:00
…
…
…
…
…
…
…
…
…
…
…
2018-07-19 13:58:44 -07:00
…
…
…
2018-06-27 11:37:18 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-07-17 15:33:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-07-07 17:41:38 +02:00
2018-08-03 10:03:57 -07:00
…
…
…
…
…
2018-08-28 17:10:42 +05:30
…
…
…
…
…
…
…
…
…
…
…
2018-10-23 08:52:04 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-08-15 14:59:06 -05:00
…
…
…
…
…
2018-07-24 14:44:00 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-10-08 15:45:18 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…