]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/mach-bcm283x/include/mach/msg.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / arm / mach-bcm283x / include / mach / msg.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
70997d88
SG
2/*
3 * (C) Copyright 2012,2015 Stephen Warren
70997d88
SG
4 */
5
6#ifndef _BCM2835_MSG_H
7#define _BCM2835_MSG_H
8
9/**
10 * bcm2835_power_on_module() - power on an SoC module
11 *
12 * @module: ID of module to power on (BCM2835_MBOX_POWER_DEVID_...)
13 * @return 0 if OK, -EIO on error
14 */
15int bcm2835_power_on_module(u32 module);
16
c6606515
SG
17/**
18 * bcm2835_get_mmc_clock() - get the frequency of the MMC clock
19 *
8ae1f829 20 * @clock_id: ID of clock to get frequency for
c6606515
SG
21 * @return clock frequency, or -ve on error
22 */
8ae1f829 23int bcm2835_get_mmc_clock(u32 clock_id);
c6606515 24
2e4170b6
SG
25/**
26 * bcm2835_get_video_size() - get the current display size
27 *
28 * @widthp: Returns the width in pixels
29 * @heightp: Returns the height in pixels
30 * @return 0 if OK, -ve on error
31 */
32int bcm2835_get_video_size(int *widthp, int *heightp);
33
7cac2fce
SG
34/**
35 * bcm2835_set_video_params() - set the video parameters
36 *
37 * @widthp: Video width to request (returns the actual width selected)
38 * @heightp: Video height to request (returns the actual height selected)
39 * @depth_bpp: Requested bit depth
40 * @pixel_order: Pixel order to use (BCM2835_MBOX_PIXEL_ORDER_...)
41 * @alpha_mode: Alpha transparency mode to use (BCM2835_MBOX_ALPHA_MODE_...)
42 * @fb_basep: Returns base address of frame buffer
43 * @fb_sizep: Returns size of frame buffer
44 * @pitchp: Returns number of bytes in each frame buffer line
45 * @return 0 if OK, -ve on error
46 */
47int bcm2835_set_video_params(int *widthp, int *heightp, int depth_bpp,
48 int pixel_order, int alpha_mode, ulong *fb_basep,
49 ulong *fb_sizep, int *pitchp);
50
70997d88 51#endif