ARM: at91: board-dt-sama5: add phy_fixup to override NAND_Tree
authorWenyou Yang <wenyou.yang@atmel.com>
Thu, 11 Dec 2014 07:31:09 +0000 (15:31 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 12 Jan 2015 14:50:23 +0000 (15:50 +0100)
commitb8659752c37ec157ee254cff443b1c9d523aea22
tree10e08184637cd8299cd99fae3c386810bd22459d
parent55eb9c343fdd3611ae3de6ab8a8512f303d3f581
ARM: at91: board-dt-sama5: add phy_fixup to override NAND_Tree

Appearance: On some SAMA5D4EK boards, after power up, the Eth1 doesn't work.

Reason: The PIOE2 pin is connected to the NAND_Tree# of KSZ8081,
But it outputs LOW during the reset period, which cause the NAND_Tree# enabled.

Add phy_fixup() to disable NAND_Tree by overriding the Operation
Mode Strap Override register(i.e. Register 16h) to clear the NAND_Tree bit.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/board-dt-sama5.c