提交 7c798a11 编写于 作者: S Shawn Guo 提交者: Tom Rini

poplar: enable Ethernet driver support

The 'phy' reset of gmac device in kernel device tree is not generic
enough for u-boot to use, so we need to overwrite the 'resets' property
as needed.  With this device tree fixup and poplar_defconfig changes,
Ethernet starts working on Poplar board.
Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 1d5b5d2f
...@@ -8,7 +8,15 @@ ...@@ -8,7 +8,15 @@
* (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
*/ */
#include <dt-bindings/reset/ti-syscon.h>
&soc { &soc {
rst: reset-controller@8a22000 {
compatible = "hisilicon,hi3798cv200-reset";
reg = <0x8a22000 0x1000>;
#reset-cells = <3>;
};
usb2: ehci@9890000 { usb2: ehci@9890000 {
compatible = "generic-ehci"; compatible = "generic-ehci";
reg = <0x9890000 0x100>; reg = <0x9890000 0x100>;
...@@ -16,6 +24,12 @@ ...@@ -16,6 +24,12 @@
}; };
}; };
&gmac1 {
resets = <&rst 0xcc 9 ASSERT_SET>,
<&rst 0xcc 11 ASSERT_SET>,
<&rst 0xcc 13 DEASSERT_SET>;
};
&uart0 { &uart0 {
clock = <75000000>; clock = <75000000>;
status = "okay"; status = "okay";
......
...@@ -19,6 +19,9 @@ CONFIG_FASTBOOT_FLASH_MMC_DEV=0 ...@@ -19,6 +19,9 @@ CONFIG_FASTBOOT_FLASH_MMC_DEV=0
CONFIG_DM_MMC=y CONFIG_DM_MMC=y
CONFIG_MMC_DW=y CONFIG_MMC_DW=y
CONFIG_MMC_DW_K3=y CONFIG_MMC_DW_K3=y
CONFIG_DM_ETH=y
CONFIG_HIGMACV300_ETH=y
CONFIG_RESET_HISILICON=y
CONFIG_USB=y CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_EHCI_GENERIC=y
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册