a316b409c4eb929cf2b9b61e0cd7c6170a16ccce
[openwrt/openwrt.git] /
1 From 34454ca8cf9b63b0973fb23271810461a45a9884 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Wed, 14 Sep 2016 09:16:19 +0100
4 Subject: [PATCH] raspberrypi-firmware: Export the general transaction
5 function.
6
7 The vc4-firmware-kms module is going to be doing the MBOX FB call.
8
9 Signed-off-by: Eric Anholt <eric@anholt.net>
10 ---
11 drivers/firmware/raspberrypi.c | 3 ++-
12 include/soc/bcm2835/raspberrypi-firmware.h | 1 +
13 2 files changed, 3 insertions(+), 1 deletion(-)
14
15 --- a/drivers/firmware/raspberrypi.c
16 +++ b/drivers/firmware/raspberrypi.c
17 @@ -42,7 +42,7 @@ static void response_callback(struct mbo
18 * Sends a request to the firmware through the BCM2835 mailbox driver,
19 * and synchronously waits for the reply.
20 */
21 -static int
22 +int
23 rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data)
24 {
25 u32 message = MBOX_MSG(chan, data);
26 @@ -63,6 +63,7 @@ rpi_firmware_transaction(struct rpi_firm
27
28 return ret;
29 }
30 +EXPORT_SYMBOL_GPL(rpi_firmware_transaction);
31
32 /**
33 * rpi_firmware_property_list - Submit firmware property list
34 --- a/include/soc/bcm2835/raspberrypi-firmware.h
35 +++ b/include/soc/bcm2835/raspberrypi-firmware.h
36 @@ -131,5 +131,6 @@ int rpi_firmware_property(struct rpi_fir
37 int rpi_firmware_property_list(struct rpi_firmware *fw,
38 void *data, size_t tag_size);
39 struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node);
40 +int rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data);
41
42 #endif /* __SOC_RASPBERRY_FIRMWARE_H__ */