1 From 7e7944c484954ff7b5d53047194e59bfffd1540a Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Mon, 25 Sep 2017 12:20:55 +0800
4 Subject: [PATCH] rtc: support layerscape
6 This is a integrated patch for layerscape rtc support.
8 Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
9 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
11 drivers/rtc/rtc-pcf85263.c | 665 +++++++++++++++++++++++++++++++++++++++++++++
12 1 file changed, 665 insertions(+)
13 create mode 100644 drivers/rtc/rtc-pcf85263.c
16 +++ b/drivers/rtc/rtc-pcf85263.c
19 + * rtc-pcf85263 Driver for the NXP PCF85263 RTC
20 + * Copyright 2016 Parkeon
22 + * This program is free software; you can redistribute it and/or modify
23 + * it under the terms of the GNU General Public License version 2 as
24 + * published by the Free Software Foundation.
27 +#include <linux/module.h>
28 +#include <linux/mutex.h>
29 +#include <linux/rtc.h>
30 +#include <linux/i2c.h>
31 +#include <linux/bcd.h>
32 +#include <linux/of.h>
33 +#include <linux/of_device.h>
34 +#include <linux/regmap.h>
37 +#define DRV_NAME "rtc-pcf85263"
39 +/* Quartz capacitance */
40 +#define PCF85263_QUARTZCAP_7pF 0
41 +#define PCF85263_QUARTZCAP_6pF 1
42 +#define PCF85263_QUARTZCAP_12p5pF 2
44 +/* Quartz drive strength */
45 +#define PCF85263_QUARTZDRIVE_NORMAL 0
46 +#define PCF85263_QUARTZDRIVE_LOW 1
47 +#define PCF85263_QUARTZDRIVE_HIGH 2
50 +#define PCF85263_REG_RTC_SC 0x01 /* Seconds */
51 +#define PCF85263_REG_RTC_SC_OS BIT(7) /* Oscilator stopped flag */
53 +#define PCF85263_REG_RTC_MN 0x02 /* Minutes */
54 +#define PCF85263_REG_RTC_HR 0x03 /* Hours */
55 +#define PCF85263_REG_RTC_DT 0x04 /* Day of month 1-31 */
56 +#define PCF85263_REG_RTC_DW 0x05 /* Day of week 0-6 */
57 +#define PCF85263_REG_RTC_MO 0x06 /* Month 1-12 */
58 +#define PCF85263_REG_RTC_YR 0x07 /* Year 0-99 */
60 +#define PCF85263_REG_ALM1_SC 0x08 /* Seconds */
61 +#define PCF85263_REG_ALM1_MN 0x09 /* Minutes */
62 +#define PCF85263_REG_ALM1_HR 0x0a /* Hours */
63 +#define PCF85263_REG_ALM1_DT 0x0b /* Day of month 1-31 */
64 +#define PCF85263_REG_ALM1_MO 0x0c /* Month 1-12 */
66 +#define PCF85263_REG_ALM_CTL 0x10
67 +#define PCF85263_REG_ALM_CTL_ALL_A1E 0x1f /* sec,min,hr,day,mon alarm 1 */
69 +#define PCF85263_REG_OSC 0x25
70 +#define PCF85263_REG_OSC_CL_MASK (BIT(0) | BIT(1))
71 +#define PCF85263_REG_OSC_CL_SHIFT 0
72 +#define PCF85263_REG_OSC_OSCD_MASK (BIT(2) | BIT(3))
73 +#define PCF85263_REG_OSC_OSCD_SHIFT 2
74 +#define PCF85263_REG_OSC_LOWJ BIT(4)
75 +#define PCF85263_REG_OSC_12H BIT(5)
77 +#define PCF85263_REG_PINIO 0x27
78 +#define PCF85263_REG_PINIO_INTAPM_MASK (BIT(0) | BIT(1))
79 +#define PCF85263_REG_PINIO_INTAPM_SHIFT 0
80 +#define PCF85263_INTAPM_INTA (0x2 << PCF85263_REG_PINIO_INTAPM_SHIFT)
81 +#define PCF85263_INTAPM_HIGHZ (0x3 << PCF85263_REG_PINIO_INTAPM_SHIFT)
82 +#define PCF85263_REG_PINIO_TSPM_MASK (BIT(2) | BIT(3))
83 +#define PCF85263_REG_PINIO_TSPM_SHIFT 2
84 +#define PCF85263_TSPM_DISABLED (0x0 << PCF85263_REG_PINIO_TSPM_SHIFT)
85 +#define PCF85263_TSPM_INTB (0x1 << PCF85263_REG_PINIO_TSPM_SHIFT)
86 +#define PCF85263_REG_PINIO_CLKDISABLE BIT(7)
88 +#define PCF85263_REG_FUNCTION 0x28
89 +#define PCF85263_REG_FUNCTION_COF_MASK 0x7
90 +#define PCF85263_REG_FUNCTION_COF_OFF 0x7 /* No clock output */
92 +#define PCF85263_REG_INTA_CTL 0x29
93 +#define PCF85263_REG_INTB_CTL 0x2A
94 +#define PCF85263_REG_INTx_CTL_A1E BIT(4) /* Alarm 1 */
95 +#define PCF85263_REG_INTx_CTL_ILP BIT(7) /* 0=pulse, 1=level */
97 +#define PCF85263_REG_FLAGS 0x2B
98 +#define PCF85263_REG_FLAGS_A1F BIT(5)
100 +#define PCF85263_REG_RAM_BYTE 0x2c
102 +#define PCF85263_REG_STOPENABLE 0x2e
103 +#define PCF85263_REG_STOPENABLE_STOP BIT(0)
105 +#define PCF85263_REG_RESET 0x2f /* Reset command */
106 +#define PCF85263_REG_RESET_CMD_CPR 0xa4 /* Clear prescaler */
108 +#define PCF85263_MAX_REG 0x2f
110 +#define PCF85263_HR_PM BIT(5)
112 +enum pcf85263_irqpin {
113 + PCF85263_IRQPIN_NONE,
114 + PCF85263_IRQPIN_INTA,
115 + PCF85263_IRQPIN_INTB
118 +static const char *const pcf85263_irqpin_names[] = {
119 + [PCF85263_IRQPIN_NONE] = "None",
120 + [PCF85263_IRQPIN_INTA] = "INTA",
121 + [PCF85263_IRQPIN_INTB] = "INTB"
125 + struct device *dev;
126 + struct rtc_device *rtc;
127 + struct regmap *regmap;
128 + enum pcf85263_irqpin irq_pin;
134 + * Helpers to convert 12h to 24h and vice versa.
135 + * Values in register are stored in BCD with a PM flag in bit 5
137 + * 23:00 <=> 11PM <=> 0x31
138 + * 00:00 <=> 12AM <=> 0x12
139 + * 01:00 <=> 1AM <=> 0x01
140 + * 12:00 <=> 12PM <=> 0x32
141 + * 13:00 <=> 1PM <=> 0x21
143 +static int pcf85263_bcd12h_to_bin24h(int regval)
145 + int hr = bcd2bin(regval & 0x1f);
146 + bool pm = regval & PCF85263_HR_PM;
149 + return pm ? 12 : 0;
151 + return pm ? hr + 12 : hr;
154 +static int pcf85263_bin24h_to_bcd12h(int hr24)
156 + bool pm = hr24 >= 12;
157 + int hr12 = hr24 % 12;
162 + return bin2bcd(hr12) | pm ? 0 : PCF85263_HR_PM;
165 +static int pcf85263_read_time(struct device *dev, struct rtc_time *tm)
167 + struct pcf85263 *pcf85263 = dev_get_drvdata(dev);
168 + const int first = PCF85263_REG_RTC_SC;
169 + const int last = PCF85263_REG_RTC_YR;
170 + const int len = last - first + 1;
175 + ret = regmap_bulk_read(pcf85263->regmap, first, regs, len);
179 + if (regs[PCF85263_REG_RTC_SC - first] & PCF85263_REG_RTC_SC_OS) {
180 + dev_warn(dev, "Oscillator stop detected, date/time is not reliable.\n");
184 + tm->tm_sec = bcd2bin(regs[PCF85263_REG_RTC_SC - first] & 0x7f);
185 + tm->tm_min = bcd2bin(regs[PCF85263_REG_RTC_MN - first] & 0x7f);
187 + hr_reg = regs[PCF85263_REG_RTC_HR - first];
188 + if (pcf85263->mode_12h)
189 + tm->tm_hour = pcf85263_bcd12h_to_bin24h(hr_reg);
191 + tm->tm_hour = bcd2bin(hr_reg & 0x3f);
193 + tm->tm_mday = bcd2bin(regs[PCF85263_REG_RTC_DT - first]);
194 + tm->tm_wday = bcd2bin(regs[PCF85263_REG_RTC_DW - first]);
195 + tm->tm_mon = bcd2bin(regs[PCF85263_REG_RTC_MO - first]) - 1;
196 + tm->tm_year = bcd2bin(regs[PCF85263_REG_RTC_YR - first]);
198 + tm->tm_year += 100; /* Assume 21st century */
203 +static int pcf85263_set_time(struct device *dev, struct rtc_time *tm)
205 + struct pcf85263 *pcf85263 = dev_get_drvdata(dev);
208 + * Before setting time need to stop RTC and disable prescaler
209 + * Do this all in a single I2C transaction exploiting wraparound
210 + * as described in data sheet.
211 + * This means that the array below must be in register order
214 + PCF85263_REG_STOPENABLE_STOP, /* STOP */
215 + PCF85263_REG_RESET_CMD_CPR, /* Disable prescaler */
216 + /* Wrap around to register 0 (1/100s) */
217 + 0, /* 1/100s always zero. */
218 + bin2bcd(tm->tm_sec),
219 + bin2bcd(tm->tm_min),
220 + bin2bcd(tm->tm_hour), /* 24-hour */
221 + bin2bcd(tm->tm_mday),
222 + bin2bcd(tm->tm_wday + 1),
223 + bin2bcd(tm->tm_mon + 1),
224 + bin2bcd(tm->tm_year % 100)
228 + ret = regmap_bulk_write(pcf85263->regmap, PCF85263_REG_STOPENABLE,
229 + regs, sizeof(regs));
233 + /* As we have set the time in 24H update the hardware for that */
234 + if (pcf85263->mode_12h) {
235 + pcf85263->mode_12h = false;
236 + ret = regmap_update_bits(pcf85263->regmap, PCF85263_REG_OSC,
237 + PCF85263_REG_OSC_12H, 0);
242 + /* Start it again */
243 + return regmap_write(pcf85263->regmap, PCF85263_REG_STOPENABLE, 0);
246 +static int pcf85263_enable_alarm(struct pcf85263 *pcf85263, bool enable)
251 + ret = regmap_update_bits(pcf85263->regmap, PCF85263_REG_ALM_CTL,
252 + PCF85263_REG_ALM_CTL_ALL_A1E,
253 + enable ? PCF85263_REG_ALM_CTL_ALL_A1E : 0);
257 + switch (pcf85263->irq_pin) {
258 + case PCF85263_IRQPIN_NONE:
261 + case PCF85263_IRQPIN_INTA:
262 + reg = PCF85263_REG_INTA_CTL;
265 + case PCF85263_IRQPIN_INTB:
266 + reg = PCF85263_REG_INTB_CTL;
273 + return regmap_update_bits(pcf85263->regmap, reg,
274 + PCF85263_REG_INTx_CTL_A1E,
275 + enable ? PCF85263_REG_INTx_CTL_A1E : 0);
278 +static int pcf85263_read_alarm(struct device *dev, struct rtc_wkalrm *alarm)
280 + struct pcf85263 *pcf85263 = dev_get_drvdata(dev);
281 + struct rtc_time *tm = &alarm->time;
282 + const int first = PCF85263_REG_ALM1_SC;
283 + const int last = PCF85263_REG_ALM1_MO;
284 + const int len = last - first + 1;
287 + unsigned int regval;
290 + ret = regmap_bulk_read(pcf85263->regmap, first, regs, len);
294 + tm->tm_sec = bcd2bin(regs[PCF85263_REG_ALM1_SC - first] & 0x7f);
295 + tm->tm_min = bcd2bin(regs[PCF85263_REG_ALM1_MN - first] & 0x7f);
297 + hr_reg = regs[PCF85263_REG_ALM1_HR - first];
298 + if (pcf85263->mode_12h)
299 + tm->tm_hour = pcf85263_bcd12h_to_bin24h(hr_reg);
301 + tm->tm_hour = bcd2bin(hr_reg & 0x3f);
303 + tm->tm_mday = bcd2bin(regs[PCF85263_REG_ALM1_DT - first]);
304 + tm->tm_mon = bcd2bin(regs[PCF85263_REG_ALM1_MO - first]) - 1;
308 + ret = regmap_read(pcf85263->regmap, PCF85263_REG_ALM_CTL, ®val);
311 + alarm->enabled = !!(regval & PCF85263_REG_ALM_CTL_ALL_A1E);
313 + ret = regmap_read(pcf85263->regmap, PCF85263_REG_FLAGS, ®val);
316 + alarm->pending = !!(regval & PCF85263_REG_FLAGS_A1F);
321 +static int pcf85263_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
323 + struct pcf85263 *pcf85263 = dev_get_drvdata(dev);
324 + struct rtc_time *tm = &alarm->time;
325 + const int first = PCF85263_REG_ALM1_SC;
326 + const int last = PCF85263_REG_ALM1_MO;
327 + const int len = last - first + 1;
331 + /* Disable alarm comparison during update */
332 + ret = pcf85263_enable_alarm(pcf85263, false);
336 + /* Clear any pending alarm (write 0=>clr, 1=>no change) */
337 + ret = regmap_write(pcf85263->regmap, PCF85263_REG_FLAGS,
338 + (unsigned int)(~PCF85263_REG_FLAGS_A1F));
342 + /* Set the alarm time registers */
343 + regs[PCF85263_REG_ALM1_SC - first] = bin2bcd(tm->tm_sec);
344 + regs[PCF85263_REG_ALM1_MN - first] = bin2bcd(tm->tm_min);
345 + regs[PCF85263_REG_ALM1_HR - first] = pcf85263->mode_12h ?
346 + pcf85263_bin24h_to_bcd12h(tm->tm_hour) :
347 + bin2bcd(tm->tm_hour);
348 + regs[PCF85263_REG_ALM1_DT - first] = bin2bcd(tm->tm_mday);
349 + regs[PCF85263_REG_ALM1_MO - first] = bin2bcd(tm->tm_mon + 1);
351 + ret = regmap_bulk_write(pcf85263->regmap, first, regs, sizeof(regs));
355 + if (alarm->enabled)
356 + ret = pcf85263_enable_alarm(pcf85263, true);
361 +static int pcf85263_alarm_irq_enable(struct device *dev, unsigned int enable)
363 + struct pcf85263 *pcf85263 = dev_get_drvdata(dev);
365 + return pcf85263_enable_alarm(pcf85263, !!enable);
368 +static irqreturn_t pcf85263_irq(int irq, void *data)
370 + struct pcf85263 *pcf85263 = data;
371 + unsigned int regval;
374 + ret = regmap_read(pcf85263->regmap, PCF85263_REG_FLAGS, ®val);
378 + if (regval & PCF85263_REG_FLAGS_A1F) {
379 + regmap_write(pcf85263->regmap, PCF85263_REG_FLAGS,
380 + (unsigned int)(~PCF85263_REG_FLAGS_A1F));
382 + rtc_update_irq(pcf85263->rtc, 1, RTC_IRQF | RTC_AF);
384 + return IRQ_HANDLED;
390 +static int pcf85263_check_osc_stopped(struct pcf85263 *pcf85263)
392 + unsigned int regval;
395 + ret = regmap_read(pcf85263->regmap, PCF85263_REG_RTC_SC, ®val);
399 + ret = regval & PCF85263_REG_RTC_SC_OS ? 1 : 0;
401 + dev_warn(pcf85263->dev, "Oscillator stop detected, date/time is not reliable.\n");
406 +#ifdef CONFIG_RTC_INTF_DEV
407 +static int pcf85263_ioctl(struct device *dev,
408 + unsigned int cmd, unsigned long arg)
410 + struct pcf85263 *pcf85263 = dev_get_drvdata(dev);
415 + ret = pcf85263_check_osc_stopped(pcf85263);
419 + if (copy_to_user((void __user *)arg, &ret, sizeof(int)))
424 + return regmap_update_bits(pcf85263->regmap,
425 + PCF85263_REG_RTC_SC,
426 + PCF85263_REG_RTC_SC_OS, 0);
428 + return -ENOIOCTLCMD;
432 +#define pcf85263_ioctl NULL
435 +static int pcf85263_init_hw(struct pcf85263 *pcf85263)
437 + struct device_node *np = pcf85263->dev->of_node;
438 + unsigned int regval;
442 + /* Determine if oscilator has been stopped (probably low power) */
443 + ret = pcf85263_check_osc_stopped(pcf85263);
445 + /* Log here since this is the first hw access on probe */
446 + dev_err(pcf85263->dev, "Unable to read register\n");
451 + /* Determine 12/24H mode */
452 + ret = regmap_read(pcf85263->regmap, PCF85263_REG_OSC, ®val);
455 + pcf85263->mode_12h = !!(regval & PCF85263_REG_OSC_12H);
457 + /* Set oscilator register */
458 + regval &= ~PCF85263_REG_OSC_12H; /* keep current 12/24 h setting */
460 + propval = PCF85263_QUARTZCAP_12p5pF;
461 + of_property_read_u32(np, "quartz-load-capacitance", &propval);
462 + regval |= ((propval << PCF85263_REG_OSC_CL_SHIFT)
463 + & PCF85263_REG_OSC_CL_MASK);
465 + propval = PCF85263_QUARTZDRIVE_NORMAL;
466 + of_property_read_u32(np, "quartz-drive-strength", &propval);
467 + regval |= ((propval << PCF85263_REG_OSC_OSCD_SHIFT)
468 + & PCF85263_REG_OSC_OSCD_MASK);
470 + if (of_property_read_bool(np, "quartz-low-jitter"))
471 + regval |= PCF85263_REG_OSC_LOWJ;
473 + ret = regmap_write(pcf85263->regmap, PCF85263_REG_OSC, regval);
477 + /* Set function register (RTC mode, 1s tick, clock output static) */
478 + ret = regmap_write(pcf85263->regmap, PCF85263_REG_FUNCTION,
479 + PCF85263_REG_FUNCTION_COF_OFF);
483 + /* Set all interrupts to disabled, level mode */
484 + ret = regmap_write(pcf85263->regmap, PCF85263_REG_INTA_CTL,
485 + PCF85263_REG_INTx_CTL_ILP);
488 + ret = regmap_write(pcf85263->regmap, PCF85263_REG_INTB_CTL,
489 + PCF85263_REG_INTx_CTL_ILP);
493 + /* Setup IO pin config register */
494 + regval = PCF85263_REG_PINIO_CLKDISABLE;
495 + switch (pcf85263->irq_pin) {
496 + case PCF85263_IRQPIN_INTA:
497 + regval |= (PCF85263_INTAPM_INTA | PCF85263_TSPM_DISABLED);
499 + case PCF85263_IRQPIN_INTB:
500 + regval |= (PCF85263_INTAPM_HIGHZ | PCF85263_TSPM_INTB);
502 + case PCF85263_IRQPIN_NONE:
503 + regval |= (PCF85263_INTAPM_HIGHZ | PCF85263_TSPM_DISABLED);
506 + ret = regmap_write(pcf85263->regmap, PCF85263_REG_PINIO, regval);
511 +static const struct rtc_class_ops rtc_ops = {
512 + .ioctl = pcf85263_ioctl,
513 + .read_time = pcf85263_read_time,
514 + .set_time = pcf85263_set_time,
515 + .read_alarm = pcf85263_read_alarm,
516 + .set_alarm = pcf85263_set_alarm,
517 + .alarm_irq_enable = pcf85263_alarm_irq_enable,
520 +static const struct regmap_config pcf85263_regmap_cfg = {
523 + .max_register = PCF85263_MAX_REG,
527 + * On some boards the interrupt line may not be wired to the CPU but only to
528 + * a power supply circuit.
529 + * In that case no interrupt will be specified in the device tree but the
530 + * wakeup-source DT property may be used to enable wakeup programming in
533 +static bool pcf85263_can_wakeup_machine(struct pcf85263 *pcf85263)
535 + return pcf85263->irq ||
536 + of_property_read_bool(pcf85263->dev->of_node, "wakeup-source");
539 +static int pcf85263_probe(struct i2c_client *client,
540 + const struct i2c_device_id *id)
542 + struct device *dev = &client->dev;
543 + struct pcf85263 *pcf85263;
546 + if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C |
547 + I2C_FUNC_SMBUS_BYTE_DATA |
548 + I2C_FUNC_SMBUS_I2C_BLOCK))
551 + pcf85263 = devm_kzalloc(dev, sizeof(*pcf85263), GFP_KERNEL);
555 + pcf85263->dev = dev;
556 + pcf85263->irq = client->irq;
557 + dev_set_drvdata(dev, pcf85263);
559 + pcf85263->regmap = devm_regmap_init_i2c(client, &pcf85263_regmap_cfg);
560 + if (IS_ERR(pcf85263->regmap)) {
561 + ret = PTR_ERR(pcf85263->regmap);
562 + dev_err(dev, "regmap allocation failed (%d)\n", ret);
567 + /* Determine which interrupt pin the board uses */
568 + if (pcf85263_can_wakeup_machine(pcf85263)) {
569 + if (of_property_match_string(dev->of_node,
570 + "interrupt-names", "INTB") >= 0)
571 + pcf85263->irq_pin = PCF85263_IRQPIN_INTB;
573 + pcf85263->irq_pin = PCF85263_IRQPIN_INTA;
575 + pcf85263->irq_pin = PCF85263_IRQPIN_NONE;
578 + ret = pcf85263_init_hw(pcf85263);
582 + if (pcf85263->irq) {
583 + ret = devm_request_threaded_irq(dev, pcf85263->irq, NULL,
586 + dev->driver->name, pcf85263);
588 + dev_err(dev, "irq %d unavailable (%d)\n",
589 + pcf85263->irq, ret);
594 + if (pcf85263_can_wakeup_machine(pcf85263))
595 + device_init_wakeup(dev, true);
597 + pcf85263->rtc = devm_rtc_device_register(dev, dev->driver->name,
598 + &rtc_ops, THIS_MODULE);
599 + ret = PTR_ERR_OR_ZERO(pcf85263->rtc);
603 + /* We cannot support UIE mode if we do not have an IRQ line */
604 + if (!pcf85263->irq)
605 + pcf85263->rtc->uie_unsupported = 1;
607 + dev_info(pcf85263->dev,
608 + "PCF85263 RTC (irqpin=%s irq=%d)\n",
609 + pcf85263_irqpin_names[pcf85263->irq_pin],
615 +static int pcf85263_remove(struct i2c_client *client)
617 + struct pcf85263 *pcf85263 = i2c_get_clientdata(client);
619 + if (pcf85263_can_wakeup_machine(pcf85263))
620 + device_init_wakeup(pcf85263->dev, false);
625 +#ifdef CONFIG_PM_SLEEP
626 +static int pcf85263_suspend(struct device *dev)
628 + struct pcf85263 *pcf85263 = dev_get_drvdata(dev);
631 + if (device_may_wakeup(dev))
632 + ret = enable_irq_wake(pcf85263->irq);
637 +static int pcf85263_resume(struct device *dev)
639 + struct pcf85263 *pcf85263 = dev_get_drvdata(dev);
642 + if (device_may_wakeup(dev))
643 + ret = disable_irq_wake(pcf85263->irq);
650 +static const struct i2c_device_id pcf85263_id[] = {
654 +MODULE_DEVICE_TABLE(i2c, pcf85263_id);
657 +static const struct of_device_id pcf85263_of_match[] = {
658 + { .compatible = "nxp,pcf85263" },
661 +MODULE_DEVICE_TABLE(of, pcf85263_of_match);
664 +static SIMPLE_DEV_PM_OPS(pcf85263_pm_ops, pcf85263_suspend, pcf85263_resume);
666 +static struct i2c_driver pcf85263_driver = {
668 + .name = "rtc-pcf85263",
669 + .of_match_table = of_match_ptr(pcf85263_of_match),
670 + .pm = &pcf85263_pm_ops,
672 + .probe = pcf85263_probe,
673 + .remove = pcf85263_remove,
674 + .id_table = pcf85263_id,
677 +module_i2c_driver(pcf85263_driver);
679 +MODULE_AUTHOR("Martin Fuzzey <mfuzzey@parkeon.com>");
680 +MODULE_DESCRIPTION("PCF85263 RTC Driver");
681 +MODULE_LICENSE("GPL");