mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
remove unnecessary function in bootloader_support
1. Delete bootloader_clock_get_rated_freq_mhz, esp32s2 do not need it right now 2. Remove bootloader_flash_gpio_config () because it has the same function as bootloader_flash_dummy_config
This commit is contained in:
parent
eaafe7f599
commit
9c5a981ef1
@ -16,12 +16,6 @@
|
|||||||
#include "bootloader_clock.h"
|
#include "bootloader_clock.h"
|
||||||
#include "bootloader_common.h"
|
#include "bootloader_common.h"
|
||||||
|
|
||||||
int bootloader_clock_get_rated_freq_mhz()
|
|
||||||
{
|
|
||||||
/* No known limitation: all chips are 240MHz rated */
|
|
||||||
return 240;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint8_t bootloader_common_get_chip_revision(void)
|
uint8_t bootloader_common_get_chip_revision(void)
|
||||||
{
|
{
|
||||||
/* No other revisions for ESP32-S2beta */
|
/* No other revisions for ESP32-S2beta */
|
||||||
|
@ -71,11 +71,6 @@ void IRAM_ATTR bootloader_flash_clock_config(const esp_image_header_t* pfhdr)
|
|||||||
esp_rom_spiflash_config_clk(spi_clk_div, 0);
|
esp_rom_spiflash_config_clk(spi_clk_div, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void IRAM_ATTR bootloader_flash_gpio_config(const esp_image_header_t* pfhdr)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void IRAM_ATTR bootloader_flash_dummy_config(const esp_image_header_t* pfhdr)
|
void IRAM_ATTR bootloader_flash_dummy_config(const esp_image_header_t* pfhdr)
|
||||||
{
|
{
|
||||||
int spi_cache_dummy = 0;
|
int spi_cache_dummy = 0;
|
||||||
|
@ -201,7 +201,6 @@ static void print_flash_info(const esp_image_header_t *bootloader_hdr)
|
|||||||
|
|
||||||
static void IRAM_ATTR bootloader_init_flash_configure(void)
|
static void IRAM_ATTR bootloader_init_flash_configure(void)
|
||||||
{
|
{
|
||||||
bootloader_flash_gpio_config(&bootloader_image_hdr);
|
|
||||||
bootloader_flash_dummy_config(&bootloader_image_hdr);
|
bootloader_flash_dummy_config(&bootloader_image_hdr);
|
||||||
bootloader_flash_cs_timing_config();
|
bootloader_flash_cs_timing_config();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user