diff options
author | Zoltan Herpai <wigyori@uid0.hu> | 2014-03-06 00:09:30 +0000 |
---|---|---|
committer | Zoltan Herpai <wigyori@uid0.hu> | 2014-03-06 00:09:30 +0000 |
commit | ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7 (patch) | |
tree | ef1ef8907c63a75c4ac441f8c95325a6d5abb9ec /target/linux/sunxi/patches-3.13/171-4-pinctrl-sunxi-fix-irqregister-offset-calcs.patch | |
parent | 2c771cc71f3b6aceda5fe81f44a79b724e0941d0 (diff) | |
download | master-31e0f0ae-ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7.tar.gz master-31e0f0ae-ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7.tar.bz2 master-31e0f0ae-ac4b9dbb3c9b056008e00ee3d02fe3dad65641b7.zip |
sunxi: driver refresh for 3.13 - update gmac / mmc / usb / ahci drivers to follow mainline dev trees - add driver for spi - update clock support - update a31 support - move to new DT compats where appropriate - re-order patchqueue where needed - verified working a20 smp - move most DTSes off files/ - update defconfig
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 39782
Diffstat (limited to 'target/linux/sunxi/patches-3.13/171-4-pinctrl-sunxi-fix-irqregister-offset-calcs.patch')
-rw-r--r-- | target/linux/sunxi/patches-3.13/171-4-pinctrl-sunxi-fix-irqregister-offset-calcs.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-3.13/171-4-pinctrl-sunxi-fix-irqregister-offset-calcs.patch b/target/linux/sunxi/patches-3.13/171-4-pinctrl-sunxi-fix-irqregister-offset-calcs.patch new file mode 100644 index 0000000000..182cf73b27 --- /dev/null +++ b/target/linux/sunxi/patches-3.13/171-4-pinctrl-sunxi-fix-irqregister-offset-calcs.patch @@ -0,0 +1,46 @@ +From a5f3d2672d5b9efe93be0bf66d69156bf806220b Mon Sep 17 00:00:00 2001 +From: Hans de Goede <hdegoede@redhat.com> +Date: Mon, 17 Feb 2014 22:04:20 +0100 +Subject: [PATCH] pinctrl-sunxi: Fix interrupt register offset calculation + +This fixing setting the interrupt type for eints >= 8. + +Signed-off-by: Hans de Goede <hdegoede@redhat.com> +--- + drivers/pinctrl/pinctrl-sunxi.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/drivers/pinctrl/pinctrl-sunxi.h b/drivers/pinctrl/pinctrl-sunxi.h +index 01c494f..552b0e9 100644 +--- a/drivers/pinctrl/pinctrl-sunxi.h ++++ b/drivers/pinctrl/pinctrl-sunxi.h +@@ -511,7 +511,7 @@ static inline u32 sunxi_pull_offset(u16 pin) + + static inline u32 sunxi_irq_cfg_reg(u16 irq) + { +- u8 reg = irq / IRQ_CFG_IRQ_PER_REG; ++ u8 reg = irq / IRQ_CFG_IRQ_PER_REG * 0x04; + return reg + IRQ_CFG_REG; + } + +@@ -523,7 +523,7 @@ static inline u32 sunxi_irq_cfg_offset(u16 irq) + + static inline u32 sunxi_irq_ctrl_reg(u16 irq) + { +- u8 reg = irq / IRQ_CTRL_IRQ_PER_REG; ++ u8 reg = irq / IRQ_CTRL_IRQ_PER_REG * 0x04; + return reg + IRQ_CTRL_REG; + } + +@@ -535,7 +535,7 @@ static inline u32 sunxi_irq_ctrl_offset(u16 irq) + + static inline u32 sunxi_irq_status_reg(u16 irq) + { +- u8 reg = irq / IRQ_STATUS_IRQ_PER_REG; ++ u8 reg = irq / IRQ_STATUS_IRQ_PER_REG * 0x04; + return reg + IRQ_STATUS_REG; + } + +-- +1.8.5.5 + |