summaryrefslogtreecommitdiffstats
path: root/common/altera.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2006-08-15 14:15:51 +0200
committerStefan Roese <sr@denx.de>2006-08-15 14:15:51 +0200
commitf0ff4692ff3372dec55074a8eb444943ab095abb (patch)
treefdd0a2a9962b2ec5f2dda88b6b264bebf24be3ac /common/altera.c
parentc72d9c528517e629e146ca9ce101a4888c45fac8 (diff)
downloadtalos-obmc-uboot-f0ff4692ff3372dec55074a8eb444943ab095abb.tar.gz
talos-obmc-uboot-f0ff4692ff3372dec55074a8eb444943ab095abb.zip
Add FPGA Altera Cyclone 2 support
Patch by Heiko Schocher, 15 Aug 2006
Diffstat (limited to 'common/altera.c')
-rw-r--r--common/altera.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/common/altera.c b/common/altera.c
index ebd50382c6..357d70234c 100644
--- a/common/altera.c
+++ b/common/altera.c
@@ -55,10 +55,15 @@ int altera_load( Altera_desc *desc, void *buf, size_t bsize )
} else {
switch (desc->family) {
case Altera_ACEX1K:
+ case Altera_CYC2:
#if (CONFIG_FPGA & CFG_ACEX1K)
PRINTF ("%s: Launching the ACEX1K Loader...\n",
__FUNCTION__);
ret_val = ACEX1K_load (desc, buf, bsize);
+#elif (CONFIG_FPGA & CFG_CYCLON2)
+ PRINTF ("%s: Launching the CYCLON II Loader...\n",
+ __FUNCTION__);
+ ret_val = CYC2_load (desc, buf, bsize);
#else
printf ("%s: No support for ACEX1K devices.\n",
__FUNCTION__);
@@ -113,6 +118,9 @@ int altera_info( Altera_desc *desc )
printf ("ACEX1K\n");
break;
/* Add new family types here */
+ case Altera_CYC2:
+ printf ("CYCLON II\n");
+ break;
default:
printf ("Unknown family type, %d\n", desc->family);
}
@@ -147,8 +155,11 @@ int altera_info( Altera_desc *desc )
printf ("Device Function Table @ 0x%p\n", desc->iface_fns);
switch (desc->family) {
case Altera_ACEX1K:
+ case Altera_CYC2:
#if (CONFIG_FPGA & CFG_ACEX1K)
ACEX1K_info (desc);
+#elif (CONFIG_FPGA & CFG_CYCLON2)
+ CYC2_info (desc);
#else
/* just in case */
printf ("%s: No support for ACEX1K devices.\n",
@@ -188,6 +199,14 @@ int altera_reloc( Altera_desc *desc, ulong reloc_offset)
__FUNCTION__);
#endif
break;
+ case Altera_CYC2:
+#if (CONFIG_FPGA & CFG_CYCLON2)
+ ret_val = CYC2_reloc (desc, reloc_offset);
+#else
+ printf ("%s: No support for CYCLON II devices.\n",
+ __FUNCTION__);
+#endif
+ break;
/* Add new family types here */
default:
printf ("%s: Unsupported family type, %d\n",
OpenPOWER on IntegriCloud