Change the Kconfig files so that GPIO_PCF857X is default when MACH_DAVINCI_DA850_EVM is set instead of always selecting so that users may compile pca953x as a module.
Note that since NAND/NOR setup is performed in the pcs953x setup() function of board-da850-evm.c, when building pca953x as a module it will need to be insmod'ed from early userspace (i.e. initrd) to use a NAND or NOR rootfs for the system. Signed-off-by: Ben Gardiner <[email protected]> Cc: Sergei Shtylyov <[email protected]> Cc: David Brownell <[email protected]> --- Changes since V1: * make PCA953x default when MACH_DAVINCI_DA850_EVM in drivers/gpio/Kconfig instead of selecting GPIO_PCF857X when MACH_DAVINCI_DA850_EVM in arc/arm/mach-davinci/Kconfig * adding David Brownell because I think he is the pca953x goto guy --- arch/arm/mach-davinci/Kconfig | 1 - drivers/gpio/Kconfig | 1 + 2 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig index b77b860..1d42fb9 100644 --- a/arch/arm/mach-davinci/Kconfig +++ b/arch/arm/mach-davinci/Kconfig @@ -148,7 +148,6 @@ config MACH_DAVINCI_DA850_EVM bool "TI DA850/OMAP-L138/AM18x Reference Platform" default ARCH_DAVINCI_DA850 depends on ARCH_DAVINCI_DA850 - select GPIO_PCA953X help Say Y here to select the TI DA850/OMAP-L138/AM18x Evaluation Module. diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 510aa20..2e23017 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -149,6 +149,7 @@ config GPIO_MAX732X_IRQ config GPIO_PCA953X tristate "PCA953x, PCA955x, TCA64xx, and MAX7310 I/O ports" depends on I2C + default y if MACH_DAVINCI_DA850_EVM help Say yes here to provide access to several register-oriented SMBus I/O expanders, made mostly by NXP or TI. Compatible -- 1.7.0.4 _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
