Synchronization with mainline version.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
/*
+ * (C) Copyright 2012-2013, Xilinx, Michal Simek
+ *
* (C) Copyright 2002
* Rich Ireland, Enterasys Networks, rireland@enterasys.com.
* Keith Outwater, keith_outwater@mvis.com
__FUNCTION__);
#endif
break;
- case Xilinx_Zynq:
+ case xilinx_zynq:
#if defined(CONFIG_FPGA_ZYNQPL)
PRINTF("%s: Launching the Zynq PL Loader...\n",
- __func__);
+ __func__);
ret_val = zynq_load(desc, buf, bsize);
#else
printf("%s: No support for Zynq devices.\n",
- __func__);
+ __func__);
#endif
break;
__FUNCTION__);
#endif
break;
- case Xilinx_Zynq:
+ case xilinx_zynq:
#if defined(CONFIG_FPGA_ZYNQPL)
PRINTF("%s: Launching the Zynq PL Reader...\n",
- __func__);
+ __func__);
ret_val = zynq_dump(desc, buf, bsize);
#else
printf("%s: No support for Zynq devices.\n",
- __func__);
+ __func__);
#endif
break;
case Xilinx_Virtex2:
printf ("Virtex-II\n");
break;
- case Xilinx_Zynq:
+ case xilinx_zynq:
printf("Zynq PL\n");
break;
/* Add new family types here */
__FUNCTION__);
#endif
break;
- case Xilinx_Zynq:
+ case xilinx_zynq:
#if defined(CONFIG_FPGA_ZYNQPL)
zynq_info(desc);
#else
/* just in case */
printf("%s: No support for Zynq devices.\n",
- __func__);
+ __func__);
#endif
/* Add new family types here */
default:
/*
+ * (C) Copyright 2012-2013, Xilinx, Michal Simek
+ *
* (C) Copyright 2012
* Joe Hershberger <joe.hershberger@ni.com>
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
- *
*/
#include <common.h>
/* Check bitstream size */
if (bsize != desc->size) {
printf("Error: File size is wrong - should be %x.\n",
- desc->size);
+ desc->size);
return FPGA_FAIL;
}
if (isr_status & DEVCFG_ISR_ERROR_FLAGS_MASK) {
debug("Error: isr = 0x%08X\n", isr_status);
debug("Write count = 0x%08X\n",
- readl(&devcfg_base->write_count));
+ readl(&devcfg_base->write_count));
debug("Read count = 0x%08X\n",
- readl(&devcfg_base->read_count));
+ readl(&devcfg_base->read_count));
return FPGA_FAIL;
}
# define CONFIG_CPU_V6 /* Required by CONFIG_ARM_DCC */
#endif
+/* Enable the PL to be downloaded */
+#define CONFIG_FPGA
+#define CONFIG_FPGA_XILINX
+#define CONFIG_FPGA_ZYNQPL
+#define CONFIG_CMD_FPGA
+
#define CONFIG_BOOTP_SERVERIP
#define CONFIG_BOOTP_BOOTPATH
#define CONFIG_BOOTP_GATEWAY
Xilinx_VirtexE, /* Virtex-E Family */
Xilinx_Virtex2, /* Virtex2 Family */
Xilinx_Spartan3, /* Spartan-III Family */
- Xilinx_Zynq, /* Zynq Family */
+ xilinx_zynq, /* Zynq Family */
max_xilinx_type /* insert all new types before this */
} Xilinx_Family; /* end, typedef Xilinx_Family */
/*
+ * (C) Copyright 2012-2013, Xilinx, Michal Simek
+ *
* (C) Copyright 2012
* Joe Hershberger <joe.hershberger@ni.com>
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
- *
*/
#ifndef _ZYNQPL_H_
#define XILINX_ZYNQ_7030 0xc
#define XILINX_ZYNQ_7045 0x11
-/* Device Image Sizes
- *********************************************************************/
+/* Device Image Sizes */
#define XILINX_XC7Z010_SIZE 16669920/8
#define XILINX_XC7Z020_SIZE 32364512/8
#define XILINX_XC7Z030_SIZE 47839328/8
#define XILINX_XC7Z045_SIZE 106571232/8
-/* Descriptor Macros
- *********************************************************************/
+/* Descriptor Macros */
#define XILINX_XC7Z010_DESC(cookie) \
-{ Xilinx_Zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie }
+{ xilinx_zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie }
#define XILINX_XC7Z020_DESC(cookie) \
-{ Xilinx_Zynq, devcfg, XILINX_XC7Z020_SIZE, NULL, cookie }
+{ xilinx_zynq, devcfg, XILINX_XC7Z020_SIZE, NULL, cookie }
#define XILINX_XC7Z030_DESC(cookie) \
-{ Xilinx_Zynq, devcfg, XILINX_XC7Z030_SIZE, NULL, cookie }
+{ xilinx_zynq, devcfg, XILINX_XC7Z030_SIZE, NULL, cookie }
#define XILINX_XC7Z045_DESC(cookie) \
-{ Xilinx_Zynq, devcfg, XILINX_XC7Z045_SIZE, NULL, cookie }
+{ xilinx_zynq, devcfg, XILINX_XC7Z045_SIZE, NULL, cookie }
#endif /* _ZYNQPL_H_ */