Bin Meng | e3b800a | 2019-07-18 00:34:25 -0700 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | .. (C) Copyright 2013 Xilinx, Inc. |
| 3 | |
| 4 | ZYNQ |
| 5 | ==== |
| 6 | |
| 7 | About this |
| 8 | ---------- |
| 9 | |
| 10 | This document describes the information about Xilinx Zynq U-Boot - |
| 11 | like supported boards, ML status and TODO list. |
| 12 | |
| 13 | Zynq boards |
| 14 | ----------- |
| 15 | |
| 16 | Xilinx Zynq-7000 All Programmable SoCs enable extensive system level |
| 17 | differentiation, integration, and flexibility through hardware, software, |
| 18 | and I/O programmability. |
| 19 | |
| 20 | * zc702 (single qspi, gem0, mmc) [1] |
| 21 | * zc706 (dual parallel qspi, gem0, mmc) [2] |
| 22 | * zed (single qspi, gem0, mmc) [3] |
| 23 | * microzed (single qspi, gem0, mmc) [4] |
| 24 | * zc770 |
| 25 | - zc770-xm010 (single qspi, gem0, mmc) |
| 26 | - zc770-xm011 (8 or 16 bit nand) |
| 27 | - zc770-xm012 (nor) |
| 28 | - zc770-xm013 (dual parallel qspi, gem1) |
| 29 | |
| 30 | Building |
| 31 | -------- |
| 32 | |
| 33 | configure and build for zc702 board:: |
| 34 | |
Michal Simek | f7c6ee7 | 2020-02-13 15:03:29 +0100 | [diff] [blame] | 35 | $ export DEVICE_TREE=zynq-zc702 |
| 36 | $ make xilinx_zynq_virt_defconfig |
Bin Meng | e3b800a | 2019-07-18 00:34:25 -0700 | [diff] [blame] | 37 | $ make |
| 38 | |
| 39 | Bootmode |
| 40 | -------- |
| 41 | |
| 42 | Zynq has a facility to read the bootmode from the slcr bootmode register |
| 43 | once user is setting through jumpers on the board - see page no:1546 on [5] |
| 44 | |
| 45 | All possible bootmode values are defined in Table 6-2:Boot_Mode MIO Pins |
| 46 | on [5]. |
| 47 | |
| 48 | board_late_init() will read the bootmode values using slcr bootmode register |
| 49 | at runtime and assign the modeboot variable to specific bootmode string which |
| 50 | is intern used in autoboot. |
| 51 | |
| 52 | SLCR bootmode register Bit[3:0] values |
| 53 | |
| 54 | .. code-block:: c |
| 55 | |
| 56 | #define ZYNQ_BM_NOR 0x02 |
| 57 | #define ZYNQ_BM_SD 0x05 |
| 58 | #define ZYNQ_BM_JTAG 0x0 |
| 59 | |
| 60 | "modeboot" variable can assign any of "norboot", "sdboot" or "jtagboot" |
| 61 | bootmode strings at runtime. |
| 62 | |
Johannes Krottmayer | 6b3984c | 2020-06-03 11:50:06 +0200 | [diff] [blame] | 63 | Flashing |
| 64 | -------- |
| 65 | |
| 66 | SD Card |
| 67 | ^^^^^^^ |
| 68 | |
| 69 | To write an image that boots from a SD card first create a FAT32 partition |
| 70 | and a FAT32 filesystem on the SD card:: |
| 71 | |
| 72 | sudo fdisk /dev/sdx |
| 73 | sudo mkfs.vfat -F 32 /dev/sdx1 |
| 74 | |
| 75 | Mount the SD card and copy the SPL and U-Boot to the root directory of the |
| 76 | SD card:: |
| 77 | |
| 78 | sudo mount -t vfat /dev/sdx1 /mnt |
| 79 | sudo cp spl/boot.bin /mnt |
| 80 | sudo cp u-boot.img /mnt |
| 81 | |
Bin Meng | e3b800a | 2019-07-18 00:34:25 -0700 | [diff] [blame] | 82 | Mainline status |
| 83 | --------------- |
| 84 | |
| 85 | - Added basic board configurations support. |
Michal Simek | 2bf4f76 | 2020-09-14 14:47:21 +0200 | [diff] [blame] | 86 | - Added zynq u-boot bsp code - arch/arm/mach-zynq |
Bin Meng | e3b800a | 2019-07-18 00:34:25 -0700 | [diff] [blame] | 87 | - Added zynq boards named - zc70x, zed, microzed, zc770_xm010/xm011/xm012/xm013 |
| 88 | - Added zynq drivers: |
| 89 | |
| 90 | :serial: drivers/serial/serial_zynq.c |
| 91 | :net: drivers/net/zynq_gem.c |
| 92 | :mmc: drivers/mmc/zynq_sdhci.c |
| 93 | :spi: drivers/spi/zynq_spi.c |
| 94 | :qspi: drivers/spi/zynq_qspi.c |
| 95 | :i2c: drivers/i2c/zynq_i2c.c |
| 96 | :nand: drivers/mtd/nand/raw/zynq_nand.c |
| 97 | |
| 98 | - Done proper cleanups on board configurations |
| 99 | - Added basic FDT support for zynq boards |
| 100 | - d-cache support for zynq_gem.c |
| 101 | |
Bin Meng | e3b800a | 2019-07-18 00:34:25 -0700 | [diff] [blame] | 102 | * [1] http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC702-G.htm |
| 103 | * [2] http://www.xilinx.com/products/boards-and-kits/EK-Z7-ZC706-G.htm |
| 104 | * [3] http://zedboard.org/product/zedboard |
| 105 | * [4] http://zedboard.org/product/microzed |
| 106 | * [5] http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf |
| 107 | |
| 108 | |
| 109 | .. Jagannadha Sutradharudu Teki <jaganna@xilinx.com> |
| 110 | .. Sun Dec 15 14:52:41 IST 2013 |