pinctrl: Move pint PM storage structure out of blackfin architecture.
It is better to keep this structure in the pinctrl-adi2 driver. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
94e692071a
commit
1e6f8e3c92
|
@ -20,15 +20,6 @@
|
||||||
/* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */
|
/* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h> */
|
||||||
#include <mach/irq.h>
|
#include <mach/irq.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* pm save bfin pint registers
|
|
||||||
*/
|
|
||||||
struct adi_pm_pint_save {
|
|
||||||
u32 assign;
|
|
||||||
u32 edge_set;
|
|
||||||
u32 invert_set;
|
|
||||||
};
|
|
||||||
|
|
||||||
#if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE)
|
#if ANOMALY_05000244 && defined(CONFIG_BFIN_ICACHE)
|
||||||
# define NOP_PAD_ANOMALY_05000244 "nop; nop;"
|
# define NOP_PAD_ANOMALY_05000244 "nop; nop;"
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -89,6 +89,19 @@ struct gpio_port_saved {
|
||||||
u32 mux;
|
u32 mux;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* struct gpio_pint_saved - PINT registers saved in PM operations
|
||||||
|
*
|
||||||
|
* @assign: ASSIGN register
|
||||||
|
* @edge_set: EDGE_SET register
|
||||||
|
* @invert_set: INVERT_SET register
|
||||||
|
*/
|
||||||
|
struct gpio_pint_saved {
|
||||||
|
u32 assign;
|
||||||
|
u32 edge_set;
|
||||||
|
u32 invert_set;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct gpio_pint - Pin interrupt controller device. Multiple ADI GPIO
|
* struct gpio_pint - Pin interrupt controller device. Multiple ADI GPIO
|
||||||
* banks can be mapped into one Pin interrupt controller.
|
* banks can be mapped into one Pin interrupt controller.
|
||||||
|
@ -114,7 +127,7 @@ struct gpio_pint {
|
||||||
int irq;
|
int irq;
|
||||||
struct irq_domain *domain[2];
|
struct irq_domain *domain[2];
|
||||||
struct gpio_pint_regs *regs;
|
struct gpio_pint_regs *regs;
|
||||||
struct adi_pm_pint_save saved_data;
|
struct gpio_pint_saved saved_data;
|
||||||
int map_count;
|
int map_count;
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue