1*64dbbd40SGerald Van Baren /* 2*64dbbd40SGerald Van Baren * (C) Copyright 2007 3*64dbbd40SGerald Van Baren * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com 4*64dbbd40SGerald Van Baren * 5*64dbbd40SGerald Van Baren * See file CREDITS for list of people who contributed to this 6*64dbbd40SGerald Van Baren * project. 7*64dbbd40SGerald Van Baren * 8*64dbbd40SGerald Van Baren * This program is free software; you can redistribute it and/or 9*64dbbd40SGerald Van Baren * modify it under the terms of the GNU General Public License as 10*64dbbd40SGerald Van Baren * published by the Free Software Foundation; either version 2 of 11*64dbbd40SGerald Van Baren * the License, or (at your option) any later version. 12*64dbbd40SGerald Van Baren * 13*64dbbd40SGerald Van Baren * This program is distributed in the hope that it will be useful, 14*64dbbd40SGerald Van Baren * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*64dbbd40SGerald Van Baren * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*64dbbd40SGerald Van Baren * GNU General Public License for more details. 17*64dbbd40SGerald Van Baren * 18*64dbbd40SGerald Van Baren * You should have received a copy of the GNU General Public License 19*64dbbd40SGerald Van Baren * along with this program; if not, write to the Free Software 20*64dbbd40SGerald Van Baren * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*64dbbd40SGerald Van Baren * MA 02111-1307 USA 22*64dbbd40SGerald Van Baren */ 23*64dbbd40SGerald Van Baren 24*64dbbd40SGerald Van Baren #ifndef __FDT_SUPPORT_H 25*64dbbd40SGerald Van Baren #define __FDT_SUPPORT_H 26*64dbbd40SGerald Van Baren 27*64dbbd40SGerald Van Baren #ifdef CONFIG_OF_LIBFDT 28*64dbbd40SGerald Van Baren 29*64dbbd40SGerald Van Baren #include <fdt.h> 30*64dbbd40SGerald Van Baren 31*64dbbd40SGerald Van Baren int fdt_chosen(void *fdt, ulong initrd_start, ulong initrd_end, int force); 32*64dbbd40SGerald Van Baren 33*64dbbd40SGerald Van Baren #ifdef CONFIG_OF_HAS_UBOOT_ENV 34*64dbbd40SGerald Van Baren int fdt_env(void *fdt); 35*64dbbd40SGerald Van Baren #endif 36*64dbbd40SGerald Van Baren 37*64dbbd40SGerald Van Baren #ifdef CONFIG_OF_HAS_BD_T 38*64dbbd40SGerald Van Baren int fdt_bd_t(void *fdt); 39*64dbbd40SGerald Van Baren #endif 40*64dbbd40SGerald Van Baren 41*64dbbd40SGerald Van Baren #endif /* ifdef CONFIG_OF_LIBFDT */ 42*64dbbd40SGerald Van Baren #endif /* ifndef __FDT_SUPPORT_H */ 43