Stefan Wahren be3035e362 ARM: bcm2835: Add GET_THROTTLED firmware property
Recent Raspberry Pi firmware provides a mailbox property to detect
under-voltage conditions. Here is the current definition.

The u32 value returned by the firmware is divided into 2 parts:
  - lower 16-bits are the live value
  - upper 16-bits are the history or sticky value

  Bits:
  0: undervoltage
  1: arm frequency capped
  2: currently throttled
  16: undervoltage has occurred
  17: arm frequency capped has occurred
  18: throttling has occurred

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
2018-06-21 17:17:11 -07:00
..
2018-06-13 07:32:10 -07:00
2018-06-06 08:16:33 -07:00
2018-06-11 18:15:22 -07:00
2018-06-15 18:10:01 -03:00
2018-06-17 05:37:55 +09:00
2018-06-10 13:01:12 -07:00
2018-06-06 09:08:38 -07:00
2018-06-12 10:09:03 -07:00
2018-06-17 05:00:24 +09:00
2018-06-15 18:10:01 -03:00