Skip to content

Commit

Permalink
boards: tdk: robokit1: align driver init levels with devicetree deps
Browse files Browse the repository at this point in the history
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 <henrik@brixandersen.dk>
  • Loading branch information
henrikbrixandersen committed Jan 5, 2025
1 parent 68c0ff4 commit 411f9d8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions boards/tdk/robokit1/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2024 Henrik Brix Andersen <henrik@brixandersen.dk>
# 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

0 comments on commit 411f9d8

Please sign in to comment.