2 * Copyright (C) 2011 Samsung Electronics
4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26 typedef u32(*copy_sd_mmc_to_mem) \
27 (u32 start_block, u32 block_count, u32 *dest_addr);
30 void copy_uboot_to_ram(void)
32 copy_sd_mmc_to_mem copy_bl2 = (copy_sd_mmc_to_mem)(0x00002488);
33 copy_bl2(BL2_START_OFFSET,\
34 BL2_SIZE_BLOC_COUNT, (u32 *)CONFIG_SYS_TEXT_BASE);
37 void board_init_f(unsigned long bootflag)
39 __attribute__((noreturn)) void (*uboot)(void);
42 /* Jump to U-Boot image */
43 uboot = (void *)CONFIG_SYS_TEXT_BASE;
45 /* Never returns Here */
49 void board_init_r(gd_t *id, ulong dest_addr)
51 /*Function attribute is no-return*/
52 /*This Function never executes*/
57 void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3)