source: rtems/c/src/lib/libbsp/powerpc/dmv177/tod/config.c @ ee306fd

4.104.114.84.95
Last change on this file since ee306fd was ee306fd, checked in by Joel Sherrill <joel.sherrill@…>, on 07/29/98 at 00:17:01

Corrected to reflect the ICM7170 which is really on this board.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  This file contains the RTC driver table for the DY-4 DMV177.
3 *
4 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1997.
5 *  On-Line Applications Research Corporation (OAR).
6 *  All rights assigned to U.S. Government, 1994.
7 *
8 *  $Id$
9 */
10
11#include <bsp.h>
12
13#include <libchip/rtc.h>
14#include <libchip/icm7170.h>
15
16/*
17 * Configuration specific probe routines
18 *
19 * NOTE:  There are no DMV177 specific configuration routines.  These
20 *        routines could be written to dynamically determine what type
21 *        of real-time clock is on this board.  This would be useful for
22 *        a BSP supporting multiple board models.
23 */
24
25/* NONE CURRENTLY PROVIDED */
26
27/*
28 * The following table configures the RTC drivers used in this BSP.
29 *
30 * The first entry which, when probed, is available, will be named /dev/rtc,
31 * all others being given the name indicated.
32 */
33
34rtc_tbl RTC_Table[] = {
35        {
36                "/dev/rtc0",                    /* sDeviceName */
37                RTC_ICM7170,                    /* deviceType */
38                &icm7170_fns,                   /* pDeviceFns */
39                rtc_probe,                      /* deviceProbe */
40                (void *) ICM7170_AT_32_KHZ,     /* pDeviceParams */
41                DMV170_RTC_ADDRESS,             /* ulCtrlPort1 */
42                NULL,                           /* ulDataPort */
43                icm7170_get_register_4,         /* getRegister */
44                icm7170_set_register_4,         /* setRegister */
45        }
46};
47
48/*
49 *  Declare some information used by the RTC driver
50 */
51
52#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
53
54unsigned long  RTC_Count = NUM_RTCS;
55
56rtems_device_minor_number  RTC_Minor;
Note: See TracBrowser for help on using the repository browser.