Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1311313
| From | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V2 5/6] rtc: max77xxx: add RTC driver for Maxim MAX77xxx series RTC IP |
| Date | 2016-01-18 05:30 +0100 |
| Message-ID | <qS9C2-3T1-15@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <qQlnY-2S1-27@gated-at.bofh.it> <qQvnk-1xE-23@gated-at.bofh.it> <qQEqC-7BF-5@gated-at.bofh.it> <qQETE-83s-17@gated-at.bofh.it> <qQR4t-8kt-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 14.01.2016 23:20, Mark Brown wrote: > On Thu, Jan 14, 2016 at 10:20:56AM +0900, Krzysztof Kozlowski wrote: > >> 2. It has different register address. >> We need a register-layout/configuration structure. The logic is the >> same except few differences (e.g. presence of MAX77802_RTC_AE1). > > Depending on what the differences are either just some variables in the > driver data that get set on probe with the different registers (if it's > just the register) or using regmap_field (if things get shifted as well, > or if it happens to make more sense) should work. Thanks for the hints! The addresses for registers are indeed shifted. It is non-linear because apart of different offset at beginning, a new field appears. Anyway it would be good for me (or other person doing this work) to get more knowledge of what regmap API provides. Best regards, Krzysztof
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH V2 5/6] rtc: max77xxx: add RTC driver for Maxim MAX77xxx series RTC IP Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-01-18 05:30 +0100
csiph-web