arm: zynq: Update ZYBO config options
authorNathan Rossi <nathan@nathanrossi.com>
Tue, 8 Dec 2015 14:44:42 +0000 (00:44 +1000)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 18 Dec 2015 12:15:58 +0000 (13:15 +0100)
Update the ZYBO device tree and enable config options that relate to the
added devices in the device tree.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynq-zybo.dts
configs/zynq_zybo_defconfig
include/configs/zynq_zybo.h

index 199264ac8e7fc9c83ff40e6b0b573f2d73c9cf8c..fbbb8911910bcd1905f60811aa582966f16b3133 100644 (file)
@@ -16,6 +16,7 @@
        aliases {
                ethernet0 = &gem0;
                serial0 = &uart1;
+               spi0 = &qspi;
                mmc0 = &sdhci0;
        };
 
                stdout-path = "serial0:115200n8";
        };
 
+       usb_phy0: phy0 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
 };
 
 &clkc {
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&qspi {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&usb0 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy0>;
+};
index 6f0bd0b79c5ef13010e81314555a7bb89f8f7697..d443e92189ce559714b0b8626ceebd28232d5e10 100644 (file)
@@ -17,3 +17,6 @@ CONFIG_DEBUG_UART=y
 CONFIG_DEBUG_UART_ZYNQ=y
 CONFIG_DEBUG_UART_BASE=0xe0001000
 CONFIG_DEBUG_UART_CLOCK=50000000
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_ZYNQ_QSPI=y
index 5d1a9d5572a51dbd9444319c0259c31205a6d394..c53ba79d48b07ba8010ce3d5cae71b5f3091b27a 100644 (file)
@@ -15,6 +15,7 @@
 
 #define CONFIG_SYS_NO_FLASH
 
+#define CONFIG_ZYNQ_USB
 #define CONFIG_ZYNQ_SDHCI0
 #define CONFIG_ZYNQ_BOOT_FREEBSD