Dear Qiang Li,
I understood the i.MX287 L2 Switch mode consisted of Ethernet function and Switch function.
If the Device Connection is like as "[Device.#1] ~ [MX28] ~ [Device.#2]",
the packet will be transmitted between devices in the normal L2 Switch mode like as below.
1) Ethernet function : [Device.#1] <-> [MX28] & [MX28] <-> [Device.#2]
2) Switch function : [Device.#1] <-> [Device.#2]
In these functions, I want to control "2) Switch function", Enable/Disable.
If the Switch function is enable, the connect 1) and 2) will be possible.
If the Switch function is disable, the connect 1) will be possible and the connection 2) will be impossible.
For this, I changed the "29.9.9 ENET SWI Defines several global configuration settings" register.
HW_ENET_SWI_MODE_CONFIG(0x800F_8024) - SWITCH_EN (bit1).
Set this bit as '1' for the Switch function enable, and clear this bit as '0' for the Switch function disable.
I thought the Ethernet function will be operated regardless of the Switch function Disable/Enable.
But the Ethernet function didn't operate on the Switch function disable.
(The Ethernet function operated on the Switch function enable.)
How do I control the Switch function to enable/disable?
Best Regards,
Eric.