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-04-23 14:23:32 +03:00
2012-03-30 03:30:19 -04:00
2012-03-30 16:03:15 -07:00
2013-02-08 15:14:28 -08:00
2012-03-23 16:58:33 -07:00
2011-09-27 18:08:04 +02:00
2011-11-04 12:01:48 -07:00
2012-03-30 16:03:15 -07:00
2011-09-27 18:08:04 +02:00
2012-04-12 13:12:11 -07:00
2011-11-08 10:23:29 +01:00
2012-03-30 01:52:58 -04:00
2011-12-12 14:14:31 -08:00
2012-03-28 18:43:38 +01:00
2012-05-05 10:07:06 -07:00
2012-04-21 12:43:23 -07:00
2012-03-18 21:38:28 +00:00
2012-03-19 14:55:55 -03:00
2012-03-20 10:09:28 +00:00
2011-10-26 16:32:13 -04:00
2012-03-30 16:03:15 -07:00
2012-04-09 01:39:24 -04:00
2011-09-27 18:08:04 +02:00
2012-04-01 10:25:56 -07:00
2012-03-30 16:03:15 -07:00
2012-03-07 16:08:24 +01:00
2012-03-30 16:03:15 -07:00
2012-03-30 16:03:15 -07:00
2012-04-02 09:50:40 -07:00
2012-03-30 16:03:15 -07:00
2012-03-30 16:03:15 -07:00
2011-12-27 11:27:13 +01:00
2012-02-15 14:48:01 -08:00
2012-03-30 16:03:15 -07:00
2012-03-23 16:58:34 -07:00
2011-08-03 14:25:21 -10:00
2012-01-11 23:58:43 -05:00
2012-05-02 21:08:58 -04:00
2011-09-27 18:08:04 +02:00
2012-04-29 22:29:30 +02:00
2012-03-18 23:59:34 +01:00
2011-11-02 16:07:02 -07:00
2012-02-21 09:06:08 -08:00
2012-03-30 16:03:15 -07:00
2012-01-27 13:28:53 +01:00
2012-03-31 13:31:23 -07:00
2012-04-25 12:46:50 -04:00
2012-03-30 16:03:15 -07:00
2012-04-11 14:10:57 +02:00
2012-03-07 19:19:48 -07:00
2013-02-08 15:14:28 -08:00
2012-02-10 09:52:18 +01:00
2012-01-23 03:15:25 -05:00
2011-09-27 18:08:04 +02:00
2012-03-20 21:12:50 -07:00
2012-04-06 13:54:00 -07:00
2012-03-30 16:03:15 -07:00
2012-03-28 14:35:31 -07:00
2012-03-28 17:14:37 -07:00
2012-03-27 20:15:37 +02:00
2011-08-16 08:04:08 -07:00
2012-03-20 21:04:47 -07:00
2012-03-23 16:58:37 -07:00
2011-12-11 10:31:58 -08:00
2011-09-27 18:08:04 +02:00
2012-03-16 20:35:01 +00:00
2012-01-14 22:25:56 +01:00
2012-03-30 16:03:15 -07:00
2012-03-29 15:38:31 +10:30
2012-03-23 16:58:37 -07:00
2012-01-13 10:12:23 -08:00
2011-11-09 12:10:37 +02:00
2011-11-02 16:07:02 -07:00
2012-03-28 16:36:44 +02:00
2012-03-26 11:33:22 +05:30
2012-03-07 16:08:24 +01:00
2012-03-30 16:03:15 -07:00
2012-01-24 12:50:36 -08:00
2012-03-19 12:03:58 +01:00
2011-08-13 18:34:03 -07:00
2012-05-14 11:23:37 -07:00
2012-03-12 11:27:07 -06:00
2011-12-12 14:14:31 -08:00
2011-09-21 19:45:34 +03:00
2012-02-14 14:06:47 -07:00
2011-09-27 18:08:04 +02:00
2012-03-29 14:53:25 -07:00
2011-12-02 16:12:42 +00:00
2012-02-15 14:48:01 -08:00
2011-12-11 10:31:23 -08:00
2012-02-11 15:11:28 +01:00
2012-01-30 12:54:40 -05:00
2012-03-28 17:14:37 -07:00
2011-12-23 10:17:51 +11:00
2011-09-27 18:08:04 +02:00
2011-09-27 18:08:04 +02:00
2012-03-30 16:03:15 -07:00
2012-02-28 16:05:06 +01:00
2011-11-07 07:54:42 +10:30
2012-03-30 16:03:15 -07:00
2012-03-05 11:25:11 +01:00
2011-08-13 18:34:03 -07:00
2012-03-06 19:14:12 +02:00
2011-09-27 18:08:04 +02:00
2012-02-08 22:53:58 +02:00
2012-01-24 10:50:22 -08:00
2012-02-24 09:12:19 +01:00
2011-08-13 18:34:03 -07:00
2011-08-13 18:34:02 -07:00
2012-03-30 16:03:15 -07:00
2012-01-02 13:04:55 +01:00