projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ihs_video_out: Fix error handling
[oweals/u-boot.git]
/
drivers
/
video
/
mxc_ipuv3_fb.c
diff --git
a/drivers/video/mxc_ipuv3_fb.c
b/drivers/video/mxc_ipuv3_fb.c
index 1fa95314fc4621857114bcef2e98e50a60f163b7..23cd55de47967a487e76383cf2c3f3faf3eabac4 100644
(file)
--- a/
drivers/video/mxc_ipuv3_fb.c
+++ b/
drivers/video/mxc_ipuv3_fb.c
@@
-1,3
+1,4
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Porting to u-boot:
*
/*
* Porting to u-boot:
*
@@
-7,12
+8,10
@@
* MX51 Linux framebuffer:
*
* (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
* MX51 Linux framebuffer:
*
* (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
-#include <
asm
/errno.h>
+#include <
linux
/errno.h>
#include <asm/global_data.h>
#include <linux/string.h>
#include <linux/list.h>
#include <asm/global_data.h>
#include <linux/string.h>
#include <linux/list.h>
@@
-571,6
+570,9
@@
void ipuv3_fb_shutdown(void)
int i;
struct ipu_stat *stat = (struct ipu_stat *)IPU_STAT;
int i;
struct ipu_stat *stat = (struct ipu_stat *)IPU_STAT;
+ if (!ipu_clk_enabled())
+ return;
+
for (i = 0; i < ARRAY_SIZE(mxcfb_info); i++) {
struct fb_info *fbi = mxcfb_info[i];
if (fbi) {
for (i = 0; i < ARRAY_SIZE(mxcfb_info); i++) {
struct fb_info *fbi = mxcfb_info[i];
if (fbi) {
@@
-599,15
+601,6
@@
void *video_hw_init(void)
return (void *)&panel;
}
return (void *)&panel;
}
-void video_set_lut(unsigned int index, /* color number */
- unsigned char r, /* red */
- unsigned char g, /* green */
- unsigned char b /* blue */
- )
-{
- return;
-}
-
int ipuv3_fb_init(struct fb_videomode const *mode,
uint8_t disp,
uint32_t pixfmt)
int ipuv3_fb_init(struct fb_videomode const *mode,
uint8_t disp,
uint32_t pixfmt)