Skip to content

Commit 562b488

Browse files
author
Linus Walleij
committed
gpio: pl061: move platform data into driver
No boardfile defines any PL061 platform data anymore: the Integrator IM/PD-1 includes the file but is not making use of the struct. Let's delete the include and all references, then move the platform data into the driver for later consolidation into the driver state container. The only resource defined by the IM/PD-1 is the IRQ which is passed through the AMBA PrimeCell bus abstraction struct amba_device. Cc: arm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 2796325 commit 562b488

3 files changed

Lines changed: 13 additions & 18 deletions

File tree

‎arch/arm/mach-integrator/impd1.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <linux/amba/bus.h>
2222
#include <linux/amba/clcd.h>
2323
#include <linux/amba/mmci.h>
24-
#include <linux/amba/pl061.h>
2524
#include <linux/io.h>
2625
#include <linux/platform_data/clk-integrator.h>
2726
#include <linux/slab.h>

‎drivers/gpio/gpio-pl061.c‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <linux/gpio.h>
2424
#include <linux/device.h>
2525
#include <linux/amba/bus.h>
26-
#include <linux/amba/pl061.h>
2726
#include <linux/slab.h>
2827
#include <linux/pinctrl/consumer.h>
2928
#include <linux/pm.h>
@@ -39,6 +38,19 @@
3938

4039
#define PL061_GPIO_NR 8
4140

41+
struct pl061_platform_data {
42+
/* number of the first GPIO */
43+
unsigned gpio_base;
44+
45+
/* number of the first IRQ.
46+
* If the IRQ functionality in not desired this must be set to 0.
47+
*/
48+
unsigned irq_base;
49+
50+
u8 directions; /* startup directions, 1: out, 0: in */
51+
u8 values; /* startup values */
52+
};
53+
4254
#ifdef CONFIG_PM
4355
struct pl061_context_save_regs {
4456
u8 gpio_data;

‎include/linux/amba/pl061.h‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)