rtc-at91sam9.c (f838bad1b3be8ca0c785ee0e0c570dfda74cf377) | rtc-at91sam9.c (2a4e2b8780c6df42b19c053243dada7fa4d311ee) |
---|---|
1/* 2 * "RTT as Real Time Clock" driver for AT91SAM9 SoC family 3 * 4 * (C) 2007 Michel Benoit 5 * 6 * Based on rtc-at91rm9200.c by Rick Bronson 7 * 8 * This program is free software; you can redistribute it and/or --- 274 unchanged lines hidden (view full) --- 283 events |= (RTC_AF | RTC_IRQF); 284 285 /* timer update/increment */ 286 if (sr & AT91_RTT_RTTINC) 287 events |= (RTC_UF | RTC_IRQF); 288 289 rtc_update_irq(rtc->rtcdev, 1, events); 290 | 1/* 2 * "RTT as Real Time Clock" driver for AT91SAM9 SoC family 3 * 4 * (C) 2007 Michel Benoit 5 * 6 * Based on rtc-at91rm9200.c by Rick Bronson 7 * 8 * This program is free software; you can redistribute it and/or --- 274 unchanged lines hidden (view full) --- 283 events |= (RTC_AF | RTC_IRQF); 284 285 /* timer update/increment */ 286 if (sr & AT91_RTT_RTTINC) 287 events |= (RTC_UF | RTC_IRQF); 288 289 rtc_update_irq(rtc->rtcdev, 1, events); 290 |
291 pr_debug("%s: num=%ld, events=0x%02lx\n", __FUNCTION__, | 291 pr_debug("%s: num=%ld, events=0x%02lx\n", __func__, |
292 events >> 8, events & 0x000000FF); 293 294 return IRQ_HANDLED; 295} 296 297static const struct rtc_class_ops at91_rtc_ops = { 298 .ioctl = at91_rtc_ioctl, 299 .read_time = at91_rtc_readtime, --- 225 unchanged lines hidden --- | 292 events >> 8, events & 0x000000FF); 293 294 return IRQ_HANDLED; 295} 296 297static const struct rtc_class_ops at91_rtc_ops = { 298 .ioctl = at91_rtc_ioctl, 299 .read_time = at91_rtc_readtime, --- 225 unchanged lines hidden --- |