xref: /rk3399_rockchip-uboot/arch/arm/mach-bcm283x/include/mach/msg.h (revision 2e4170b63bf05afe55a706dfc14c50ff1c6aa305)
170997d88SSimon Glass /*
270997d88SSimon Glass  * (C) Copyright 2012,2015 Stephen Warren
370997d88SSimon Glass  *
470997d88SSimon Glass  * SPDX-License-Identifier:	GPL-2.0+
570997d88SSimon Glass  */
670997d88SSimon Glass 
770997d88SSimon Glass #ifndef _BCM2835_MSG_H
870997d88SSimon Glass #define _BCM2835_MSG_H
970997d88SSimon Glass 
1070997d88SSimon Glass /**
1170997d88SSimon Glass  * bcm2835_power_on_module() - power on an SoC module
1270997d88SSimon Glass  *
1370997d88SSimon Glass  * @module: ID of module to power on (BCM2835_MBOX_POWER_DEVID_...)
1470997d88SSimon Glass  * @return 0 if OK, -EIO on error
1570997d88SSimon Glass  */
1670997d88SSimon Glass int bcm2835_power_on_module(u32 module);
1770997d88SSimon Glass 
18c6606515SSimon Glass /**
19c6606515SSimon Glass  * bcm2835_get_mmc_clock() - get the frequency of the MMC clock
20c6606515SSimon Glass  *
21c6606515SSimon Glass  * @return clock frequency, or -ve on error
22c6606515SSimon Glass  */
23c6606515SSimon Glass int bcm2835_get_mmc_clock(void);
24c6606515SSimon Glass 
25*2e4170b6SSimon Glass /**
26*2e4170b6SSimon Glass  * bcm2835_get_video_size() - get the current display size
27*2e4170b6SSimon Glass  *
28*2e4170b6SSimon Glass  * @widthp: Returns the width in pixels
29*2e4170b6SSimon Glass  * @heightp: Returns the height in pixels
30*2e4170b6SSimon Glass  * @return 0 if OK, -ve on error
31*2e4170b6SSimon Glass  */
32*2e4170b6SSimon Glass int bcm2835_get_video_size(int *widthp, int *heightp);
33*2e4170b6SSimon Glass 
3470997d88SSimon Glass #endif
35