Skip to content
Snippets Groups Projects
Commit bd9216e2 authored by Horatiu Vultur's avatar Horatiu Vultur Committed by Daniel Schwierzeck
Browse files

board: mscc: luton: Update MSCC Luton board


Implement method board_phy_config to configure the external phys
on the pcb90.

Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
parent 7e323f17
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
#include <common.h> #include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <led.h> #include <led.h>
#include <miiphy.h>
DECLARE_GLOBAL_DATA_PTR;
enum { enum {
BOARD_TYPE_PCB090 = 0xAABBCD00, BOARD_TYPE_PCB090 = 0xAABBCD00,
...@@ -36,6 +35,16 @@ int board_early_init_r(void) ...@@ -36,6 +35,16 @@ int board_early_init_r(void)
return 0; return 0;
} }
int board_phy_config(struct phy_device *phydev)
{
phy_write(phydev, 0, 31, 0x10);
phy_write(phydev, 0, 18, 0x80A0);
while (phy_read(phydev, 0, 18) & 0x8000)
;
phy_write(phydev, 0, 31, 0);
return 0;
}
static void do_board_detect(void) static void do_board_detect(void)
{ {
u32 chipid = (readl(BASE_DEVCPU_GCB + CHIP_ID) >> 12) & 0xFFFF; u32 chipid = (readl(BASE_DEVCPU_GCB + CHIP_ID) >> 12) & 0xFFFF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment