mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 07:57:21 +00:00
83d290c56f
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>
57 lines
1.9 KiB
C
57 lines
1.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2010
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_TEGRA_DISPLAY_H
|
|
#define __ASM_ARCH_TEGRA_DISPLAY_H
|
|
|
|
/**
|
|
* Register a new display based on device tree configuration.
|
|
*
|
|
* The frame buffer can be positioned by U-Boot or overridden by the fdt.
|
|
* You should pass in the U-Boot address here, and check the contents of
|
|
* struct fdt_disp_config to see what was actually chosen.
|
|
*
|
|
* @param blob Device tree blob
|
|
* @param default_lcd_base Default address of LCD frame buffer
|
|
* @return 0 if ok, -1 on error (unsupported bits per pixel)
|
|
*/
|
|
int tegra_display_probe(const void *blob, void *default_lcd_base);
|
|
|
|
/**
|
|
* Return the current display configuration
|
|
*
|
|
* @return pointer to display configuration, or NULL if there is no valid
|
|
* config
|
|
*/
|
|
struct fdt_disp_config *tegra_display_get_config(void);
|
|
|
|
/**
|
|
* Perform the next stage of the LCD init if it is time to do so.
|
|
*
|
|
* LCD init can be time-consuming because of the number of delays we need
|
|
* while waiting for the backlight power supply, etc. This function can
|
|
* be called at various times during U-Boot operation to advance the
|
|
* initialization of the LCD to the next stage if sufficient time has
|
|
* passed since the last stage. It keeps track of what stage it is up to
|
|
* and the time that it is permitted to move to the next stage.
|
|
*
|
|
* The final call should have wait=1 to complete the init.
|
|
*
|
|
* @param blob fdt blob containing LCD information
|
|
* @param wait 1 to wait until all init is complete, and then return
|
|
* 0 to return immediately, potentially doing nothing if it is
|
|
* not yet time for the next init.
|
|
*/
|
|
int tegra_lcd_check_next_stage(const void *blob, int wait);
|
|
|
|
/**
|
|
* Set up the maximum LCD size so we can size the frame buffer.
|
|
*
|
|
* @param blob fdt blob containing LCD information
|
|
*/
|
|
void tegra_lcd_early_init(const void *blob);
|
|
|
|
#endif /*__ASM_ARCH_TEGRA_DISPLAY_H*/
|