diff options
author | Mattias Wallin <mattias.wallin@stericsson.com> | 2011-03-02 05:51:11 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:42:02 -0400 |
commit | adceed6263887e04721b477e6504aa24789f827d (patch) | |
tree | 02c59f4ebd53ff523d1b364cd621bf7205d4a27b | |
parent | e9300066bbd21c4fba3c8c5475c6a21d9c97694e (diff) |
mfd: ab8500 chip revision 3.0 support
This patch adds support for ab8500 chip revision cut 3.0.
Also rephrased from Changes to Author in the header.
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/mfd/ab8500-core.c | 9 | ||||
-rw-r--r-- | include/linux/mfd/ab8500.h | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index b6887014d687..8d6c29251dcd 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * License Terms: GNU General Public License v2 | 4 | * License Terms: GNU General Public License v2 |
5 | * Author: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> | 5 | * Author: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> |
6 | * Author: Rabin Vincent <rabin.vincent@stericsson.com> | 6 | * Author: Rabin Vincent <rabin.vincent@stericsson.com> |
7 | * Changes: Mattias Wallin <mattias.wallin@stericsson.com> | 7 | * Author: Mattias Wallin <mattias.wallin@stericsson.com> |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
@@ -686,9 +686,10 @@ int __devinit ab8500_init(struct ab8500 *ab8500) | |||
686 | * 0x10 - Cut 1.0 | 686 | * 0x10 - Cut 1.0 |
687 | * 0x11 - Cut 1.1 | 687 | * 0x11 - Cut 1.1 |
688 | * 0x20 - Cut 2.0 | 688 | * 0x20 - Cut 2.0 |
689 | * 0x30 - Cut 3.0 | ||
689 | */ | 690 | */ |
690 | if (value == 0x0 || value == 0x10 || value == 0x11 || value == 0x20) { | 691 | if (value == 0x0 || value == 0x10 || value == 0x11 || value == 0x20 || |
691 | ab8500->revision = value; | 692 | value == 0x30) { |
692 | dev_info(ab8500->dev, "detected chip, revision: %#x\n", value); | 693 | dev_info(ab8500->dev, "detected chip, revision: %#x\n", value); |
693 | } else { | 694 | } else { |
694 | dev_err(ab8500->dev, "unknown chip, revision: %#x\n", value); | 695 | dev_err(ab8500->dev, "unknown chip, revision: %#x\n", value); |
@@ -764,6 +765,6 @@ int __devexit ab8500_exit(struct ab8500 *ab8500) | |||
764 | return 0; | 765 | return 0; |
765 | } | 766 | } |
766 | 767 | ||
767 | MODULE_AUTHOR("Srinidhi Kasagar, Rabin Vincent"); | 768 | MODULE_AUTHOR("Mattias Wallin, Srinidhi Kasagar, Rabin Vincent"); |
768 | MODULE_DESCRIPTION("AB8500 MFD core"); | 769 | MODULE_DESCRIPTION("AB8500 MFD core"); |
769 | MODULE_LICENSE("GPL v2"); | 770 | MODULE_LICENSE("GPL v2"); |
diff --git a/include/linux/mfd/ab8500.h b/include/linux/mfd/ab8500.h index 37f56b7c4c15..56f8dea72152 100644 --- a/include/linux/mfd/ab8500.h +++ b/include/linux/mfd/ab8500.h | |||
@@ -111,8 +111,8 @@ | |||
111 | * @dev: parent device | 111 | * @dev: parent device |
112 | * @lock: read/write operations lock | 112 | * @lock: read/write operations lock |
113 | * @irq_lock: genirq bus lock | 113 | * @irq_lock: genirq bus lock |
114 | * @revision: chip revision | ||
115 | * @irq: irq line | 114 | * @irq: irq line |
115 | * @chip_id: chip revision id | ||
116 | * @write: register write | 116 | * @write: register write |
117 | * @read: register read | 117 | * @read: register read |
118 | * @rx_buf: rx buf for SPI | 118 | * @rx_buf: rx buf for SPI |
@@ -124,7 +124,7 @@ struct ab8500 { | |||
124 | struct device *dev; | 124 | struct device *dev; |
125 | struct mutex lock; | 125 | struct mutex lock; |
126 | struct mutex irq_lock; | 126 | struct mutex irq_lock; |
127 | int revision; | 127 | |
128 | int irq_base; | 128 | int irq_base; |
129 | int irq; | 129 | int irq; |
130 | u8 chip_id; | 130 | u8 chip_id; |