[U-Boot] [PATCH] tegra: harmony: add device tree support
Stephen Warren
swarren at wwwdotorg.org
Mon May 21 22:04:27 CEST 2012
From: Stephen Warren <swarren at nvidia.com>
... to enable USB host support, which enables Ethernet support.
Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
board/nvidia/dts/tegra2-harmony.dts | 57 +++++++++++++++++++++++++++++++++++
include/configs/harmony.h | 22 +++++++++++++-
2 files changed, 78 insertions(+), 1 deletions(-)
create mode 100644 board/nvidia/dts/tegra2-harmony.dts
diff --git a/board/nvidia/dts/tegra2-harmony.dts b/board/nvidia/dts/tegra2-harmony.dts
new file mode 100644
index 0000000..4f60a05
--- /dev/null
+++ b/board/nvidia/dts/tegra2-harmony.dts
@@ -0,0 +1,57 @@
+/dts-v1/;
+
+/include/ ARCH_CPU_DTS
+
+/ {
+ model = "NVIDIA Tegra2 Harmony evaluation board";
+ compatible = "nvidia,harmony", "nvidia,tegra20";
+
+ aliases {
+ usb0 = "/usb at c5008000";
+ };
+
+ memory {
+ reg = <0x00000000 0x40000000>;
+ };
+
+ clocks {
+ clk_32k: clk_32k {
+ clock-frequency = <32000>;
+ };
+ osc {
+ clock-frequency = <12000000>;
+ };
+ };
+
+ clock at 60006000 {
+ clocks = <&clk_32k &osc>;
+ };
+
+ serial at 70006300 {
+ clock-frequency = < 216000000 >;
+ };
+
+ i2c at 7000c000 {
+ status = "disabled";
+ };
+
+ i2c at 7000c400 {
+ status = "disabled";
+ };
+
+ i2c at 7000c500 {
+ status = "disabled";
+ };
+
+ i2c at 7000d000 {
+ status = "disabled";
+ };
+
+ usb at c5000000 {
+ status = "disabled";
+ };
+
+ usb at c5004000 {
+ status = "disabled";
+ };
+};
diff --git a/include/configs/harmony.h b/include/configs/harmony.h
index 25d6ec7..88189be 100644
--- a/include/configs/harmony.h
+++ b/include/configs/harmony.h
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2010,2011
+ * (C) Copyright 2010-2012
* NVIDIA Corporation <www.nvidia.com>
*
* See file CREDITS for list of people who contributed to this
@@ -27,6 +27,11 @@
#include <asm/sizes.h>
#include "tegra2-common.h"
+/* Enable fdt support for Harmony. Flash the image in u-boot-dtb.bin */
+#define CONFIG_DEFAULT_DEVICE_TREE tegra2-harmony
+#define CONFIG_OF_CONTROL
+#define CONFIG_OF_SEPARATE
+
/* High-level configuration options */
#define V_PROMPT "Tegra2 (Harmony) # "
#define CONFIG_TEGRA2_BOARD_STRING "NVIDIA Harmony"
@@ -61,6 +66,21 @@
/* 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_SMSC95XX
+#define CONFIG_USB_ETHER_ASIX
+
+/* General networking support */
+#define CONFIG_CMD_NET
+#define CONFIG_CMD_DHCP
+
#include "tegra2-common-post.h"
#endif /* __CONFIG_H */
--
1.7.0.4
More information about the U-Boot
mailing list