source: rtems/c/src/lib/libbsp/powerpc/qoriq/rtc/rtc-config.c @ dc0a7df

4.115
Last change on this file since dc0a7df was dc0a7df, checked in by Sebastian Huber <sebastian.huber@…>, on 07/21/11 at 15:18:02

2011-07-21 Sebastian Huber <sebastian.huber@…>

PR 1799/bsps

  • .cvsignore, ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, clock/clock-config.c, console/console-config.c, console/uart-bridge-master.c, console/uart-bridge-slave.c, include/.cvsignore, include/bsp.h, include/hwreg_vals.h, include/intercom.h, include/irq.h, include/mmu.h, include/qoriq.h, include/tm27.h, include/tsec-config.h, include/u-boot-config.h, include/uart-bridge.h, irq/irq.c, make/custom/qoriq.inc, make/custom/qoriq_core_0.cfg, make/custom/qoriq_core_1.cfg, make/custom/qoriq_p1020rdb.cfg, network/if_intercom.c, network/network.c, rtc/rtc-config.c, shmsupp/intercom-mpci.c, shmsupp/intercom.c, shmsupp/lock.S, start/start.S, startup/bsppredriverhook.c, startup/bspreset.c, startup/bspstart.c, startup/linkcmds.base, startup/linkcmds.qoriq_core_0, startup/linkcmds.qoriq_core_1, startup/linkcmds.qoriq_p1020rdb, startup/mmu-config.c, startup/mmu-tlb1.S, startup/mmu.c: New files.
  • Property mode set to 100644
File size: 1.3 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.com/license/LICENSE.
21 *
22 * $Id$
23 */
24
25#include <libchip/rtc.h>
26
27#define RTC_COUNT 1
28
29static void qoriq_rtc_initialize(int minor)
30{
31  /* FIXME */
32}
33
34static int qoriq_rtc_get_time(int minor, rtems_time_of_day *tod)
35{
36  return -1;
37}
38
39static int qoriq_rtc_set_time(int minor, const rtems_time_of_day *tod)
40{
41  return -1;
42}
43
44static bool qoriq_rtc_probe(int minor)
45{
46  return false;
47}
48
49const rtc_fns qoriq_rtc_ops = {
50  .deviceInitialize = qoriq_rtc_initialize,
51  .deviceGetTime = qoriq_rtc_get_time,
52  .deviceSetTime = qoriq_rtc_set_time
53};
54
55size_t RTC_Count = RTC_COUNT;
56
57rtems_device_minor_number RTC_Minor = 0;
58
59rtc_tbl RTC_Table [RTC_COUNT] = {
60  {
61    .sDeviceName = "/dev/rtc",
62    .deviceType = RTC_CUSTOM,
63    .pDeviceFns = &qoriq_rtc_ops,
64    .deviceProbe = qoriq_rtc_probe,
65    .pDeviceParams = NULL,
66    .ulCtrlPort1 = 0,
67    .ulDataPort = 0,
68    .getRegister = NULL,
69    .setRegister = NULL
70  }
71};
Note: See TracBrowser for help on using the repository browser.