mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 22:03:15 +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>
66 lines
1.6 KiB
C
66 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
|
|
*/
|
|
|
|
#ifndef __RK_VOP_H__
|
|
#define __RK_VOP_H__
|
|
|
|
#include <asm/arch/vop_rk3288.h>
|
|
|
|
struct rk_vop_priv {
|
|
void *grf;
|
|
void *regs;
|
|
};
|
|
|
|
enum vop_features {
|
|
VOP_FEATURE_OUTPUT_10BIT = (1 << 0),
|
|
};
|
|
|
|
struct rkvop_driverdata {
|
|
/* configuration */
|
|
u32 features;
|
|
/* block-specific setters/getters */
|
|
void (*set_pin_polarity)(struct udevice *, enum vop_modes, u32);
|
|
};
|
|
|
|
/**
|
|
* rk_vop_probe() - common probe implementation
|
|
*
|
|
* Performs the rk_display_init on each port-subnode until finding a
|
|
* working port (or returning an error if none of the ports could be
|
|
* successfully initialised).
|
|
*
|
|
* @dev: device
|
|
* @return 0 if OK, -ve if something went wrong
|
|
*/
|
|
int rk_vop_probe(struct udevice *dev);
|
|
|
|
/**
|
|
* rk_vop_bind() - common bind implementation
|
|
*
|
|
* Sets the plat->size field to the amount of memory to be reserved for
|
|
* the framebuffer: this is always
|
|
* (32 BPP) x VIDEO_ROCKCHIP_MAX_XRES x VIDEO_ROCKCHIP_MAX_YRES
|
|
*
|
|
* @dev: device
|
|
* @return 0 (always OK)
|
|
*/
|
|
int rk_vop_bind(struct udevice *dev);
|
|
|
|
/**
|
|
* rk_vop_probe_regulators() - probe (autoset + enable) regulators
|
|
*
|
|
* Probes a list of regulators by performing autoset and enable
|
|
* operations on them. The list of regulators is an array of string
|
|
* pointers and any individual regulator-probe may fail without
|
|
* counting as an error.
|
|
*
|
|
* @dev: device
|
|
* @names: array of string-pointers to regulator names to probe
|
|
* @cnt: number of elements in the 'names' array
|
|
*/
|
|
void rk_vop_probe_regulators(struct udevice *dev,
|
|
const char * const *names, int cnt);
|
|
|
|
#endif
|