Rick Adams
e8605d39a3
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
This is change is a response to a customer request described in
JIRA KERNEL-518
Change-Id: I59e665f92e6e29f7dfef4380314f676a2d92c94b
Signed-off-by: Rick Adams <rgadams@codeaurora.org >
(cherry picked from commit 9512d7e26abc9d23a1771533c5300605d70dfaa7)
Conflicts:
arch/arm/include/asm/processor.h
arch/arm/mach-msm/board-msm7x30.c
kernel/sysctl.c
2013-02-08 15:14:28 -08:00
..
2012-03-29 16:53:48 -07:00
2012-01-11 18:50:26 -08:00
2011-03-10 15:16:29 +00:00
2009-12-12 13:08:14 +01:00
2012-03-29 18:02:10 -07:00
2012-03-28 18:30:01 +01:00
2012-04-03 10:59:10 -07:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2010-12-05 08:39:36 +00:00
2011-03-16 23:35:26 +00:00
2011-10-17 09:13:41 +01:00
2011-07-19 18:09:45 +02:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2010-01-10 13:03:52 +00:00
2012-03-21 01:59:40 -04:00
2011-10-17 09:02:43 +01:00
2011-12-02 15:16:33 +00:00
2011-11-01 20:11:00 -07:00
2012-03-28 18:30:01 +01:00
2011-10-28 12:02:27 -07:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2011-08-17 08:44:16 +01:00
2011-12-11 08:35:50 +00:00
2012-03-24 09:38:51 +00:00
2011-10-23 13:32:29 +01:00
2011-10-17 09:02:44 +01:00
2012-03-28 18:30:01 +01:00
2011-05-26 10:31:06 +01:00
2011-01-27 11:48:58 +00:00
2011-03-31 11:26:23 -03:00
2010-09-02 15:28:43 +01:00
2012-01-25 11:07:40 +00:00
2011-03-31 11:26:23 -03:00
2011-02-12 11:52:21 +00:00
2011-02-12 11:52:21 +00:00
2011-03-16 23:35:26 +00:00
2011-03-31 11:26:23 -03:00
2012-01-08 09:27:19 +00:00
2011-12-06 11:14:01 +00:00
2012-03-20 21:48:30 +08:00
2011-08-31 10:42:48 +01:00
2011-03-29 14:47:57 +02:00
2011-12-13 15:07:49 +00:00
2011-12-06 14:04:15 +00:00
2012-04-05 11:29:55 -07:00
2010-10-22 10:19:59 -07:00
2012-01-03 22:55:18 -05:00
2012-01-30 13:24:37 -06:00
2010-10-07 14:08:55 +01:00
2012-04-15 22:00:31 +01:00
2011-10-17 09:12:40 +01:00
2011-03-03 16:26:55 -05:00
2010-10-29 13:14:40 -05:00
2010-05-20 21:04:21 -05:00
2012-01-17 16:17:01 -05:00
2012-03-13 13:45:55 +00:00
2009-12-12 13:08:14 +01:00
2012-01-25 20:37:45 -06:00
2012-01-13 15:02:35 +00:00
2012-03-24 09:38:56 +00:00
2009-12-11 06:34:09 -05:00
2012-03-24 09:38:51 +00:00
2012-03-28 18:30:01 +01:00
2011-08-13 11:26:40 +01:00
2012-03-24 09:38:51 +00:00
2011-10-17 09:11:51 +01:00
2012-03-24 09:38:51 +00:00
2012-02-23 20:19:04 -07:00
2012-03-29 16:53:48 -07:00
2011-12-08 10:30:39 +00:00
2011-10-06 15:40:06 +01:00
2011-10-06 15:40:05 +01:00
2011-12-08 10:30:37 +00:00
2011-12-08 10:30:39 +00:00
2011-12-08 10:30:39 +00:00
2011-12-08 10:30:39 +00:00
2011-12-08 10:30:39 +00:00
2012-03-23 16:58:31 -07:00
2012-01-05 13:24:33 +00:00
2012-03-07 09:40:48 +00:00
2012-02-14 12:01:28 -08:00
2011-12-08 10:30:39 +00:00
2013-02-08 15:14:28 -08:00
2012-03-24 09:38:54 +00:00
2012-01-17 16:17:01 -05:00
2011-06-02 11:16:22 +01:00
2011-12-18 23:00:26 +00:00
2010-10-01 22:32:18 -04:00
2011-12-13 08:52:02 +00:00
2012-01-23 10:20:05 +00:00
2011-02-11 12:29:18 +00:00
2012-03-13 13:45:54 +00:00
2012-01-23 10:20:05 +00:00
2012-02-24 01:37:35 -08:00
2009-12-14 23:55:32 +01:00
2011-05-23 17:19:26 +01:00
2010-06-14 21:31:00 -04:00
2011-09-20 23:33:36 +01:00
2012-01-14 18:03:30 -08:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 15:58:21 -07:00
2012-03-28 18:30:01 +01:00
2011-07-06 20:49:45 +01:00
2010-08-10 13:47:39 -07:00
2012-04-23 15:44:41 +01:00
2011-04-10 21:13:36 +01:00
2012-02-02 17:37:42 +00:00
2012-03-24 09:38:52 +00:00
2012-04-28 11:01:30 +01:00
2011-11-30 23:55:21 +00:00
2012-01-23 10:24:11 +00:00
2012-01-03 22:55:17 -05:00
2012-03-28 18:30:01 +01:00
2011-03-31 11:26:23 -03:00
2012-01-16 08:56:25 -06:00
2011-12-13 15:07:49 +00:00
2011-12-06 11:16:13 +00:00
2011-03-10 15:16:29 +00:00
2010-07-09 14:41:34 +01:00
2011-07-12 11:19:29 -05:00