eth: Add KSDK ENET driver.
Provide a network driver wrapped around the KSDK ENET and PHY drivers. The driver performs one shot PHY setup. There is no support for PHY disconnect, reconnect or configuration change. The PHY setup, implement via KSDK contains polled code that can block the initialization thread for a few seconds. There is no statistics collection for either normal operation or error behaviour. Origin: Original Change-Id: Ia0f2e89a61348ed949976070353e823c178fcb24 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
6ce68cb6cb
commit
87077727bf
8 changed files with 487 additions and 0 deletions
|
@ -41,6 +41,8 @@
|
|||
#define ER32KSEL_RTC (2)
|
||||
#define ER32KSEL_LPO1KHZ (3)
|
||||
|
||||
#define TIMESRC_OSCERCLK (2)
|
||||
|
||||
/*
|
||||
* K64F Flash configuration fields
|
||||
* These 16 bytes, which must be loaded to address 0x400, include default
|
||||
|
@ -139,6 +141,10 @@ static ALWAYS_INLINE void clkInit(void)
|
|||
CONFIG_MCG_FCRDIV);
|
||||
|
||||
CLOCK_SetSimConfig(&simConfig);
|
||||
|
||||
#if CONFIG_ETH_KSDK
|
||||
CLOCK_SetEnetTime0Clock(TIMESRC_OSCERCLK);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue