1:make menuconfig
Device Drivers->
[*]Network device support ->
[*]Ethernet driver support ->
[*] Marvell devices
[*] PHY Device support and infastructure -->
[*] Drivers for Marvell PHYs
2:修改设备树
&avb {
pinctrl-0 = <&avb_pins>;
pinctrl-names = "default";
phy-handle = <&phy0>;
phy-mode = "rgmii-id";
status = "okay";
phy0: phy@0 {
compatible = "marvell,88E1510";
device_type = "ethernet-phy";
/* Set LED0 control: */
/* On - Link, Blink - Activity, Off - No Link */
marvell,reg-init = <3 0x10 0 0x1011>;
max-speed = <100>;
reg = <0>;
};
};