Skip to content

Commit 5920159

Browse files
congnguyenhuucarlescufi
authored andcommitted
boards: mr_canhubk3: enable GPIO when CAN is enabled
Currently, mr_canhubk3 is enabling GPIO by default. GPIO will be built even if it is not necessary. Update to enable it for supporting CAN transceiver when CAN is enabled. Signed-off-by: Cong Nguyen Huu <[email protected]>
1 parent 595bcda commit 5920159

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

boards/arm/mr_canhubk3/Kconfig.defconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ config UART_CONSOLE
1313

1414
endif # SERIAL
1515

16+
if CAN
17+
18+
config GPIO
19+
default y
20+
21+
endif # CAN
22+
1623
endif # BOARD_MR_CANHUBK3

boards/arm/mr_canhubk3/mr_canhubk3_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ CONFIG_NOCACHE_MEMORY=y
2121
# Drivers
2222
CONFIG_PINCTRL=y
2323
CONFIG_SERIAL=y
24-
CONFIG_GPIO=y # Enable support for GPIO controlled CAN transceivers
2524

2625
# Serial console
2726
CONFIG_CONSOLE=y

0 commit comments

Comments
 (0)