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:41 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-10 00:20:40 (GMT)
commit7cac2fced726c4865133b74ea73ef13df40a1884 (patch)
tree7e2e083b926764b82db86b72c8b32e0985f58944 /arch/arm/mach-bcm283x/include/mach/msg.h
parent2e4170b63bf05afe55a706dfc14c50ff1c6aa305 (diff)
downloadu-boot-fsl-qoriq-7cac2fced726c4865133b74ea73ef13df40a1884.tar.xz
video: arm: rpi: Move the video settings out of the driver
Add a function to set the video parameters 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.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm283x/include/mach/msg.h b/arch/arm/mach-bcm283x/include/mach/msg.h
index c785c43..478b1f1 100644
--- a/arch/arm/mach-bcm283x/include/mach/msg.h
+++ b/arch/arm/mach-bcm283x/include/mach/msg.h
@@ -31,4 +31,21 @@ int bcm2835_get_mmc_clock(void);
*/
int bcm2835_get_video_size(int *widthp, int *heightp);
+/**
+ * bcm2835_set_video_params() - set the video parameters
+ *
+ * @widthp: Video width to request (returns the actual width selected)
+ * @heightp: Video height to request (returns the actual height selected)
+ * @depth_bpp: Requested bit depth
+ * @pixel_order: Pixel order to use (BCM2835_MBOX_PIXEL_ORDER_...)
+ * @alpha_mode: Alpha transparency mode to use (BCM2835_MBOX_ALPHA_MODE_...)
+ * @fb_basep: Returns base address of frame buffer
+ * @fb_sizep: Returns size of frame buffer
+ * @pitchp: Returns number of bytes in each frame buffer line
+ * @return 0 if OK, -ve on error
+ */
+int bcm2835_set_video_params(int *widthp, int *heightp, int depth_bpp,
+ int pixel_order, int alpha_mode, ulong *fb_basep,
+ ulong *fb_sizep, int *pitchp);
+
#endif