diff mbox series

ARM: defconfig: lpc32xx: enable lpc32xx GPIO driver

Message ID 1565186675-1856-1-git-send-email-slemieux.tyco@gmail.com (mailing list archive)
State New, archived
Headers show
Series ARM: defconfig: lpc32xx: enable lpc32xx GPIO driver | expand

Commit Message

Sylvain Lemieux Aug. 7, 2019, 2:04 p.m. UTC
From: Sylvain Lemieux <slemieux@tycoint.com>

The change that allow the multiplatform build for the lpc32xx
platform add a new kernel config for the LPC32XX GPIO driver.

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
---
Note:
* This patch depend on the following patchset:
  ARM: move lpc32xx and dove to multiplatform
  https://www.spinics.net/lists/linux-usb/msg183095.html

 arch/arm/configs/lpc32xx_defconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Arnd Bergmann Aug. 8, 2019, 3:06 p.m. UTC | #1
On Wed, Aug 7, 2019 at 4:06 PM Sylvain Lemieux <slemieux.tyco@gmail.com> wrote:
>
> From: Sylvain Lemieux <slemieux@tycoint.com>
>
> The change that allow the multiplatform build for the lpc32xx
> platform add a new kernel config for the LPC32XX GPIO driver.
>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
> ---
> Note:
> * This patch depend on the following patchset:
>   ARM: move lpc32xx and dove to multiplatform
>   https://www.spinics.net/lists/linux-usb/msg183095.html

I did not think this was needed, as I added

config GPIO_LPC32XX
        tristate "NXP LPC32XX GPIO support"
        default ARCH_LPC32XX
        depends on OF_GPIO && (ARCH_LPC32XX || COMPILE_TEST)

so when running 'make lpc32xx_defconfig', I expected the
driver to already be enabled. Did I miss something?

         Arnd
Sylvain Lemieux Aug. 8, 2019, 4:19 p.m. UTC | #2
On 8/8/19 11:06 AM, Arnd Bergmann wrote:
> On Wed, Aug 7, 2019 at 4:06 PM Sylvain Lemieux <slemieux.tyco@gmail.com> wrote:
>>
>> From: Sylvain Lemieux <slemieux@tycoint.com>
>>
>> The change that allow the multiplatform build for the lpc32xx
>> platform add a new kernel config for the LPC32XX GPIO driver.
>>
>> Cc: Arnd Bergmann <arnd@arndb.de>
>> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
>> ---
>> Note:
>> * This patch depend on the following patchset:
>>    ARM: move lpc32xx and dove to multiplatform
>>    https://www.spinics.net/lists/linux-usb/msg183095.html
> 
> I did not think this was needed, as I added
> 
> config GPIO_LPC32XX
>          tristate "NXP LPC32XX GPIO support"
>          default ARCH_LPC32XX
>          depends on OF_GPIO && (ARCH_LPC32XX || COMPILE_TEST)
> 
> so when running 'make lpc32xx_defconfig', I expected the
> driver to already be enabled. Did I miss something?
> 
The GPIO driver is enable. This change is optional.

I added this new config to the default LPC32xx defconfig
to keep in sync with what is done for the other LPC32xx drivers.

All the LPC32xx drivers config option are listed in the defconfig.

>           Arnd
> 

Sylvain
Arnd Bergmann Aug. 9, 2019, 2:22 p.m. UTC | #3
On Thu, Aug 8, 2019 at 6:19 PM Sylvain Lemieux <slemieux.tyco@gmail.com> wrote:
> On 8/8/19 11:06 AM, Arnd Bergmann wrote:
> > On Wed, Aug 7, 2019 at 4:06 PM Sylvain Lemieux <slemieux.tyco@gmail.com> wrote:
> >>
> >> From: Sylvain Lemieux <slemieux@tycoint.com>
> >>
> >> The change that allow the multiplatform build for the lpc32xx
> >> platform add a new kernel config for the LPC32XX GPIO driver.
> >>
> >> Cc: Arnd Bergmann <arnd@arndb.de>
> >> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
> >> ---
> >> Note:
> >> * This patch depend on the following patchset:
> >>    ARM: move lpc32xx and dove to multiplatform
> >>    https://www.spinics.net/lists/linux-usb/msg183095.html
> >
> > I did not think this was needed, as I added
> >
> > config GPIO_LPC32XX
> >          tristate "NXP LPC32XX GPIO support"
> >          default ARCH_LPC32XX
> >          depends on OF_GPIO && (ARCH_LPC32XX || COMPILE_TEST)
> >
> > so when running 'make lpc32xx_defconfig', I expected the
> > driver to already be enabled. Did I miss something?
> >
> The GPIO driver is enable. This change is optional.
>
> I added this new config to the default LPC32xx defconfig
> to keep in sync with what is done for the other LPC32xx drivers.
>
> All the LPC32xx drivers config option are listed in the defconfig.

Ok, I just removed the 'default ARCH_LPC32XX' now, and added your
line to the gpio driver patch. That way it behaves like all other
lpc32xx drivers and the defconfig line won't disappear after one
runs 'make savedefconfig'.

       Arnd
diff mbox series

Patch

diff --git a/arch/arm/configs/lpc32xx_defconfig b/arch/arm/configs/lpc32xx_defconfig
index 2d75bd8..09deb57 100644
--- a/arch/arm/configs/lpc32xx_defconfig
+++ b/arch/arm/configs/lpc32xx_defconfig
@@ -94,6 +94,7 @@  CONFIG_SERIAL_HS_LPC32XX_CONSOLE=y
 # CONFIG_HW_RANDOM is not set
 CONFIG_I2C_CHARDEV=y
 CONFIG_I2C_PNX=y
+CONFIG_GPIO_LPC32XX=y
 CONFIG_SPI=y
 CONFIG_SPI_PL022=y
 CONFIG_GPIO_SYSFS=y