]>
git.ipfire.org Git - people/ms/u-boot.git/blob - lib_blackfin/bf533_linux.c
2 * U-boot - bf533_linux.c
4 * Copyright (c) 2005 blackfin.uclinux.org
6 * (C) Copyright 2000-2004
7 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
9 * See file CREDITS for list of people who contributed to this
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of
15 * the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 /* Dummy functions, currently not in Use */
34 #include <asm/byteorder.h>
36 #define LINUX_MAX_ENVS 256
37 #define LINUX_MAX_ARGS 256
39 #ifdef CONFIG_SHOW_BOOT_PROGRESS
40 #include <status_led.h>
41 #define SHOW_BOOT_PROGRESS(arg) show_boot_progress(arg)
43 #define SHOW_BOOT_PROGRESS(arg)
46 #define CMD_LINE_ADDR 0xFF900000 /* L1 scratchpad */
48 #ifdef SHARED_RESOURCES
49 extern void swap_to(int device_id
);
52 static char *make_command_line(void);
54 extern image_header_t header
;
55 extern int do_reset(cmd_tbl_t
* cmdtp
, int flag
, int argc
, char *argv
[]);
56 void do_bootm_linux(cmd_tbl_t
* cmdtp
, int flag
, int argc
, char *argv
[],
57 ulong addr
, ulong
* len_ptr
, int verify
)
59 int (*appl
)(char *cmdline
);
62 #ifdef SHARED_RESOURCES
66 appl
= (int (*)(char *))ntohl(header
.ih_ep
);
67 printf("Starting Kernel at = %x\n", appl
);
68 cmdline
= make_command_line();
70 flush_instruction_cache();
80 char *make_command_line(void)
82 char *dest
= (char *) CMD_LINE_ADDR
;
85 if ( (bootargs
= getenv("bootargs")) == NULL
)
88 strncpy(dest
, bootargs
, 0x1000);