1bace3d00SSimon Glass /* 2*6fb62078SSimon 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> 23*6fb62078SSimon Glass #include <asm/state.h> 24bace3d00SSimon Glass 25bace3d00SSimon Glass int main(int argc, char *argv[]) 26bace3d00SSimon Glass { 27*6fb62078SSimon Glass int err; 28*6fb62078SSimon Glass 29*6fb62078SSimon Glass err = state_init(); 30*6fb62078SSimon Glass if (err) 31*6fb62078SSimon Glass return err; 32*6fb62078SSimon Glass 33bace3d00SSimon Glass /* 34bace3d00SSimon Glass * Do pre- and post-relocation init, then start up U-Boot. This will 35bace3d00SSimon Glass * never return. 36bace3d00SSimon Glass */ 37bace3d00SSimon Glass board_init_f(0); 38bace3d00SSimon Glass } 39