1bace3d00SSimon Glass /* 26fb62078SSimon Glass * Copyright (c) 2011-2012 The Chromium OS Authors. 3bace3d00SSimon Glass * See file CREDITS for list of people who contributed to this 4bace3d00SSimon Glass * project. 5bace3d00SSimon Glass * 6bace3d00SSimon Glass * This program is free software; you can redistribute it and/or 7bace3d00SSimon Glass * modify it under the terms of the GNU General Public License as 8bace3d00SSimon Glass * published by the Free Software Foundation; either version 2 of 9bace3d00SSimon Glass * the License, or (at your option) any later version. 10bace3d00SSimon Glass * 11bace3d00SSimon Glass * This program is distributed in the hope that it will be useful, 12bace3d00SSimon Glass * but WITHOUT ANY WARRANTY; without even the implied warranty of 13bace3d00SSimon Glass * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14bace3d00SSimon Glass * GNU General Public License for more details. 15bace3d00SSimon Glass * 16bace3d00SSimon Glass * You should have received a copy of the GNU General Public License 17bace3d00SSimon Glass * along with this program; if not, write to the Free Software 18bace3d00SSimon Glass * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 19bace3d00SSimon Glass * MA 02111-1307 USA 20bace3d00SSimon Glass */ 21bace3d00SSimon Glass 22bace3d00SSimon Glass #include <common.h> 236fb62078SSimon Glass #include <asm/state.h> 24bace3d00SSimon Glass 25*ab4e07ebSSimon Glass int sandbox_main_loop_init(void) 26*ab4e07ebSSimon Glass { 27*ab4e07ebSSimon Glass return 0; 28*ab4e07ebSSimon Glass } 29*ab4e07ebSSimon Glass 30bace3d00SSimon Glass int main(int argc, char *argv[]) 31bace3d00SSimon Glass { 326fb62078SSimon Glass int err; 336fb62078SSimon Glass 346fb62078SSimon Glass err = state_init(); 356fb62078SSimon Glass if (err) 366fb62078SSimon Glass return err; 376fb62078SSimon Glass 38bace3d00SSimon Glass /* 39bace3d00SSimon Glass * Do pre- and post-relocation init, then start up U-Boot. This will 40bace3d00SSimon Glass * never return. 41bace3d00SSimon Glass */ 42bace3d00SSimon Glass board_init_f(0); 43bace3d00SSimon Glass } 44