mimxrt1050_evk: enabling networking hardware
Enables Networking hardware on i.MX-RT 1050-EVKB board. Pinout enabled board specific etherenet connection, also pin initialization was moved later to PRE_KERNEL_2 in order to have sysclock initialized before. Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
This commit is contained in:
parent
35ba3aadc4
commit
a5174be648
9 changed files with 98 additions and 1 deletions
|
@ -34,6 +34,16 @@ const clock_usb_pll_config_t usb1PllConfig = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ETH_MCUX_0
|
||||
const clock_enet_pll_config_t ethPllConfig = {
|
||||
.enableClkOutput0 = true,
|
||||
.enableClkOutput1 = false,
|
||||
.enableClkOutput2 = false,
|
||||
.loopDivider0 = 1,
|
||||
.loopDivider1 = 1
|
||||
};
|
||||
#endif
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Initialize the system clock
|
||||
|
@ -73,6 +83,9 @@ static ALWAYS_INLINE void clkInit(void)
|
|||
#ifdef CONFIG_INIT_USB1_PLL
|
||||
CLOCK_InitUsb1Pll(&usb1PllConfig); /* Configure USB1 PLL to 480M */
|
||||
#endif
|
||||
#ifdef CONFIG_ETH_MCUX_0
|
||||
CLOCK_InitEnetPll(ðPllConfig);
|
||||
#endif
|
||||
|
||||
CLOCK_SetDiv(kCLOCK_ArmDiv, CONFIG_ARM_DIV); /* Set ARM PODF */
|
||||
CLOCK_SetDiv(kCLOCK_AhbDiv, CONFIG_AHB_DIV); /* Set AHB PODF */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue