]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: socfpga: Handle phy-mode OF property for GMACs
authorMarek Vasut <marex@denx.de>
Mon, 21 Mar 2016 12:38:11 +0000 (13:38 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 10 Apr 2016 15:19:48 +0000 (17:19 +0200)
commit5f79d008408dfe46172f46f8532e5ef6b3616067
treeeb8b5ee92c58ab1f7f0a35aa7c44f285fbba2fe8
parent43d3fb5c0609a76409e7859a2a5800670c7b5bd2
arm: socfpga: Handle phy-mode OF property for GMACs

Thus far, the socfpga init code had hard-coded the configuration
of the ethernet PHY interface to RGMII in the ethernet registers
in sysmgr space, so PHYs connected in another modes did not work.

This patch fixes support for configurations where the ethernet PHYs
are connected over MII/GMII/RMII interfaces by parsing the phy-mode
OF property of the GMACs and configuring the ethernet registers in
sysmgr space accordingly.

Signed-off-by: Marek Vasut <marex@denx.de>
Reported-by: Denis Bakhvalov <denis.bakhvalov@nokia.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/mach-socfpga/misc.c