boards: esp32s3-lckfb-szpi: Remove obsolete device function prototypes

Remove function prototypes for BMP180 pressure sensor and CS4344 audio DAC
devices that were never actually present on this board configuration. This
cleans up the header file by removing declarations for non-existent hardware.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2025-09-17 12:02:02 +08:00 committed by Xiang Xiao
parent 80f5a06c06
commit 106058cc1f
2 changed files with 1 additions and 66 deletions

View file

@ -120,25 +120,6 @@ int board_spiflash_init(void);
int board_i2c_init(void); int board_i2c_init(void);
#endif #endif
/****************************************************************************
* Name: board_bmp180_initialize
*
* Description:
* Initialize and register the BMP180 Pressure Sensor driver.
*
* Input Parameters:
* devno - The device number, used to build the device path as /dev/pressN
* busno - The I2C bus number
*
* Returned Value:
* Zero (OK) on success; a negated errno value on failure.
*
****************************************************************************/
#ifdef CONFIG_SENSORS_BMP180
int board_bmp180_initialize(int devno, int busno);
#endif
/**************************************************************************** /****************************************************************************
* Name: board_i2sdev_initialize * Name: board_i2sdev_initialize
* *
@ -163,27 +144,6 @@ int board_bmp180_initialize(int devno, int busno);
int board_i2sdev_initialize(int port, bool enable_tx, bool enable_rx); int board_i2sdev_initialize(int port, bool enable_tx, bool enable_rx);
#endif #endif
/****************************************************************************
* Name: esp32s3_cs4344_initialize
*
* Description:
* This function is called by platform-specific, setup logic to configure
* and register the CS4344 device. This function will register the driver
* as /dev/audio/pcm[x] where x is determined by the I2S port number.
*
* Input Parameters:
* port - The I2S port used for the device
*
* Returned Value:
* Zero is returned on success. Otherwise, a negated errno value is
* returned to indicate the nature of the failure.
*
****************************************************************************/
#ifdef CONFIG_AUDIO_CS4344
int esp32s3_cs4344_initialize(int port);
#endif
#ifdef CONFIG_ESP32S3_OPENETH #ifdef CONFIG_ESP32S3_OPENETH
int esp_openeth_initialize(void); int esp_openeth_initialize(void);
#endif #endif

View file

@ -153,8 +153,7 @@
int esp32s3_bringup(void) int esp32s3_bringup(void)
{ {
int ret; int ret;
#if (defined(CONFIG_ESPRESSIF_I2S0) && !defined(CONFIG_AUDIO_CS4344)) || \ #if defined(CONFIG_ESPRESSIF_I2S0) || defined(CONFIG_ESPRESSIF_I2S1)
defined(CONFIG_ESPRESSIF_I2S1)
bool i2s_enable_tx; bool i2s_enable_tx;
bool i2s_enable_rx; bool i2s_enable_rx;
#endif #endif
@ -323,30 +322,7 @@ int esp32s3_bringup(void)
} }
#endif #endif
#ifdef CONFIG_SENSORS_BMP180
/* Try to register BMP180 device in I2C0 */
ret = board_bmp180_initialize(0, ESP32S3_I2C0);
if (ret < 0)
{
syslog(LOG_ERR,
"Failed to initialize BMP180 driver for I2C0: %d\n", ret);
}
#endif
#ifdef CONFIG_ESPRESSIF_I2S #ifdef CONFIG_ESPRESSIF_I2S
#ifdef CONFIG_AUDIO_CS4344
/* Configure CS4344 audio on I2S0 */
ret = esp32s3_cs4344_initialize(ESP32S3_I2S0);
if (ret != OK)
{
syslog(LOG_ERR, "Failed to initialize CS4344 audio: %d\n", ret);
}
#else
#ifdef CONFIG_ESPRESSIF_I2S0_TX #ifdef CONFIG_ESPRESSIF_I2S0_TX
i2s_enable_tx = true; i2s_enable_tx = true;
#else #else
@ -366,7 +342,6 @@ int esp32s3_bringup(void)
{ {
syslog(LOG_ERR, "Failed to initialize I2S0 driver: %d\n", ret); syslog(LOG_ERR, "Failed to initialize I2S0 driver: %d\n", ret);
} }
#endif /* CONFIG_AUDIO_CS4344 */
#ifdef CONFIG_ESPRESSIF_I2S1 #ifdef CONFIG_ESPRESSIF_I2S1