summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2015-04-14 13:58:27 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2015-04-14 14:01:17 +1000
commit8cc99fb7155f4301cdf52890243ee9e5adf92047 (patch)
treea8e10882d0d65a2d972b11e0c9a90dd968280d79
parenta4c70d3778349a216e6d0a3de6d371944d06d05f (diff)
downloadmeta-xilinx-8cc99fb7155f4301cdf52890243ee9e5adf92047.tar.gz
u-boot-xlnx: Add support for picoZed
* Refactor the 2015.01 specific source setup into the u-boot-xlnx-2015.01.inc file * Add the picoZed patch to support the board Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r--recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb6
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc11
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx/zynq-Add-Zynq-PicoZed-board-support.patch142
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb7
4 files changed, 156 insertions, 10 deletions
diff --git a/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb b/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb
index 7d4fe5d8..aea587e3 100644
--- a/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb
+++ b/recipes-bsp/u-boot/u-boot-spl-xlnx_2015.01.bb
@@ -1,12 +1,10 @@
1require u-boot-xlnx.inc 1include u-boot-xlnx.inc
2include u-boot-xlnx-2015.01.inc
2 3
3COMPATIBLE_MACHINE = "zynq" 4COMPATIBLE_MACHINE = "zynq"
4 5
5PROVIDES = "virtual/boot-bin" 6PROVIDES = "virtual/boot-bin"
6 7
7SRCREV = "03464615e241054a38cd920980d6b12feba95585"
8PV = "v2015.01${XILINX_EXTENSION}+git${SRCPV}"
9
10SPL_BINARY = "boot.bin" 8SPL_BINARY = "boot.bin"
11UBOOT_MAKE_TARGET ?= "boot.bin" 9UBOOT_MAKE_TARGET ?= "boot.bin"
12 10
diff --git a/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc b/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc
new file mode 100644
index 00000000..e47bacfa
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc
@@ -0,0 +1,11 @@
1
2SRCREV = "03464615e241054a38cd920980d6b12feba95585"
3PV = "v2015.01${XILINX_EXTENSION}+git${SRCPV}"
4
5FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:"
6SRC_URI += " \
7 file://zynq-Add-Zynq-PicoZed-board-support.patch \
8 "
9
10LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c"
11
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/zynq-Add-Zynq-PicoZed-board-support.patch b/recipes-bsp/u-boot/u-boot-xlnx/zynq-Add-Zynq-PicoZed-board-support.patch
new file mode 100644
index 00000000..c3521500
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-xlnx/zynq-Add-Zynq-PicoZed-board-support.patch
@@ -0,0 +1,142 @@
1From 7bbdb62ff8513ff1d7c1bacb43be49d70c44539d Mon Sep 17 00:00:00 2001
2From: Nathan Rossi <nathan.rossi@xilinx.com>
3Date: Tue, 7 Apr 2015 11:27:20 +1000
4Subject: [PATCH] zynq: Add Zynq PicoZed board support
5
6The PicoZed is a System-on-Module board which is marketed as part of
7the ZedBoard/MicroZed/etc. collection. It includes a Zynq-7000
8processor.
9
10This patch adds support that covers all the variants of the PicoZed
11including the SKUs with Z7010/Z7020 and Z7015/Z7030 Zynq chips. This
12patch set however only covers support for the System-on-Module and does
13not cover any extra components that are available on carrier boards
14(except those that are fanned out of the module itself).
15
16More information on this board, its variants and available carrier
17boards is available at: http://zedboard.org/product/picozed
18
19Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
20---
21 arch/arm/cpu/armv7/zynq/Kconfig | 4 ++++
22 arch/arm/dts/Makefile | 1 +
23 arch/arm/dts/zynq-picozed.dts | 23 +++++++++++++++++++++++
24 configs/zynq_picozed_defconfig | 6 ++++++
25 include/configs/zynq_picozed.h | 28 ++++++++++++++++++++++++++++
26 5 files changed, 62 insertions(+)
27 create mode 100644 arch/arm/dts/zynq-picozed.dts
28 create mode 100644 configs/zynq_picozed_defconfig
29 create mode 100644 include/configs/zynq_picozed.h
30
31diff --git a/arch/arm/cpu/armv7/zynq/Kconfig b/arch/arm/cpu/armv7/zynq/Kconfig
32index 2482bbb..d0874ab 100644
33--- a/arch/arm/cpu/armv7/zynq/Kconfig
34+++ b/arch/arm/cpu/armv7/zynq/Kconfig
35@@ -9,6 +9,9 @@ config TARGET_ZYNQ_ZED
36 config TARGET_ZYNQ_MICROZED
37 bool "Zynq MicroZed"
38
39+config TARGET_ZYNQ_PICOZED
40+ bool "Zynq PicoZed"
41+
42 config TARGET_ZYNQ_ZC70X
43 bool "Zynq ZC702/ZC706 Board"
44
45@@ -38,6 +41,7 @@ config SYS_SOC
46 config SYS_CONFIG_NAME
47 default "zynq_zed" if TARGET_ZYNQ_ZED
48 default "zynq_microzed" if TARGET_ZYNQ_MICROZED
49+ default "zynq_picozed" if TARGET_ZYNQ_PICOZED
50 default "zynq_zc70x" if TARGET_ZYNQ_ZC70X
51 default "zynq_zc770" if TARGET_ZYNQ_ZC770
52 default "zynq_zybo" if TARGET_ZYNQ_ZYBO
53diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
54index 5b49004..8cdd003 100644
55--- a/arch/arm/dts/Makefile
56+++ b/arch/arm/dts/Makefile
57@@ -44,6 +44,7 @@ dtb-$(CONFIG_ZYNQ) += zynq-zc702.dtb \
58 zynq-zed.dtb \
59 zynq-zybo.dtb \
60 zynq-microzed.dtb \
61+ zynq-picozed.dtb \
62 zynq-cc108.dtb \
63 zynq-zc770-xm010.dtb \
64 zynq-zc770-xm011.dtb \
65diff --git a/arch/arm/dts/zynq-picozed.dts b/arch/arm/dts/zynq-picozed.dts
66new file mode 100644
67index 0000000..686b98f
68--- /dev/null
69+++ b/arch/arm/dts/zynq-picozed.dts
70@@ -0,0 +1,23 @@
71+/*
72+ * Avnet PicoZed board DTS
73+ *
74+ * Copyright (C) 2015 Xilinx, Inc.
75+ *
76+ * SPDX-License-Identifier: GPL-2.0+
77+ */
78+/dts-v1/;
79+#include "zynq-7000.dtsi"
80+
81+/ {
82+ model = "Zynq PicoZed Board";
83+ compatible = "xlnx,zynq-picozed", "xlnx,zynq-7000";
84+
85+ aliases {
86+ serial0 = &uart1;
87+ };
88+
89+ memory {
90+ device_type = "memory";
91+ reg = <0 0x40000000>;
92+ };
93+};
94diff --git a/configs/zynq_picozed_defconfig b/configs/zynq_picozed_defconfig
95new file mode 100644
96index 0000000..8a4916a
97--- /dev/null
98+++ b/configs/zynq_picozed_defconfig
99@@ -0,0 +1,6 @@
100+CONFIG_SPL=y
101++S:CONFIG_ARM=y
102++S:CONFIG_ZYNQ=y
103++S:CONFIG_TARGET_ZYNQ_PICOZED=y
104+CONFIG_OF_CONTROL=n
105+CONFIG_DEFAULT_DEVICE_TREE="zynq-picozed"
106diff --git a/include/configs/zynq_picozed.h b/include/configs/zynq_picozed.h
107new file mode 100644
108index 0000000..337457c
109--- /dev/null
110+++ b/include/configs/zynq_picozed.h
111@@ -0,0 +1,28 @@
112+/*
113+ * (C) Copyright 2015 Xilinx, Inc.
114+ *
115+ * Configuration for PicoZed
116+ * See zynq-common.h for Zynq common configs
117+ *
118+ * SPDX-License-Identifier: GPL-2.0+
119+ */
120+
121+#ifndef __CONFIG_ZYNQ_PICOZED_H
122+#define __CONFIG_ZYNQ_PICOZED_H
123+
124+#define CONFIG_SYS_SDRAM_SIZE (1024 * 1024 * 1024)
125+
126+#define CONFIG_ZYNQ_SERIAL_UART1
127+#define CONFIG_ZYNQ_GEM0
128+#define CONFIG_ZYNQ_GEM_PHY_ADDR0 0
129+
130+#define CONFIG_SYS_NO_FLASH
131+
132+#define CONFIG_ZYNQ_SDHCI1
133+#define CONFIG_ZYNQ_USB
134+#define CONFIG_ZYNQ_QSPI
135+#define CONFIG_ZYNQ_BOOT_FREEBSD
136+
137+#include <configs/zynq-common.h>
138+
139+#endif /* __CONFIG_ZYNQ_PICOZED_H */
140--
1411.7.10.4
142
diff --git a/recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb b/recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb
index f9d7a7a5..ad0b8de7 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb
+++ b/recipes-bsp/u-boot/u-boot-xlnx_2015.01.bb
@@ -1,13 +1,8 @@
1include u-boot-xlnx.inc 1include u-boot-xlnx.inc
2include u-boot-xlnx-2015.01.inc
2include u-boot-elf.inc 3include u-boot-elf.inc
3include u-boot-extra.inc 4include u-boot-extra.inc
4 5
5LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c"
6
7# xilinx-v2014.1 release
8SRCREV = "03464615e241054a38cd920980d6b12feba95585"
9PV = "v2015.01${XILINX_EXTENSION}+git${SRCPV}"
10
11UBOOT_ENV_zc702-zynq7 = "uEnv" 6UBOOT_ENV_zc702-zynq7 = "uEnv"
12UBOOT_ENV_zedboard-zynq7 = "uEnv" 7UBOOT_ENV_zedboard-zynq7 = "uEnv"
13 8