MAC internal registers has not reset in STM32MP157
Actually, we are trying to reset the MAC registers by using DMA mode register (bit 0) in Ethernet section.
As per reference manual, we are set the bit(swr bit) to 1 in ETH_DMAMR_REG register. but it is not reset automatically.
In software we done
// Enable eth clocks
__HAL_RCC_ETH1CK_CLK_ENABLE();
__HAL_RCC_ETH1TX_CLK_ENABLE();
__HAL_RCC_ETH1RX_CLK_ENABLE();
__HAL_RCC_ETH1MAC_CLK_ENABLE();
// Provide a software reset to reset all MAC internal registers
writeptr = (uint32_t*)(ETH_BASE_ADDRESS + ETH_DMAMR_REG);
SET_BIT(*writeptr,ETH_DMAMR_SWR); // make 0 bit to 1 for sw reset
readptr = (uint32_t*)(ETH_BASE_ADDRESS + ETH_DMAMR_REG);
while(READ_BIT(*readptr,ETH_DMAMR_SWR)); // checking the 0 bit till software reset has done( bit is reset).
In this writing has completed but we are unable to read 0 from this register.
May be what is the issue ? can help me in this regards.
regards
srikanth
