This article: gpio-(linux)#GPIO_PowerOf states that CONFIG_POWER_RESET_GPIO must be set in the kernel configuration.
Per this article to build the kernel: build-u-boot-and-linux-kernel-from-source-code, after executing ‘make apalis_imx6_defconfig’, I should be able to alter the .config directly to enable the CONFIG_POWER_RESET_GPIO configuration. However, it is not shown in the .config file. Does CONFIG_POWER_RESET_GPIO still need to be enabled, or is that instruction only for older kernels?
This article: gpio-(linux)#GPIO_PowerOf states that CONFIG_POWER_RESET_GPIO must be set in the kernel configuration.
Per this article to build the kernel: build-u-boot-and-linux-kernel-from-source-code, after executing ‘make apalis_imx6_defconfig’, I should be able to alter the .config directly to enable the CONFIG_POWER_RESET_GPIO configuration.
Directly editing the .config
file is only advised if you are aware of possible dependencies and such which may not be obvious. In all other cases the use of e.g. make nconfig
is very much preferred.
However, it is not shown in the .config file.
Due to above mentioned dependencies on e.g. POWER_RESET
which needs to be enabled as well. This is e.g. what doing a F8 SymSearch
would show you in nconfig
:
Symbol: POWER_RESET_GPIO [=n]
Type : boolean
Prompt: GPIO power-off driver
Location:
-> Device Drivers
-> Power supply class support (POWER_SUPPLY [=y])
-> Board level reset or power off (POWER_RESET [=n])
Defined at drivers/power/reset/Kconfig:52
Depends on: POWER_SUPPLY [=y] && POWER_RESET [=n] && OF_GPIO [=y]
Does CONFIG_POWER_RESET_GPIO still need to be enabled, or is that instruction only for older kernels?
Yes, that instruction really applies up to current mainline Linux kernels even -next ones of today.
Thank you for the clarification.