mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
arm: mvebu: clearfog: reset uSOM onboard 1512 phy
Use GPIO19 which is wired to the uSOM phy reset signal in order to reset
the uSOM's 1512 Gigabit Ethernet phy.
This GPIO is valid on ClearFog rev 2.1 and newer.
Taken from SolidRun's specialised u-boot, see
f906e3df17
Signed-off-by: Patrick Wildt <patrick@blueri.se>
Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
780f80cd0f
commit
fb9765d5f9
1 changed files with 4 additions and 0 deletions
|
@ -131,8 +131,12 @@ int board_init(void)
|
|||
/* Toggle GPIO41 to reset onboard switch and phy */
|
||||
clrbits_le32(MVEBU_GPIO1_BASE + 0x0, BIT(9));
|
||||
clrbits_le32(MVEBU_GPIO1_BASE + 0x4, BIT(9));
|
||||
/* GPIO 19 on ClearFog rev 2.1 controls the uSOM onboard phy reset */
|
||||
clrbits_le32(MVEBU_GPIO0_BASE + 0x0, BIT(19));
|
||||
clrbits_le32(MVEBU_GPIO0_BASE + 0x4, BIT(19));
|
||||
mdelay(1);
|
||||
setbits_le32(MVEBU_GPIO1_BASE + 0x0, BIT(9));
|
||||
setbits_le32(MVEBU_GPIO0_BASE + 0x0, BIT(19));
|
||||
mdelay(10);
|
||||
|
||||
/* Init I2C IO expanders */
|
||||
|
|
Loading…
Reference in a new issue