diff options
author | edolomb <none@example.com> | 2018-01-18 20:32:48 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2018-01-18 20:32:48 +0000 |
commit | e892fd2b48a314dd4f54ce34a971336945aa71ec (patch) | |
tree | 204372a03e9c7f10c61e1273e698526b93b1b12e | |
parent | a0b33a762ecf882d64fe90a59e797c25179473da (diff) | |
download | ChibiOS-e892fd2b48a314dd4f54ce34a971336945aa71ec.tar.gz ChibiOS-e892fd2b48a314dd4f54ce34a971336945aa71ec.tar.bz2 ChibiOS-e892fd2b48a314dd4f54ce34a971336945aa71ec.zip |
Fixed bugs
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11333 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c b/os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c index 00a8c421d..75df3e0a7 100644 --- a/os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c +++ b/os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c @@ -249,6 +249,8 @@ void mac_lld_init(void) { #if SAMA_HAL_IS_SECURE
mtxConfigPeriphSecurity(MATRIX1, ID_GMAC0, SECURE_PER);
+ mtxConfigPeriphSecurity(MATRIX1, ID_GMAC0_Q1, SECURE_PER);
+ mtxConfigPeriphSecurity(MATRIX1, ID_GMAC0_Q2, SECURE_PER);
#endif /* SAMA_HAL_IS_SECURE */
configurePinsETH();
@@ -276,6 +278,9 @@ void mac_lld_init(void) { }
}
+ /* MAC clocks temporary activation.*/
+ pmcEnableETH0();
+
/* Configures MDIO clock */
GMAC0->GMAC_NCFGR = (GMAC0->GMAC_NCFGR & ~GMAC_NCFGR_CLK_Msk) | GMAC_CLK;
@@ -289,8 +294,6 @@ void mac_lld_init(void) { GMAC0->GMAC_UR &= ~GMAC_UR_RMII;
#endif
- /* MAC clocks temporary activation.*/
- pmcEnableETH0();
/* PHY address setup.*/
#if defined(BOARD_PHY_ADDRESS)
ETHD0.phyaddr = BOARD_PHY_ADDRESS;
|