mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![Tom Rini](/assets/img/avatar_default.png)
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
52 lines
1.5 KiB
C
52 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2012,2015 Stephen Warren
|
|
*/
|
|
|
|
#ifndef _BCM2835_MSG_H
|
|
#define _BCM2835_MSG_H
|
|
|
|
/**
|
|
* bcm2835_power_on_module() - power on an SoC module
|
|
*
|
|
* @module: ID of module to power on (BCM2835_MBOX_POWER_DEVID_...)
|
|
* @return 0 if OK, -EIO on error
|
|
*/
|
|
int bcm2835_power_on_module(u32 module);
|
|
|
|
/**
|
|
* bcm2835_get_mmc_clock() - get the frequency of the MMC clock
|
|
*
|
|
* @clock_id: ID of clock to get frequency for
|
|
* @return clock frequency, or -ve on error
|
|
*/
|
|
int bcm2835_get_mmc_clock(u32 clock_id);
|
|
|
|
/**
|
|
* 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);
|
|
|
|
/**
|
|
* 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
|