From 411f9d8fcb84e46297290b17e006896f9f219ab8 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Sat, 4 Jan 2025 14:28:29 +0000 Subject: [PATCH] boards: tdk: robokit1: align driver init levels with devicetree deps This board contains both an NTC sensor dependings on a specific SPI ADC and a TMP116 containing both a sensor and an EEPROM. Align these driver initialization priorities with the devicetree dependencies to avoid build failures with CONFIG_CHECK_INIT_PRIORITIES=y. Signed-off-by: Henrik Brix Andersen --- boards/tdk/robokit1/Kconfig.defconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 boards/tdk/robokit1/Kconfig.defconfig diff --git a/boards/tdk/robokit1/Kconfig.defconfig b/boards/tdk/robokit1/Kconfig.defconfig new file mode 100644 index 000000000000..7dccfa805bf3 --- /dev/null +++ b/boards/tdk/robokit1/Kconfig.defconfig @@ -0,0 +1,18 @@ +# Copyright (c) 2024 Henrik Brix Andersen +# SPDX-License-Identifier: Apache-2.0 + +if BOARD_ROBOKIT1 + +config ADC_ADS7052_INIT_PRIORITY + default 60 + depends on ADC_ADS7052 + +config SENSOR_INIT_PRIORITY + default 60 + depends on SENSOR + +config EEPROM_INIT_PRIORITY + default 60 + depends on EEPROM + +endif # BOARD_ROBOKIT1