patacongo commented on a change in pull request #1613:
URL: https://github.com/apache/incubator-nuttx/pull/1613#discussion_r474234735



##########
File path: arch/xtensa/src/esp32/esp32_clockconfig.c
##########
@@ -76,40 +335,25 @@ enum xtal_freq_e
 
 void esp32_clockconfig(void)
 {
-#ifdef CONFIG_SUPPRESS_CLOCK_CONFIG
-#  warning WARNING: Clock configuration disabled
-#else
   uint32_t freq_mhz = CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ;
-  enum xtal_freq_e freq;
-
-  phy_get_romfunc_addr();
-
-  /* Frequency will be changed to 40MHz in rtc_init_lite */
+  uint32_t source_freq_mhz;
+  enum xtal_freq_e xtal_freq = XTAL_40M;
 
-  rtc_init_lite();
-
-  freq = CPU_80M;
   switch (freq_mhz)
     {
-    case 240:
-      freq = CPU_240M;
-      break;
-    case 160:
-      freq = CPU_160M;
-      break;
-    default:
-      freq_mhz = 80;
-
-      /* no break */
-
-    case 80:
-      freq = CPU_80M;
-      break;
+      case 240:
+        source_freq_mhz = RTC_PLL_FREQ_480M;
+        break;
+      case 160:

Review comment:
       Same as above




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to