source: rtems/bsps/powerpc/qoriq/rtc/rtc-config.c @ 762fa62

5
Last change on this file since 762fa62 was 4fb1b79, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 23, 2018 at 7:55:15 AM

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
27static void qoriq_rtc_initialize(int minor)
28{
29  /* FIXME */
30}
31
32static int qoriq_rtc_get_time(int minor, rtems_time_of_day *tod)
33{
34  return -1;
35}
36
37static int qoriq_rtc_set_time(int minor, const rtems_time_of_day *tod)
38{
39  return -1;
40}
41
42static bool qoriq_rtc_probe(int minor)
43{
44  return false;
45}
46
47const rtc_fns qoriq_rtc_ops = {
48  .deviceInitialize = qoriq_rtc_initialize,
49  .deviceGetTime = qoriq_rtc_get_time,
50  .deviceSetTime = qoriq_rtc_set_time
51};
52
53size_t RTC_Count = RTC_COUNT;
54
55rtc_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.