Skip to content

Commit 357d9a1

Browse files
committed
arch/ceva: Replace board_app_initialize
Replaced board_app_initialize logic with board_late_initialize. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
1 parent b006561 commit 357d9a1

14 files changed

Lines changed: 32 additions & 76 deletions

File tree

arch/ceva/src/common/ceva_board.c

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -70,46 +70,6 @@ void board_late_initialize(void)
7070
}
7171
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
7272

73-
/****************************************************************************
74-
* Name: board_app_initialize
75-
*
76-
* Description:
77-
* Perform application specific initialization. This function is never
78-
* called directly from application code, but only indirectly via the
79-
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
80-
*
81-
* Input Parameters:
82-
* arg - The boardctl() argument is passed to the board_app_initialize()
83-
* implementation without modification. The argument has no
84-
* meaning to NuttX; the meaning of the argument is a contract
85-
* between the board-specific initialization logic and the
86-
* matching application logic. The value cold be such things as a
87-
* mode enumeration value, a set of DIP switch switch settings, a
88-
* pointer to configuration data read from a file or serial FLASH,
89-
* or whatever you would like to do with it. Every implementation
90-
* should accept zero/NULL as a default configuration.
91-
*
92-
* Returned Value:
93-
* Zero (OK) is returned on success; a negated errno value is returned on
94-
* any failure to indicate the nature of the failure.
95-
*
96-
****************************************************************************/
97-
98-
#ifdef CONFIG_LIB_BOARDCTL
99-
int board_app_initialize(uintptr_t arg)
100-
{
101-
/* Perform the arch late initialization */
102-
103-
ceva_lateinitialize();
104-
105-
/* Perform the board late initialization */
106-
107-
board_lateinitialize();
108-
109-
return 0;
110-
}
111-
#endif /* CONFIG_LIB_BOARDCTL */
112-
11373
/****************************************************************************
11474
* Name: board_app_finalinitialize
11575
*

boards/arm/kinetis/kwikstik-k40/src/k40_boot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ struct kinetis_nsh_s
122122
static struct kinetis_nsh_s g_nsh;
123123
#endif
124124

125-
126125
/****************************************************************************
127126
* Private Functions
128127
****************************************************************************/

boards/arm/lpc17xx_40xx/mbed/src/lpc17_40_boot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
# undef NSH_HAVEUSBDEV
6565
#endif
6666

67-
6867
/****************************************************************************
6968
* Private Functions
7069
****************************************************************************/

boards/arm/lpc31xx/ea3131/src/lpc31_boot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
# define CONFIG_NSH_MMCSDMINOR 0
8989
#endif
9090

91-
9291
/****************************************************************************
9392
* Private Functions
9493
****************************************************************************/

boards/arm/lpc43xx/lpc4370-link2/src/lpc43_boot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ static void lpc43_i2ctool(void)
100100
# define lpc43_i2ctool()
101101
#endif
102102

103-
104103
/****************************************************************************
105104
* Public Functions
106105
****************************************************************************/

boards/arm/samd2l2/saml21-xplained/src/sam_boot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
# endif
8080
#endif
8181

82-
8382
/****************************************************************************
8483
* Private Functions
8584
****************************************************************************/

boards/arm/samv7/same70-xplained/src/sam_boardctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* boards/arm/samv7/same70-xplained/src/sam_boarctl.c
2+
* boards/arm/samv7/same70-xplained/src/sam_boardctl.c
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
############################################################################
1+
# ##############################################################################
22
# boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
6-
# Licensed to the Apache Software Foundation (ASF) under one or more
7-
# contributor license agreements. See the NOTICE file distributed with
8-
# this work for additional information regarding copyright ownership. The
9-
# ASF licenses this file to you under the Apache License, Version 2.0 (the
10-
# "License"); you may not use this file except in compliance with the
11-
# License. You may obtain a copy of the License at
6+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
7+
# license agreements. See the NOTICE file distributed with this work for
8+
# additional information regarding copyright ownership. The ASF licenses this
9+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
10+
# use this file except in compliance with the License. You may obtain a copy of
11+
# the License at
1212
#
13-
# http://www.apache.org/licenses/LICENSE-2.0
13+
# http://www.apache.org/licenses/LICENSE-2.0
1414
#
1515
# Unless required by applicable law or agreed to in writing, software
1616
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
1717
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18-
# License for the specific language governing permissions and limitations
19-
# under the License.
18+
# License for the specific language governing permissions and limitations under
19+
# the License.
2020
#
21-
############################################################################
21+
# ##############################################################################
2222

2323
set(SRCS stm32_boot.c stm32_bringup.c)
2424

boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
############################################################################
1+
# ##############################################################################
22
# boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
6-
# Licensed to the Apache Software Foundation (ASF) under one or more
7-
# contributor license agreements. See the NOTICE file distributed with
8-
# this work for additional information regarding copyright ownership. The
9-
# ASF licenses this file to you under the Apache License, Version 2.0 (the
10-
# "License"); you may not use this file except in compliance with the
11-
# License. You may obtain a copy of the License at
6+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
7+
# license agreements. See the NOTICE file distributed with this work for
8+
# additional information regarding copyright ownership. The ASF licenses this
9+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
10+
# use this file except in compliance with the License. You may obtain a copy of
11+
# the License at
1212
#
13-
# http://www.apache.org/licenses/LICENSE-2.0
13+
# http://www.apache.org/licenses/LICENSE-2.0
1414
#
1515
# Unless required by applicable law or agreed to in writing, software
1616
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
1717
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18-
# License for the specific language governing permissions and limitations
19-
# under the License.
18+
# License for the specific language governing permissions and limitations under
19+
# the License.
2020
#
21-
############################################################################
21+
# ##############################################################################
2222

2323
set(SRCS stm32_boot.c stm32_spi.c stm32_dma_alloc.c)
2424

boards/arm/stm32h7/nucleo-h743zi/src/CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,13 @@ target_sources(board PRIVATE ${SRCS})
112112

113113
if(CONFIG_STM32_APP_FORMAT_MCUBOOT)
114114
if(CONFIG_MCUBOOT_BOOTLOADER)
115-
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash-mcuboot-loader.ld")
115+
set_property(
116+
GLOBAL PROPERTY LD_SCRIPT
117+
"${NUTTX_BOARD_DIR}/scripts/flash-mcuboot-loader.ld")
116118
else()
117-
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash-mcuboot-app.ld")
119+
set_property(
120+
GLOBAL PROPERTY LD_SCRIPT
121+
"${NUTTX_BOARD_DIR}/scripts/flash-mcuboot-app.ld")
118122
endif()
119123
else()
120124
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")
@@ -124,5 +128,5 @@ if(NOT CONFIG_BUILD_FLAT)
124128
add_subdirectory(${NUTTX_BOARD_DIR}/kernel)
125129
set_property(
126130
GLOBAL PROPERTY LD_SCRIPT_USER ${NUTTX_BOARD_DIR}/scripts/memory.ld
127-
${NUTTX_BOARD_DIR}/scripts/user-space.ld)
131+
${NUTTX_BOARD_DIR}/scripts/user-space.ld)
128132
endif()

0 commit comments

Comments
 (0)