arch/ceva: Replace board_app_initialize

Replaced board_app_initialize logic with board_late_initialize.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
Matteo Golin
2026-02-19 16:27:09 -05:00
committed by Xiang Xiao
parent 66ae075ae8
commit a5e8ea2b40
12 changed files with 24 additions and 71 deletions
-40
View File
@@ -70,46 +70,6 @@ void board_late_initialize(void)
}
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
/****************************************************************************
* Name: board_app_initialize
*
* Description:
* Perform application specific initialization. This function is never
* called directly from application code, but only indirectly via the
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
*
* Input Parameters:
* arg - The boardctl() argument is passed to the board_app_initialize()
* implementation without modification. The argument has no
* meaning to NuttX; the meaning of the argument is a contract
* between the board-specific initialization logic and the
* matching application logic. The value cold be such things as a
* mode enumeration value, a set of DIP switch switch settings, a
* pointer to configuration data read from a file or serial FLASH,
* or whatever you would like to do with it. Every implementation
* should accept zero/NULL as a default configuration.
*
* Returned Value:
* Zero (OK) is returned on success; a negated errno value is returned on
* any failure to indicate the nature of the failure.
*
****************************************************************************/
#ifdef CONFIG_LIB_BOARDCTL
int board_app_initialize(uintptr_t arg)
{
/* Perform the arch late initialization */
ceva_lateinitialize();
/* Perform the board late initialization */
board_lateinitialize();
return 0;
}
#endif /* CONFIG_LIB_BOARDCTL */
/****************************************************************************
* Name: board_app_finalinitialize
*
@@ -123,7 +123,6 @@ struct kinetis_nsh_s
static struct kinetis_nsh_s g_nsh;
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -65,7 +65,6 @@
# undef NSH_HAVEUSBDEV
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -89,7 +89,6 @@
# define CONFIG_NSH_MMCSDMINOR 0
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -101,7 +101,6 @@ static void lpc43_i2ctool(void)
# define lpc43_i2ctool()
#endif
/****************************************************************************
* Public Functions
****************************************************************************/
@@ -80,7 +80,6 @@
# endif
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -1,5 +1,5 @@
/****************************************************************************
* boards/arm/samv7/same70-xplained/src/sam_boarctl.c
* boards/arm/samv7/same70-xplained/src/sam_boardctl.c
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -1,24 +1,24 @@
############################################################################
# ##############################################################################
# boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# License for the specific language governing permissions and limitations under
# the License.
#
############################################################################
# ##############################################################################
set(SRCS stm32_boot.c stm32_bringup.c)
@@ -1,24 +1,24 @@
############################################################################
# ##############################################################################
# boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# License for the specific language governing permissions and limitations under
# the License.
#
############################################################################
# ##############################################################################
set(SRCS stm32_boot.c stm32_spi.c stm32_dma_alloc.c)
@@ -64,5 +64,5 @@ if(NOT CONFIG_BUILD_FLAT)
add_subdirectory(${NUTTX_BOARD_DIR}/kernel)
set_property(
GLOBAL PROPERTY LD_SCRIPT_USER ${NUTTX_BOARD_DIR}/scripts/memory.ld
${NUTTX_BOARD_DIR}/scripts/user-space.ld)
${NUTTX_BOARD_DIR}/scripts/user-space.ld)
endif()
@@ -51,7 +51,6 @@
# include "stm32wb_blehci.h"
#endif
#include "nucleo-wb55rg.h"
/****************************************************************************
-1
View File
@@ -169,6 +169,5 @@ void board_late_initialize(void)
syslog(LOG_INFO, "Successfully bound SPI port %d to MMC/SD slot %d\n",
CONFIG_NSH_MMCSDSPIPORTNO, CONFIG_NSH_MMCSDSLOTNO);
#endif
}
#endif /* CONFIG_BOARD_LATE_INITIALIZE */