]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/common/karo.h
fix build errors with FDT disabled
[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
18 #ifdef CONFIG_OF_LIBFDT
19 void karo_fdt_remove_node(void *blob, const char *node);
20 void karo_fdt_move_fdt(void);
21 void karo_fdt_fixup_touchpanel(void *blob);
22 void karo_fdt_fixup_usb_otg(void *blob, const char *compat, phys_addr_t offs);
23 void karo_fdt_del_prop(void *blob, const char *compat, phys_addr_t offs,
24                 const char *prop);
25 void karo_fdt_enable_node(void *blob, const char *node, int enable);
26 void *karo_fdt_load_dtb(void);
27 #else
28 static inline void karo_fdt_remove_node(void *blob, const char *node)
29 {
30 }
31 static inline void karo_fdt_move_fdt(void)
32 {
33 }
34 static inline void karo_fdt_fixup_touchpanel(void *blob)
35 {
36 }
37 static inline void karo_fdt_fixup_usb_otg(void *blob, const char *compat, phys_addr_t offs)
38 {
39 }
40 static inline void karo_fdt_del_prop(void *blob, const char *compat, phys_addr_t offs,
41                 const char *prop)
42 {
43 }
44 static inline void karo_fdt_enable_node(void *blob, const char *node, int enable)
45 {
46 }
47 static inline void *karo_fdt_load_dtb(void)
48 {
49         return NULL;
50 }
51 #endif
52
53 int karo_load_splashimage(int mode);