phyinit: Use PHY config to enable, don't need phy_get_romfunc_addr to init

This commit is contained in:
Angus Gratton
2017-01-19 11:18:44 +11:00
parent efbd2805e2
commit 9a8a82e857
4 changed files with 7 additions and 13 deletions

View File

@@ -17,7 +17,6 @@
#include "rom/ets_sys.h"
#include "rom/uart.h"
#include "sdkconfig.h"
#include "phy.h"
#include "rtc.h"
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
@@ -32,7 +31,6 @@
void esp_set_cpu_freq(void)
{
uint32_t freq_mhz = CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ;
phy_get_romfunc_addr();
// freq will be changed to 40MHz in rtc_init_lite,
// wait uart tx finish, otherwise some uart output will be lost