Patchwork [U-Boot] tegra: ventana: add own device tree, enable USB

login
register
mail settings
Submitter Stephen Warren
Date May 23, 2012, 5:46 p.m.
Message ID <1337795175-4729-1-git-send-email-swarren@wwwdotorg.org>
Download mbox | patch
Permalink /patch/160975/
State Accepted
Commit b1b9e4ce3af6d10c8442bff48b69cad151ddff82
Headers show

Comments

Stephen Warren - May 23, 2012, 5:46 p.m.
From: Stephen Warren <swarren@nvidia.com>

Add a device tree for Ventana; the Seaboard file no longer represents
the HW present on Ventana.

Enable USB on Ventana.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 board/nvidia/dts/tegra2-ventana.dts |   57 +++++++++++++++++++++++++++++++++++
 include/configs/ventana.h           |   16 +++++++++-
 2 files changed, 72 insertions(+), 1 deletions(-)
 create mode 100644 board/nvidia/dts/tegra2-ventana.dts

Patch

diff --git a/board/nvidia/dts/tegra2-ventana.dts b/board/nvidia/dts/tegra2-ventana.dts
new file mode 100644
index 0000000..900e871
--- /dev/null
+++ b/board/nvidia/dts/tegra2-ventana.dts
@@ -0,0 +1,57 @@ 
+/dts-v1/;
+
+/include/ ARCH_CPU_DTS
+
+/ {
+	model = "NVIDIA Tegra2 Ventana evaluation board";
+	compatible = "nvidia,ventana", "nvidia,tegra20";
+
+	aliases {
+		usb0 = "/usb@c5008000";
+	};
+
+	memory {
+		reg = <0x00000000 0x40000000>;
+	};
+
+	clocks {
+		clk_32k: clk_32k {
+			clock-frequency = <32000>;
+		};
+		osc {
+			clock-frequency = <12000000>;
+		};
+	};
+
+	clock@60006000 {
+		clocks = <&clk_32k &osc>;
+	};
+
+	serial@70006300 {
+		clock-frequency = < 216000000 >;
+	};
+
+	i2c@7000c000 {
+		status = "disabled";
+	};
+
+	i2c@7000c400 {
+		status = "disabled";
+	};
+
+	i2c@7000c500 {
+		status = "disabled";
+	};
+
+	i2c@7000d000 {
+		status = "disabled";
+	};
+
+	usb@c5000000 {
+		status = "disabled";
+	};
+
+	usb@c5004000 {
+		status = "disabled";
+	};
+};
diff --git a/include/configs/ventana.h b/include/configs/ventana.h
index 8e95db1..2c7355b 100644
--- a/include/configs/ventana.h
+++ b/include/configs/ventana.h
@@ -28,7 +28,7 @@ 
 #include "tegra2-common.h"
 
 /* Enable fdt support for Ventana. Flash the image in u-boot-dtb.bin */
-#define CONFIG_DEFAULT_DEVICE_TREE	tegra2-seaboard
+#define CONFIG_DEFAULT_DEVICE_TREE	tegra2-ventana
 #define CONFIG_OF_CONTROL
 #define CONFIG_OF_SEPARATE
 
@@ -60,6 +60,20 @@ 
 /* Environment not stored */
 #define CONFIG_ENV_IS_NOWHERE
 
+/* USB Host support */
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_TEGRA
+#define CONFIG_USB_STORAGE
+#define CONFIG_CMD_USB
+
+/* USB networking support */
+#define CONFIG_USB_HOST_ETHER
+#define CONFIG_USB_ETHER_ASIX
+
+/* General networking support */
+#define CONFIG_CMD_NET
+#define CONFIG_CMD_DHCP
+
 #include "tegra2-common-post.h"
 
 #endif /* __CONFIG_H */