WOL_INT pin of AR8031 is connected to gpio 1_28 in Mx6 sabresd board, Mx6 can be waked up by this pin.
0001-support-wake-on-lan-through-gpio.patch is the patch to support the WOL feature. In this patch, mac address is written to AR8031 Wake-on-LAN Internal Address register, gpio 1_28 wakeup irq is enabled, AR8031 is set to sleep/isolate state when system suspend.
After suspend, Mx6 can be wakeup by magic package.
The step to verify WOL function is
Original Attachment has been moved to: WOLSetup15.zip
Original Attachment has been moved to: 0001-support-wake-on-lan-through-gpio.patch.txt.zip
Hi,
the patch above is buggy.
The IRQ management setup in drivers/net/fec.c has a typo.
gpio_direction_input(pdata->gpio_irq);
must be
gpio_direction_input(pdata->wol_irq);
Regards,
--
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
Have updated, thank you.
BTW, I am performing a echo mem > /sys/power/state, the board IMX6DLSABRESD goes to sleep.
Unfortunaltely when I send wakeonlan 1E:ED:19:27:1A:B3 from my PC it doesn't wake up.
Do I need somethig more or special command before sleep ?
These are the PHY registers
WOL write MAC Address: 1e:ed:19:27:1a:b3
WOL read 1 = 1EED
WOL read 2 = 1927
WOL read 3 = 1AB3
--
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748