5
Last change
on this file since 58adad4 was
7632906,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/18 at 04:35:52
|
bsps: Move clock drivers to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * This file contains the RTC driver table for Motorola shared BSPs. |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #include <bsp.h> |
---|
10 | #include <libchip/rtc.h> |
---|
11 | #include <libchip/mc146818a.h> |
---|
12 | |
---|
13 | /* The following table configures the RTC drivers used in this BSP */ |
---|
14 | rtc_tbl RTC_Table[] = { |
---|
15 | { |
---|
16 | "/dev/rtc", /* sDeviceName */ |
---|
17 | RTC_MC146818A, /* deviceType */ |
---|
18 | &mc146818a_fns, /* pDeviceFns */ |
---|
19 | mc146818a_probe, /* deviceProbe */ |
---|
20 | NULL, /* pDeviceParams */ |
---|
21 | 0x70, /* ulCtrlPort1 */ |
---|
22 | 0x00, /* ulDataPort */ |
---|
23 | mc146818a_get_register, /* getRegister */ |
---|
24 | mc146818a_set_register /* setRegister */ |
---|
25 | } |
---|
26 | }; |
---|
27 | |
---|
28 | /* Some information used by the RTC driver */ |
---|
29 | |
---|
30 | #define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl)) |
---|
31 | |
---|
32 | size_t RTC_Count = NUM_RTCS; |
---|
Note: See
TracBrowser
for help on using the repository browser.