mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-18 10:31:09 +00:00
mspi: support auto detect octal flash vendor
This commit is contained in:
36
components/spi_flash/esp32s3/opi_flash_private.h
Normal file
36
components/spi_flash/esp32s3/opi_flash_private.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* System level OPI Flash APIs (private)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_err.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Register ROM functions and init flash device registers to make use of octal flash
|
||||
*
|
||||
* @param chip_id Full device ID read via RDID command
|
||||
*/
|
||||
esp_err_t esp_opiflash_init(uint32_t chip_id);
|
||||
|
||||
/**
|
||||
* @brief Set Octal Flash chip specifically required MSPI register settings here
|
||||
*/
|
||||
void esp_opiflash_set_required_regs(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user