diff options
author | Balaji T K <balajitk@ti.com> | 2009-12-13 18:25:31 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-12-13 18:25:31 -0500 |
commit | e8deb28ca8e221de0239eafb3c3d431d8854278e (patch) | |
tree | 2dffdb207366aa0a8f229775515fc207c16f8574 /drivers/mfd/twl4030-irq.c | |
parent | c4aa6f314328142974c78377cd9476f8ec6f0eba (diff) |
mfd: Add support for twl6030 irq framework
This patch adds support for phoenix interrupt framework. New iInterrupt
status register A, B, C are introduced in Phoenix and are cleared on write.
Due to the differences in interrupt handling with respect to TWL4030,
twl6030-irq.c is created for TWL6030 PMIC
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/twl4030-irq.c')
-rw-r--r-- | drivers/mfd/twl4030-irq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index 5a62cf916987..20d29bafc9f5 100644 --- a/drivers/mfd/twl4030-irq.c +++ b/drivers/mfd/twl4030-irq.c | |||
@@ -778,7 +778,7 @@ int twl4030_sih_setup(int module) | |||
778 | /* FIXME pass in which interrupt line we'll use ... */ | 778 | /* FIXME pass in which interrupt line we'll use ... */ |
779 | #define twl_irq_line 0 | 779 | #define twl_irq_line 0 |
780 | 780 | ||
781 | int twl_init_irq(int irq_num, unsigned irq_base, unsigned irq_end) | 781 | int twl4030_init_irq(int irq_num, unsigned irq_base, unsigned irq_end) |
782 | { | 782 | { |
783 | static struct irq_chip twl4030_irq_chip; | 783 | static struct irq_chip twl4030_irq_chip; |
784 | 784 | ||
@@ -858,7 +858,7 @@ fail: | |||
858 | return status; | 858 | return status; |
859 | } | 859 | } |
860 | 860 | ||
861 | int twl_exit_irq(void) | 861 | int twl4030_exit_irq(void) |
862 | { | 862 | { |
863 | /* FIXME undo twl_init_irq() */ | 863 | /* FIXME undo twl_init_irq() */ |
864 | if (twl4030_irq_base) { | 864 | if (twl4030_irq_base) { |
@@ -868,7 +868,7 @@ int twl_exit_irq(void) | |||
868 | return 0; | 868 | return 0; |
869 | } | 869 | } |
870 | 870 | ||
871 | int twl_init_chip_irq(const char *chip) | 871 | int twl4030_init_chip_irq(const char *chip) |
872 | { | 872 | { |
873 | if (!strcmp(chip, "twl5031")) { | 873 | if (!strcmp(chip, "twl5031")) { |
874 | sih_modules = sih_modules_twl5031; | 874 | sih_modules = sih_modules_twl5031; |