Commit a99cc668 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Andy Shevchenko
Browse files

gpiolib: split of_mm_gpio_chip out of linux/of_gpio.h



This is a rarely used feature that has nothing to do with the
client-side of_gpio.h.

Split it out with a separate header file and Kconfig option
so it can be removed on its own timeline aside from removing
the of_gpio consumer interfaces.

Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent a8e59744
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ config PPC4xx_GPIO
	bool "PPC4xx GPIO support"
	depends on 44x
	select GPIOLIB
	select OF_GPIO_MM_GPIOCHIP
	help
	  Enable gpiolib support for ppc440 based boards

+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
#include <linux/gpio/legacy-of-mm-gpiochip.h>
#include <linux/gpio/driver.h>
#include <linux/types.h>
#include <linux/slab.h>
+1 −0
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@ comment "Generic MPC8xx Options"
config 8xx_GPIO
	bool "GPIO API Support"
	select GPIOLIB
	select OF_GPIO_MM_GPIOCHIP
	help
	  Saying Y here will cause the ports on an MPC8xx processor to be used
	  with the GPIO API.  If you say N here, the kernel needs less memory.
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@
#include <asm/fs_pd.h>

#ifdef CONFIG_8xx_GPIO
#include <linux/of_gpio.h>
#include <linux/gpio/legacy-of-mm-gpiochip.h>
#endif

#define CPM_MAP_SIZE    (0x4000)
+2 −0
Original line number Diff line number Diff line
@@ -244,6 +244,7 @@ config QE_GPIO
	bool "QE GPIO support"
	depends on QUICC_ENGINE
	select GPIOLIB
	select OF_GPIO_MM_GPIOCHIP
	help
	  Say Y here if you're going to use hardware that connects to the
	  QE GPIOs.
@@ -254,6 +255,7 @@ config CPM2
	select CPM
	select HAVE_PCI
	select GPIOLIB
	select OF_GPIO_MM_GPIOCHIP
	help
	  The CPM2 (Communications Processor Module) is a coprocessor on
	  embedded CPUs made by Freescale.  Selecting this option means that
Loading