You can use a timer to divide the clock and output the signal on a pin but you need to GPIO Output Characteristics for the max output freq supported in the device datasheet.
You can get the driver library here :
we wants to generate the ethernet clock out from the ECOUT pin in the S6E2CC controller to feed to the PHY, Also what are the changes we need to make to send a packet through the ethernet , we are using the stack given by th you.
have you seen these examples?
The ECOUT clock module can be enabled with symbol EMAC_ECOUT in emac_user.h.
But ... the jitter tolerance may be out of spec for most PHYs, so it is not recommended.