xref: /rk3399_rockchip-uboot/include/vxworks.h (revision e9084b23d16102f44ace24379a1c0c352497ef80)
1*e9084b23SNiklaus Giger /*
2*e9084b23SNiklaus Giger  * (C) Copyright 2008
3*e9084b23SNiklaus Giger  * Niklaus Giger, niklaus.giger@member.fsf.org
4*e9084b23SNiklaus Giger  *
5*e9084b23SNiklaus Giger  * See file CREDITS for list of people who contributed to this
6*e9084b23SNiklaus Giger  * project.
7*e9084b23SNiklaus Giger  *
8*e9084b23SNiklaus Giger  * This program is free software; you can redistribute it and/or
9*e9084b23SNiklaus Giger  * modify it under the terms of the GNU General Public License as
10*e9084b23SNiklaus Giger  * published by the Free Software Foundation; either version 2 of
11*e9084b23SNiklaus Giger  * the License, or (at your option) any later version.
12*e9084b23SNiklaus Giger  *
13*e9084b23SNiklaus Giger  * This program is distributed in the hope that it will be useful,
14*e9084b23SNiklaus Giger  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15*e9084b23SNiklaus Giger  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*e9084b23SNiklaus Giger  * GNU General Public License for more details.
17*e9084b23SNiklaus Giger  *
18*e9084b23SNiklaus Giger  * You should have received a copy of the GNU General Public License
19*e9084b23SNiklaus Giger  * along with this program; if not, write to the Free Software
20*e9084b23SNiklaus Giger  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21*e9084b23SNiklaus Giger  * MA 02111-1307 USA
22*e9084b23SNiklaus Giger  */
23*e9084b23SNiklaus Giger 
24*e9084b23SNiklaus Giger #ifndef _VXWORKS_H_
25*e9084b23SNiklaus Giger #define _VXWORKS_H_
26*e9084b23SNiklaus Giger 
27*e9084b23SNiklaus Giger int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
28*e9084b23SNiklaus Giger 
29*e9084b23SNiklaus Giger /*
30*e9084b23SNiklaus Giger  * Use bootaddr to find the location in memory that VxWorks
31*e9084b23SNiklaus Giger  * will look for the bootline string. The default value for
32*e9084b23SNiklaus Giger  * PowerPC is LOCAL_MEM_LOCAL_ADRS + BOOT_LINE_OFFSET which
33*e9084b23SNiklaus Giger  * defaults to 0x4200
34*e9084b23SNiklaus Giger  */
35*e9084b23SNiklaus Giger #ifndef CONFIG_SYS_VXWORKS_BOOT_ADDR
36*e9084b23SNiklaus Giger #define CONFIG_SYS_VXWORKS_BOOT_ADDR 0x4200
37*e9084b23SNiklaus Giger #endif
38*e9084b23SNiklaus Giger 
39*e9084b23SNiklaus Giger #ifndef CONFIG_SYS_VXWORKS_BOOT_DEVICE
40*e9084b23SNiklaus Giger #if defined(CONFIG_4xx)
41*e9084b23SNiklaus Giger #define		CONFIG_SYS_VXWORKS_BOOT_DEVICE "emac(0,0)"
42*e9084b23SNiklaus Giger #elif defined(CONFIG_IOP480)
43*e9084b23SNiklaus Giger #define		CONFIG_SYS_VXWORKS_BOOT_DEVICE "dc(0,0)"
44*e9084b23SNiklaus Giger #else
45*e9084b23SNiklaus Giger #define		CONFIG_SYS_VXWORKS_BOOT_DEVICE "eth(0,0)"
46*e9084b23SNiklaus Giger #endif
47*e9084b23SNiklaus Giger #endif
48*e9084b23SNiklaus Giger 
49*e9084b23SNiklaus Giger #ifndef CONFIG_SYS_VXWORKS_SERVERNAME
50*e9084b23SNiklaus Giger #define CONFIG_SYS_VXWORKS_SERVERNAME srv
51*e9084b23SNiklaus Giger #endif
52*e9084b23SNiklaus Giger 
53*e9084b23SNiklaus Giger #endif
54