summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm283x/include/mach/msg.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-04-05 22:23:40 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-10 00:20:39 (GMT)
commit2e4170b63bf05afe55a706dfc14c50ff1c6aa305 (patch)
tree6346d107a18f3836807031cc36c57c80646924c7 /arch/arm/mach-bcm283x/include/mach/msg.h
parent25877d4e4c45451c5398aec3de50e0d5befe0e9f (diff)
downloadu-boot-fsl-qoriq-2e4170b63bf05afe55a706dfc14c50ff1c6aa305.tar.xz
video: arm: rpi: Move the video query out of the driver
Add a function to get the video size to the msg handler and remove it from the video driver. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/arm/mach-bcm283x/include/mach/msg.h')
-rw-r--r--arch/arm/mach-bcm283x/include/mach/msg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm283x/include/mach/msg.h b/arch/arm/mach-bcm283x/include/mach/msg.h
index 8fd4ace..c785c43 100644
--- a/arch/arm/mach-bcm283x/include/mach/msg.h
+++ b/arch/arm/mach-bcm283x/include/mach/msg.h
@@ -22,4 +22,13 @@ int bcm2835_power_on_module(u32 module);
*/
int bcm2835_get_mmc_clock(void);
+/**
+ * bcm2835_get_video_size() - get the current display size
+ *
+ * @widthp: Returns the width in pixels
+ * @heightp: Returns the height in pixels
+ * @return 0 if OK, -ve on error
+ */
+int bcm2835_get_video_size(int *widthp, int *heightp);
+
#endif