2 * U-boot - spibootldr.c
4 * Copyright (c) 2005-2008 Analog Devices Inc.
6 * See file CREDITS for list of people who contributed to this
9 * Licensed under the GPL-2 or later.
15 #include <asm/blackfin.h>
16 #include <asm/mach-common/bits/bootrom.h>
18 int do_spibootldr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
26 addr = simple_strtoul(argv[1], NULL, 16);
28 printf("## Booting ldr image at SPI offset 0x%x ...\n", addr);
30 return bfrom_SpiBoot(addr, BFLAG_PERIPHERAL | 4, 0, NULL);
34 spibootldr, 2, 0, do_spibootldr,
35 "boot ldr image from spi",
37 " - boot ldr image stored at offset into spi\n");