Skip to content

Commit be3035e

Browse files
Stefan Wahrenanholt
authored andcommitted
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>
1 parent ce397d2 commit be3035e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/soc/bcm2835/raspberrypi-firmware.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ enum rpi_firmware_property_tag {
7575
RPI_FIRMWARE_GET_EDID_BLOCK = 0x00030020,
7676
RPI_FIRMWARE_GET_CUSTOMER_OTP = 0x00030021,
7777
RPI_FIRMWARE_GET_DOMAIN_STATE = 0x00030030,
78+
RPI_FIRMWARE_GET_THROTTLED = 0x00030046,
7879
RPI_FIRMWARE_SET_CLOCK_STATE = 0x00038001,
7980
RPI_FIRMWARE_SET_CLOCK_RATE = 0x00038002,
8081
RPI_FIRMWARE_SET_VOLTAGE = 0x00038003,

0 commit comments

Comments
 (0)