summaryrefslogtreecommitdiff
path: root/include/vxworks.h
diff options
context:
space:
mode:
authorNiklaus Giger <niklaus.giger@member.fsf.org>2008-11-03 22:14:36 +0100
committerWolfgang Denk <wd@denx.de>2008-12-07 00:17:35 +0100
commite9084b23d16102f44ace24379a1c0c352497ef80 (patch)
tree1aeb78fdc9cba2b9bec40e0f7cfda8dff518217b /include/vxworks.h
parent0b2f4ecad473d785959c7976f20d2a00bd0ee01f (diff)
downloadu-boot-imx-e9084b23d16102f44ace24379a1c0c352497ef80.zip
u-boot-imx-e9084b23d16102f44ace24379a1c0c352497ef80.tar.gz
u-boot-imx-e9084b23d16102f44ace24379a1c0c352497ef80.tar.bz2
Add vxworks.h to handle CONFIG_SYS_VXWORKS parameters
Signed-off-by: Niklaus Giger <niklaus.giger@member.fsf.org>
Diffstat (limited to 'include/vxworks.h')
-rw-r--r--include/vxworks.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/include/vxworks.h b/include/vxworks.h
new file mode 100644
index 0000000..548e8e8
--- /dev/null
+++ b/include/vxworks.h
@@ -0,0 +1,53 @@
+/*
+ * (C) Copyright 2008
+ * Niklaus Giger, niklaus.giger@member.fsf.org
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef _VXWORKS_H_
+#define _VXWORKS_H_
+
+int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
+
+/*
+ * Use bootaddr to find the location in memory that VxWorks
+ * will look for the bootline string. The default value for
+ * PowerPC is LOCAL_MEM_LOCAL_ADRS + BOOT_LINE_OFFSET which
+ * defaults to 0x4200
+ */
+#ifndef CONFIG_SYS_VXWORKS_BOOT_ADDR
+#define CONFIG_SYS_VXWORKS_BOOT_ADDR 0x4200
+#endif
+
+#ifndef CONFIG_SYS_VXWORKS_BOOT_DEVICE
+#if defined(CONFIG_4xx)
+#define CONFIG_SYS_VXWORKS_BOOT_DEVICE "emac(0,0)"
+#elif defined(CONFIG_IOP480)
+#define CONFIG_SYS_VXWORKS_BOOT_DEVICE "dc(0,0)"
+#else
+#define CONFIG_SYS_VXWORKS_BOOT_DEVICE "eth(0,0)"
+#endif
+#endif
+
+#ifndef CONFIG_SYS_VXWORKS_SERVERNAME
+#define CONFIG_SYS_VXWORKS_SERVERNAME srv
+#endif
+
+#endif