boards: silabs: Fix board controller init priority
Before this fix the board init function were called too early, before the gpio driver was initialized. Because of the the board controller for the serial port was not enabled properly. This commit fixes this issue. Signed-off-by: Christian Taedcke <christian.taedcke@lemonbeat.com>
This commit is contained in:
parent
c5a39188b9
commit
0c6ccc0941
14 changed files with 12 additions and 93 deletions
|
@ -1,13 +0,0 @@
|
|||
# EFM32GG STK3701A board configuration
|
||||
# Copyright (c) 2019 Interay Solutions B.V.
|
||||
# Copyright (c) 2019 Oane Kingma
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_INIT_PRIORITY
|
||||
int
|
||||
default KERNEL_INIT_PRIORITY_DEFAULT
|
||||
depends on BOARD_EFM32GG_STK3701A
|
||||
depends on GPIO
|
||||
help
|
||||
Board initialization priority. This must be bigger than
|
||||
GPIO_GECKO_COMMON_INIT_PRIORITY.
|
|
@ -71,4 +71,5 @@ static int efm32gg_stk3701a_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* needs to be done after GPIO driver init */
|
||||
SYS_INIT(efm32gg_stk3701a_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY);
|
||||
SYS_INIT(efm32gg_stk3701a_init, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
# EFM32WG SLSTK3400A board configuration
|
||||
|
||||
# Copyright (c) 2017 Christian Taedcke
|
||||
# Copyright (c) 2018 Marcio Montenegro
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_INIT_PRIORITY
|
||||
int
|
||||
default KERNEL_INIT_PRIORITY_DEFAULT
|
||||
depends on BOARD_EFM32HG_SLSTK3400A
|
||||
depends on GPIO
|
||||
help
|
||||
Board initialization priority. This must be bigger than
|
||||
GPIO_GECKO_COMMON_INIT_PRIORITY.
|
|
@ -29,4 +29,5 @@ static int efm32hg_slstk3400a_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* needs to be done after GPIO driver init */
|
||||
SYS_INIT(efm32hg_slstk3400a_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY);
|
||||
SYS_INIT(efm32hg_slstk3400a_init, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
# EFM32PG STK3401A board configuration
|
||||
|
||||
# Copyright (c) 2020 Rafael Dias Menezes <rdmeneze@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_INIT_PRIORITY
|
||||
int
|
||||
default KERNEL_INIT_PRIORITY_DEFAULT
|
||||
depends on BOARD_EFM32PG_STK3401A
|
||||
depends on GPIO
|
||||
help
|
||||
Board initialization priority. This must be bigger than
|
||||
GPIO_GECKO_COMMON_INIT_PRIORITY.
|
|
@ -29,4 +29,5 @@ static int efm32pg_stk3401a_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* needs to be done after GPIO driver init */
|
||||
SYS_INIT(efm32pg_stk3401a_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY);
|
||||
SYS_INIT(efm32pg_stk3401a_init, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
# EFM32PG STK3402A board configuration
|
||||
|
||||
# Copyright (c) 2018 Christian Taedcke
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_INIT_PRIORITY
|
||||
int
|
||||
default KERNEL_INIT_PRIORITY_DEFAULT
|
||||
depends on BOARD_EFM32PG_STK3402A || BOARD_EFM32PG_STK3402A_JG
|
||||
depends on GPIO
|
||||
help
|
||||
Board initialization priority. This must be bigger than
|
||||
GPIO_GECKO_COMMON_INIT_PRIORITY.
|
|
@ -29,4 +29,5 @@ static int efm32pg_stk3402a_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* needs to be done after GPIO driver init */
|
||||
SYS_INIT(efm32pg_stk3402a_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY);
|
||||
SYS_INIT(efm32pg_stk3402a_init, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
# EFM32WG STK3800 board configuration
|
||||
|
||||
# Copyright (c) 2017 Christian Taedcke
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_INIT_PRIORITY
|
||||
int
|
||||
default KERNEL_INIT_PRIORITY_DEFAULT
|
||||
depends on BOARD_EFM32WG_STK3800
|
||||
depends on GPIO
|
||||
help
|
||||
Board initialization priority. This must be bigger than
|
||||
GPIO_GECKO_COMMON_INIT_PRIORITY.
|
|
@ -29,4 +29,4 @@ static int efm32wg_stk3800_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* needs to be done after GPIO driver init */
|
||||
SYS_INIT(efm32wg_stk3800_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY);
|
||||
SYS_INIT(efm32wg_stk3800_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
|
|
@ -5,11 +5,3 @@
|
|||
|
||||
config BOARD_EFR32_RADIO
|
||||
bool
|
||||
|
||||
config BOARD_INIT_PRIORITY
|
||||
int
|
||||
default KERNEL_INIT_PRIORITY_DEFAULT
|
||||
depends on BOARD_EFR32_RADIO
|
||||
help
|
||||
Board initialization priority. This must be bigger than
|
||||
GPIO_GECKO_COMMON_INIT_PRIORITY.
|
||||
|
|
|
@ -36,4 +36,4 @@ static int efr32_radio_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* needs to be done after GPIO driver init */
|
||||
SYS_INIT(efr32_radio_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY);
|
||||
SYS_INIT(efr32_radio_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
# EFR32MG SLTB004A board configuration
|
||||
|
||||
# Copyright (c) 2018 Christian Taedcke, Diego Sueiro
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_INIT_PRIORITY
|
||||
int
|
||||
default KERNEL_INIT_PRIORITY_DEFAULT
|
||||
depends on BOARD_EFR32MG_SLTB004A
|
||||
help
|
||||
Board initialization priority. This must be bigger than
|
||||
GPIO_GECKO_COMMON_INIT_PRIORITY.
|
|
@ -56,4 +56,5 @@ static int efr32mg_sltb004a_init(const struct device *dev)
|
|||
}
|
||||
|
||||
/* needs to be done after GPIO driver init */
|
||||
SYS_INIT(efr32mg_sltb004a_init, PRE_KERNEL_1, CONFIG_BOARD_INIT_PRIORITY);
|
||||
SYS_INIT(efr32mg_sltb004a_init, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue