164dbbd40SGerald Van Baren /* 264dbbd40SGerald Van Baren * (C) Copyright 2007 364dbbd40SGerald Van Baren * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com 464dbbd40SGerald Van Baren * 564dbbd40SGerald Van Baren * See file CREDITS for list of people who contributed to this 664dbbd40SGerald Van Baren * project. 764dbbd40SGerald Van Baren * 864dbbd40SGerald Van Baren * This program is free software; you can redistribute it and/or 964dbbd40SGerald Van Baren * modify it under the terms of the GNU General Public License as 1064dbbd40SGerald Van Baren * published by the Free Software Foundation; either version 2 of 1164dbbd40SGerald Van Baren * the License, or (at your option) any later version. 1264dbbd40SGerald Van Baren * 1364dbbd40SGerald Van Baren * This program is distributed in the hope that it will be useful, 1464dbbd40SGerald Van Baren * but WITHOUT ANY WARRANTY; without even the implied warranty of 1564dbbd40SGerald Van Baren * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1664dbbd40SGerald Van Baren * GNU General Public License for more details. 1764dbbd40SGerald Van Baren * 1864dbbd40SGerald Van Baren * You should have received a copy of the GNU General Public License 1964dbbd40SGerald Van Baren * along with this program; if not, write to the Free Software 2064dbbd40SGerald Van Baren * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2164dbbd40SGerald Van Baren * MA 02111-1307 USA 2264dbbd40SGerald Van Baren */ 2364dbbd40SGerald Van Baren 2464dbbd40SGerald Van Baren #ifndef __FDT_SUPPORT_H 2564dbbd40SGerald Van Baren #define __FDT_SUPPORT_H 2664dbbd40SGerald Van Baren 2764dbbd40SGerald Van Baren #ifdef CONFIG_OF_LIBFDT 2864dbbd40SGerald Van Baren 2964dbbd40SGerald Van Baren #include <fdt.h> 3064dbbd40SGerald Van Baren 3164dbbd40SGerald Van Baren int fdt_chosen(void *fdt, ulong initrd_start, ulong initrd_end, int force); 3264dbbd40SGerald Van Baren 3364dbbd40SGerald Van Baren #ifdef CONFIG_OF_HAS_UBOOT_ENV 3464dbbd40SGerald Van Baren int fdt_env(void *fdt); 3564dbbd40SGerald Van Baren #endif 3664dbbd40SGerald Van Baren 3764dbbd40SGerald Van Baren #ifdef CONFIG_OF_HAS_BD_T 3864dbbd40SGerald Van Baren int fdt_bd_t(void *fdt); 3964dbbd40SGerald Van Baren #endif 4064dbbd40SGerald Van Baren 41*e125a2ffSGerald Van Baren #ifdef CONFIG_OF_BOARD_SETUP 42*e125a2ffSGerald Van Baren void ft_board_setup(void *blob, bd_t *bd); 43*e125a2ffSGerald Van Baren void ft_cpu_setup(void *blob, bd_t *bd); 44*e125a2ffSGerald Van Baren void ft_pci_setup(void *blob, bd_t *bd); 45*e125a2ffSGerald Van Baren #endif 46*e125a2ffSGerald Van Baren 4764dbbd40SGerald Van Baren #endif /* ifdef CONFIG_OF_LIBFDT */ 4864dbbd40SGerald Van Baren #endif /* ifndef __FDT_SUPPORT_H */ 49