rtc-pxa.c (3cdf4ad9633e3ca616617e76b46915c02cba426b) | rtc-pxa.c (90d0ae8e9583355725583e9d1ff0ebdc97936f39) |
---|---|
1/* 2 * Real Time Clock interface for XScale PXA27x and PXA3xx 3 * 4 * Copyright (C) 2008 Robert Jarzmik 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 342 unchanged lines hidden (view full) --- 351 pxa_rtc_open(dev); 352 pxa_rtc->base = devm_ioremap(dev, pxa_rtc->ress->start, 353 resource_size(pxa_rtc->ress)); 354 if (!pxa_rtc->base) { 355 dev_err(dev, "Unable to map pxa RTC I/O memory\n"); 356 return -ENOMEM; 357 } 358 | 1/* 2 * Real Time Clock interface for XScale PXA27x and PXA3xx 3 * 4 * Copyright (C) 2008 Robert Jarzmik 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 342 unchanged lines hidden (view full) --- 351 pxa_rtc_open(dev); 352 pxa_rtc->base = devm_ioremap(dev, pxa_rtc->ress->start, 353 resource_size(pxa_rtc->ress)); 354 if (!pxa_rtc->base) { 355 dev_err(dev, "Unable to map pxa RTC I/O memory\n"); 356 return -ENOMEM; 357 } 358 |
359 sa1100_rtc->rcnr = pxa_rtc->base + 0x0; 360 sa1100_rtc->rtsr = pxa_rtc->base + 0x8; 361 sa1100_rtc->rtar = pxa_rtc->base + 0x4; 362 sa1100_rtc->rttr = pxa_rtc->base + 0xc; |
|
359 ret = sa1100_rtc_init(pdev, sa1100_rtc); 360 if (!ret) { 361 dev_err(dev, "Unable to init SA1100 RTC sub-device\n"); 362 return ret; 363 } 364 365 rtsr_clear_bits(pxa_rtc, RTSR_PIALE | RTSR_RDALE1 | RTSR_HZE); 366 --- 66 unchanged lines hidden --- | 363 ret = sa1100_rtc_init(pdev, sa1100_rtc); 364 if (!ret) { 365 dev_err(dev, "Unable to init SA1100 RTC sub-device\n"); 366 return ret; 367 } 368 369 rtsr_clear_bits(pxa_rtc, RTSR_PIALE | RTSR_RDALE1 | RTSR_HZE); 370 --- 66 unchanged lines hidden --- |