pinctrl: intel: Make offset to interrupt status register configurable
Some GPIO blocks have the interrupt status (GPI_IS) offset different than it normally is, so make it configurable. If no offset is specified we use the default. While there remove two unused constants from the core driver. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

parent
1396007286
commit
cf769bd86b
@@ -73,6 +73,8 @@ struct intel_padgroup {
|
||||
* @hostown_offset: Register offset of HOSTSW_OWN from @regs. If %0 then it
|
||||
* is assumed that the host owns the pin (rather than
|
||||
* ACPI).
|
||||
* @is_offset: Register offset of GPI_IS from @regs. If %0 then uses the
|
||||
* default (%0x100).
|
||||
* @ie_offset: Register offset of GPI_IE from @regs.
|
||||
* @pin_base: Starting pin of pins in this community
|
||||
* @gpp_size: Maximum number of pads in each group, such as PADCFGLOCK,
|
||||
@@ -98,6 +100,7 @@ struct intel_community {
|
||||
unsigned padown_offset;
|
||||
unsigned padcfglock_offset;
|
||||
unsigned hostown_offset;
|
||||
unsigned is_offset;
|
||||
unsigned ie_offset;
|
||||
unsigned pin_base;
|
||||
unsigned gpp_size;
|
||||
|
Reference in New Issue
Block a user