xref: /rk3399_rockchip-uboot/include/zynqpl.h (revision d5dae85f23c7c902731512e451afde9a6e4a250a)
1*d5dae85fSMichal Simek /*
2*d5dae85fSMichal Simek  * (C) Copyright 2012-2013, Xilinx, Michal Simek
3*d5dae85fSMichal Simek  *
4*d5dae85fSMichal Simek  * (C) Copyright 2012
5*d5dae85fSMichal Simek  * Joe Hershberger <joe.hershberger@ni.com>
6*d5dae85fSMichal Simek  *
7*d5dae85fSMichal Simek  * See file CREDITS for list of people who contributed to this
8*d5dae85fSMichal Simek  * project.
9*d5dae85fSMichal Simek  *
10*d5dae85fSMichal Simek  * This program is free software; you can redistribute it and/or
11*d5dae85fSMichal Simek  * modify it under the terms of the GNU General Public License as
12*d5dae85fSMichal Simek  * published by the Free Software Foundation; either version 2 of
13*d5dae85fSMichal Simek  * the License, or (at your option) any later version.
14*d5dae85fSMichal Simek  *
15*d5dae85fSMichal Simek  * This program is distributed in the hope that it will be useful,
16*d5dae85fSMichal Simek  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*d5dae85fSMichal Simek  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*d5dae85fSMichal Simek  * GNU General Public License for more details.
19*d5dae85fSMichal Simek  *
20*d5dae85fSMichal Simek  * You should have received a copy of the GNU General Public License
21*d5dae85fSMichal Simek  * along with this program; if not, write to the Free Software
22*d5dae85fSMichal Simek  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23*d5dae85fSMichal Simek  * MA 02111-1307 USA
24*d5dae85fSMichal Simek  */
25*d5dae85fSMichal Simek 
26*d5dae85fSMichal Simek #ifndef _ZYNQPL_H_
27*d5dae85fSMichal Simek #define _ZYNQPL_H_
28*d5dae85fSMichal Simek 
29*d5dae85fSMichal Simek #include <xilinx.h>
30*d5dae85fSMichal Simek 
31*d5dae85fSMichal Simek extern int zynq_load(Xilinx_desc *desc, const void *image, size_t size);
32*d5dae85fSMichal Simek extern int zynq_dump(Xilinx_desc *desc, const void *buf, size_t bsize);
33*d5dae85fSMichal Simek extern int zynq_info(Xilinx_desc *desc);
34*d5dae85fSMichal Simek 
35*d5dae85fSMichal Simek #define XILINX_ZYNQ_7010	0x2
36*d5dae85fSMichal Simek #define XILINX_ZYNQ_7020	0x7
37*d5dae85fSMichal Simek #define XILINX_ZYNQ_7030	0xc
38*d5dae85fSMichal Simek #define XILINX_ZYNQ_7045	0x11
39*d5dae85fSMichal Simek 
40*d5dae85fSMichal Simek /* Device Image Sizes */
41*d5dae85fSMichal Simek #define XILINX_XC7Z010_SIZE	16669920/8
42*d5dae85fSMichal Simek #define XILINX_XC7Z020_SIZE	32364512/8
43*d5dae85fSMichal Simek #define XILINX_XC7Z030_SIZE	47839328/8
44*d5dae85fSMichal Simek #define XILINX_XC7Z045_SIZE	106571232/8
45*d5dae85fSMichal Simek 
46*d5dae85fSMichal Simek /* Descriptor Macros */
47*d5dae85fSMichal Simek #define XILINX_XC7Z010_DESC(cookie) \
48*d5dae85fSMichal Simek { xilinx_zynq, devcfg, XILINX_XC7Z010_SIZE, NULL, cookie }
49*d5dae85fSMichal Simek 
50*d5dae85fSMichal Simek #define XILINX_XC7Z020_DESC(cookie) \
51*d5dae85fSMichal Simek { xilinx_zynq, devcfg, XILINX_XC7Z020_SIZE, NULL, cookie }
52*d5dae85fSMichal Simek 
53*d5dae85fSMichal Simek #define XILINX_XC7Z030_DESC(cookie) \
54*d5dae85fSMichal Simek { xilinx_zynq, devcfg, XILINX_XC7Z030_SIZE, NULL, cookie }
55*d5dae85fSMichal Simek 
56*d5dae85fSMichal Simek #define XILINX_XC7Z045_DESC(cookie) \
57*d5dae85fSMichal Simek { xilinx_zynq, devcfg, XILINX_XC7Z045_SIZE, NULL, cookie }
58*d5dae85fSMichal Simek 
59*d5dae85fSMichal Simek #endif /* _ZYNQPL_H_ */
60