summaryrefslogtreecommitdiff
path: root/board/netstal/common/nm.h
diff options
context:
space:
mode:
authorNiklaus Giger <niklaus.giger@netstal.com>2008-01-17 12:53:56 +0100
committerStefan Roese <sr@denx.de>2008-01-17 13:51:37 +0100
commit69b0634a4ee98c9791815600d43b99f626a952f3 (patch)
tree6c713e21082ef0b92e90002528c63f012a161c4a /board/netstal/common/nm.h
parentefeff5382b7a91b48a1aa68b2b75f92ad1d33ff8 (diff)
downloadu-boot-imx-69b0634a4ee98c9791815600d43b99f626a952f3.zip
u-boot-imx-69b0634a4ee98c9791815600d43b99f626a952f3.tar.gz
u-boot-imx-69b0634a4ee98c9791815600d43b99f626a952f3.tar.bz2
ppc4xx: netstal/common define routines used by all boards
Added some routines used by all Netstal boards: - nm_bsp.c: - nm_show_print and - common_misc_init_r - set_params_for_sw_install. Very specific code to handle our SW installation procedure - fixed_sdram.c: Common routines for HCU4 (and upcoming) MCU25 boards to handle sdram initialization. - nm.h: Common header Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
Diffstat (limited to 'board/netstal/common/nm.h')
-rw-r--r--board/netstal/common/nm.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/board/netstal/common/nm.h b/board/netstal/common/nm.h
new file mode 100644
index 0000000..2801e13
--- /dev/null
+++ b/board/netstal/common/nm.h
@@ -0,0 +1,38 @@
+/*
+ *(C) Copyright 2005-2007 Netstal Maschinen AG
+ * Niklaus Giger (Niklaus.Giger@netstal.com)
+ *
+ * This source code is free software; you can redistribute it
+ * and/or modify it in source code form 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
+ */
+
+extern void hcu_led_set(u32 value);
+extern u32 get_serial_number(void);
+extern u32 hcu_get_slot(void);
+extern int board_with_pci(void);
+extern void nm_show_print(int generation, int index, int hw_capabilities);
+extern void set_params_for_sw_install(int install_requested, char *board_name );
+extern void common_misc_init_r(void);
+
+enum {
+ /* HW_GENERATION_HCU1 is no longer supported */
+ HW_GENERATION_HCU2 = 0x10,
+ HW_GENERATION_HCU3 = 0x10,
+ HW_GENERATION_HCU4 = 0x20,
+ HW_GENERATION_HCU5 = 0x30,
+ HW_GENERATION_MCU = 0x08,
+ HW_GENERATION_MCU20 = 0x0a,
+ HW_GENERATION_MCU25 = 0x09,
+};