Skip to content
Commit 633c5afb authored by Duy Nguyen's avatar Duy Nguyen Committed by Benjamin Cabé
Browse files

driver: eth: Fix phy-connection-type setting on RA8 ethernet



This commit fix the pin function configuration for mii and rmii
setting of Renesas RA8 ethernet driver
Correct pin function setting for mii is
PFENET = (uint8_t)(0x1 << R_PMISC_PFENET_PHYMODE0_Pos);
and rmii is:
R_PMISC->PFENET = (uint8_t)(0x0 << R_PMISC_PFENET_PHYMODE0_Pos);
Change code to intialize ping in driver init function, change
method of getting and checking via enum index of device tree.
Add build assert for invalid phy type.

Signed-off-by: default avatarDuy Nguyen <duy.nguyen.xa@renesas.com>
parent 81f5581a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment