hw/misc/bcm2835_property: Add missed BCM2835 properties

Our model of the bcm2835 mailbox is missing a few properties
that we need for the raspi4 kernel:
 * RPI_FWREQ_GET_CLOCKS
 * RPI_FWREQ_GET_THROTTLED
 * RPI_FWREQ_VCHIQ_INIT

Add minimal implementations of them.

Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
Message-id: 20240226000259.2752893-40-sergey.kambalin@auriga.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: improved commit message]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Sergey Kambalin 2024-02-25 18:02:57 -06:00 committed by Peter Maydell
parent 2f79d2ed64
commit cda5a7d640
2 changed files with 32 additions and 0 deletions

View file

@ -159,4 +159,15 @@ enum rpi_firmware_clk_id {
RPI_FIRMWARE_NUM_CLK_ID,
};
struct rpi_firmware_property_tag_header {
uint32_t tag;
uint32_t buf_size;
uint32_t req_resp_size;
};
typedef struct rpi_firmware_prop_request {
struct rpi_firmware_property_tag_header hdr;
uint8_t payload[0];
} rpi_firmware_prop_request_t;
#endif /* INCLUDE_HW_MISC_RASPBERRYPI_FW_DEFS_H_ */