2 * Voipac PXA270 OneNAND SPL
4 * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
6 * SPDX-License-Identifier: GPL-2.0+
12 #include <onenand_uboot.h>
13 #include <asm/arch/pxa.h>
15 void board_init_f(unsigned long unused)
20 asm volatile("mov %0, pc" : "=r"(tmp));
23 /* The code runs from OneNAND RAM, copy SPL to SRAM and execute it. */
25 tmp = (uint32_t)&_end - CONFIG_SPL_TEXT_BASE;
26 onenand_spl_load_image(0, tmp, (void *)CONFIG_SPL_TEXT_BASE);
27 asm volatile("mov pc, %0" : : "r"(CONFIG_SPL_TEXT_BASE));
30 /* Hereby, the code runs from (S)RAM, copy U-Boot and execute it. */
33 onenand_spl_load_image(CONFIG_SPL_ONENAND_LOAD_ADDR,
34 CONFIG_SPL_ONENAND_LOAD_SIZE,
35 (void *)CONFIG_SYS_TEXT_BASE);
36 asm volatile("mov pc, %0" : : "r"(CONFIG_SYS_TEXT_BASE));
42 void __attribute__((noreturn)) hang(void)