5
Last change
on this file since 762fa62 was
4fb1b79,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/23/18 at 07:55:15
|
bsps: Move RTC drivers to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup QorIQ |
---|
5 | * |
---|
6 | * @brief RTC configuration. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2010 embedded brains GmbH. All rights reserved. |
---|
11 | * |
---|
12 | * embedded brains GmbH |
---|
13 | * Obere Lagerstr. 30 |
---|
14 | * 82178 Puchheim |
---|
15 | * Germany |
---|
16 | * <rtems@embedded-brains.de> |
---|
17 | * |
---|
18 | * The license and distribution terms for this file may be |
---|
19 | * found in the file LICENSE in this distribution or at |
---|
20 | * http://www.rtems.org/license/LICENSE. |
---|
21 | */ |
---|
22 | |
---|
23 | #include <libchip/rtc.h> |
---|
24 | |
---|
25 | #define RTC_COUNT 1 |
---|
26 | |
---|
27 | static void qoriq_rtc_initialize(int minor) |
---|
28 | { |
---|
29 | /* FIXME */ |
---|
30 | } |
---|
31 | |
---|
32 | static int qoriq_rtc_get_time(int minor, rtems_time_of_day *tod) |
---|
33 | { |
---|
34 | return -1; |
---|
35 | } |
---|
36 | |
---|
37 | static int qoriq_rtc_set_time(int minor, const rtems_time_of_day *tod) |
---|
38 | { |
---|
39 | return -1; |
---|
40 | } |
---|
41 | |
---|
42 | static bool qoriq_rtc_probe(int minor) |
---|
43 | { |
---|
44 | return false; |
---|
45 | } |
---|
46 | |
---|
47 | const rtc_fns qoriq_rtc_ops = { |
---|
48 | .deviceInitialize = qoriq_rtc_initialize, |
---|
49 | .deviceGetTime = qoriq_rtc_get_time, |
---|
50 | .deviceSetTime = qoriq_rtc_set_time |
---|
51 | }; |
---|
52 | |
---|
53 | size_t RTC_Count = RTC_COUNT; |
---|
54 | |
---|
55 | rtc_tbl RTC_Table [RTC_COUNT] = { |
---|
56 | { |
---|
57 | .sDeviceName = "/dev/rtc", |
---|
58 | .deviceType = RTC_CUSTOM, |
---|
59 | .pDeviceFns = &qoriq_rtc_ops, |
---|
60 | .deviceProbe = qoriq_rtc_probe, |
---|
61 | .pDeviceParams = NULL, |
---|
62 | .ulCtrlPort1 = 0, |
---|
63 | .ulDataPort = 0, |
---|
64 | .getRegister = NULL, |
---|
65 | .setRegister = NULL |
---|
66 | } |
---|
67 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.