From: Mattias Wallin <mattias.wallin@stericsson.com>
To: Samuel Ortiz <sameo@linux.intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Linus WALLEIJ <linus.walleij@stericsson.com>
Subject: Re: [PATCH] MFD: ab8500-core chip version cut 2.0 support
Date: Fri, 10 Dec 2010 09:27:24 +0100 [thread overview]
Message-ID: <4D01E46C.90301@stericsson.com> (raw)
In-Reply-To: <20101209170851.GZ8884@sortiz-mobl>
On 12/09/2010 06:08 PM, Samuel Ortiz wrote:
> Hi Mattias,
>
> On Tue, Dec 07, 2010 at 11:20:47AM +0100, Mattias Wallin wrote:
>> This patch adds support for chip version 2.0 or cut 2.0.
>> One new interrupt latch register - latch 12 - is introduced.
> One question for you:
>
>> diff --git a/include/linux/mfd/ab8500.h b/include/linux/mfd/ab8500.h
>> index 1848781..157f000 100644
>> --- a/include/linux/mfd/ab8500.h
>> +++ b/include/linux/mfd/ab8500.h
>> @@ -74,30 +74,37 @@
>> #define AB8500_INT_ACC_DETECT_21DB_F 37
>> #define AB8500_INT_ACC_DETECT_21DB_R 38
>> #define AB8500_INT_GP_SW_ADC_CONV_END 39
>> -#define AB8500_INT_BTEMP_LOW 72
>> -#define AB8500_INT_BTEMP_LOW_MEDIUM 73
>> -#define AB8500_INT_BTEMP_MEDIUM_HIGH 74
>> -#define AB8500_INT_BTEMP_HIGH 75
>> -#define AB8500_INT_USB_CHARGER_NOT_OK 81
>> -#define AB8500_INT_ID_WAKEUP_R 82
>> -#define AB8500_INT_ID_DET_R1R 84
>> -#define AB8500_INT_ID_DET_R2R 85
>> -#define AB8500_INT_ID_DET_R3R 86
>> -#define AB8500_INT_ID_DET_R4R 87
>> -#define AB8500_INT_ID_WAKEUP_F 88
>> -#define AB8500_INT_ID_DET_R1F 90
>> -#define AB8500_INT_ID_DET_R2F 91
>> -#define AB8500_INT_ID_DET_R3F 92
>> -#define AB8500_INT_ID_DET_R4F 93
>> -#define AB8500_INT_USB_CHG_DET_DONE 94
>> -#define AB8500_INT_USB_CH_TH_PROT_F 96
>> -#define AB8500_INT_USB_CH_TH_PROT_R 97
>> -#define AB8500_INT_MAIN_CH_TH_PROT_F 98
>> -#define AB8500_INT_MAIN_CH_TH_PROT_R 99
>> -#define AB8500_INT_USB_CHARGER_NOT_OKF 103
>> +#define AB8500_INT_ADP_SOURCE_ERROR 72
>> +#define AB8500_INT_ADP_SINK_ERROR 73
>> +#define AB8500_INT_ADP_PROBE_PLUG 74
>> +#define AB8500_INT_ADP_PROBE_UNPLUG 75
>> +#define AB8500_INT_ADP_SENSE_OFF 76
>> +#define AB8500_INT_USB_PHY_POWER_ERR 78
>> +#define AB8500_INT_USB_LINK_STATUS 79
>> +#define AB8500_INT_BTEMP_LOW 80
>> +#define AB8500_INT_BTEMP_LOW_MEDIUM 81
>> +#define AB8500_INT_BTEMP_MEDIUM_HIGH 82
>> +#define AB8500_INT_BTEMP_HIGH 83
>> +#define AB8500_INT_USB_CHARGER_NOT_OK 89
>> +#define AB8500_INT_ID_WAKEUP_R 90
>> +#define AB8500_INT_ID_DET_R1R 92
>> +#define AB8500_INT_ID_DET_R2R 93
>> +#define AB8500_INT_ID_DET_R3R 94
>> +#define AB8500_INT_ID_DET_R4R 95
>> +#define AB8500_INT_ID_WAKEUP_F 96
>> +#define AB8500_INT_ID_DET_R1F 98
>> +#define AB8500_INT_ID_DET_R2F 99
>> +#define AB8500_INT_ID_DET_R3F 100
>> +#define AB8500_INT_ID_DET_R4F 101
>> +#define AB8500_INT_USB_CHG_DET_DONE 102
>> +#define AB8500_INT_USB_CH_TH_PROT_F 104
>> +#define AB8500_INT_USB_CH_TH_PROT_R 105
>> +#define AB8500_INT_MAIN_CH_TH_PROT_F 106
>> +#define AB8500_INT_MAIN_CH_TH_PROT_R 107
>> +#define AB8500_INT_USB_CHARGER_NOT_OKF 111
> This new interrupt sources layout doesn't seem to be compatible with the
> current one. What's the story here ?
The above list of interrupts must match the latch register array (ab8500_irq_regoffset) that the interrupt handler of ab8500-core uses.
Now, our HW guys added a new latch register in the middle of the other registers so I had to insert the eight new interrupts in the middle of above list.
But it should not be any problems for the sub drivers since all uses above defines and platform_get_ioresource().
Did I answer your question or did I answer another question?
/Wallin
next prev parent reply other threads:[~2010-12-10 8:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-07 10:20 [PATCH] MFD: ab8500-core chip version cut 2.0 support Mattias Wallin
2010-12-09 17:08 ` Samuel Ortiz
2010-12-10 8:27 ` Mattias Wallin [this message]
2011-01-13 13:42 ` Mattias Wallin
2011-01-13 14:05 ` Samuel Ortiz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D01E46C.90301@stericsson.com \
--to=mattias.wallin@stericsson.com \
--cc=linus.walleij@stericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox