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