]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6cfdd8979e87c118aefd297d38581afe86ce6d8
tree10e08184637cd8299cd99fae3c386810bd22459d
parent141ec794dab77bfad066c6204f5d80ba84f91cd7
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