]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/common/karo.h
996f69bd04612d02163f19607a5dbc9c804d87a2
[karo-tx-uboot.git] / board / karo / common / karo.h
1 /*
2  * (C) Copyright 2012 Lothar Waßmann <LW@KARO-electronics.de>
3  *
4  * See file CREDITS for list of people who contributed to this
5  * project.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * version 2 as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16 */
17 struct fb_videomode;
18
19 #ifdef CONFIG_OF_LIBFDT
20 void karo_fdt_remove_node(void *blob, const char *node);
21 void karo_fdt_move_fdt(void);
22 void karo_fdt_fixup_touchpanel(void *blob);
23 void karo_fdt_fixup_usb_otg(void *blob, const char *node, const char *phy);
24 void karo_fdt_fixup_flexcan(void *blob, int xcvr_present);
25 void karo_fdt_del_prop(void *blob, const char *compat, phys_addr_t offs,
26                 const char *prop);
27 void karo_fdt_enable_node(void *blob, const char *node, int enable);
28 int karo_fdt_get_fb_mode(void *blob, const char *name,
29                 struct fb_videomode *fb_mode);
30 int karo_fdt_update_fb_mode(void *blob, const char *name);
31 int karo_fdt_create_fb_mode(void *blob, const char *name,
32                         struct fb_videomode *mode);
33 const char *karo_fdt_set_display(const char *video_mode, const char *lcd_path,
34                                 const char *lvds_path);
35 #else
36 static inline void karo_fdt_remove_node(void *blob, const char *node)
37 {
38 }
39 static inline void karo_fdt_move_fdt(void)
40 {
41 }
42 static inline void karo_fdt_fixup_touchpanel(void *blob)
43 {
44 }
45 static inline void karo_fdt_fixup_usb_otg(void *blob, const char *node,
46                                         const char *phy)
47 {
48 }
49 static inline void karo_fdt_fixup_flexcan(void *blob, int xcvr_present)
50 {
51 }
52 static inline void karo_fdt_del_prop(void *blob, const char *compat,
53                                 phys_addr_t offs, const char *prop)
54 {
55 }
56 static inline void karo_fdt_enable_node(void *blob, const char *node,
57                                         int enable)
58 {
59 }
60 static inline int karo_fdt_get_fb_mode(void *blob, const char *name,
61                                 struct fb_videomode *fb_mode)
62 {
63         return 0;
64 }
65 static inline int karo_fdt_update_fb_mode(void *blob, const char *name)
66 {
67         return 0;
68 }
69 static inline int karo_fdt_create_fb_mode(void *blob,
70                                         const char *name,
71                                         struct fb_videomode *mode)
72 {
73         return 0;
74 }
75 static inline const char *karo_fdt_set_display(const char *video_mode, const char *lcd_path,
76                                         const char *lvds_path)
77 {
78         return video_mode;
79 }
80 #endif
81
82 int karo_load_splashimage(int mode);