Refactors all of the CAN drivers to use a shared driver class initialization priority configuration, CONFIG_CAN_INIT_PRIORITY, to allow configuring CAN drivers separately from other devices. This is similar to other driver classes like I2C and SPI. The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEVICE to preserve the existing default initialization priority for most drivers. The exception is the mcp2515 driver which has a dependency on a SPI driver and must therefore initialize later than the default device priority. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
19 lines
256 B
Text
19 lines
256 B
Text
# Copyright (c) 2019 Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if SHIELD_DFROBOT_CAN_BUS_V2_0
|
|
|
|
if CAN
|
|
|
|
config SPI
|
|
default y
|
|
|
|
config CAN_MCP2515
|
|
default y
|
|
|
|
config CAN_INIT_PRIORITY
|
|
default 80
|
|
|
|
endif # CAN
|
|
|
|
endif # SHIELD_DFROBOT_CAN_BUS_V2_0
|