source: rtems/c/src/lib/libbsp/powerpc/shared/tod/todcfg.c @ a84392d

4.104.114.84.95
Last change on this file since a84392d was e79a1947, checked in by Joel Sherrill <joel.sherrill@…>, on 11/10/04 at 23:51:17

2004-11-10 Richard Campbell <richard.campbell@…>

  • Makefile.am, bootloader/misc.c, bootloader/pci.c, bootloader/pci.h, console/console.c, console/inch.c, console/reboot.c, console/uart.c, console/uart.h, irq/irq.c, irq/irq.h, irq/irq_init.c, motorola/motorola.c, motorola/motorola.h, openpic/openpic.c, openpic/openpic.h, pci/detect_raven_bridge.c, pci/pci.c, start/start.S, startup/bspstart.c, vectors/vectors_init.c, vme/vmeconfig.c: Add MVME2100 BSP and MPC8240 support. There was also a significant amount of spelling and whitespace cleanup.
  • tod/todcfg.c: New file.
  • Property mode set to 100644
File size: 1.8 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.com/license/LICENSE.
7 *
8 * $Id$
9 */
10
11#include <bsp.h>
12#include <libchip/rtc.h>
13#include <libchip/m48t08.h>
14
15/* Forward function declaration */
16#if !defined(mvme2100)
17unsigned32 mvmertc_get_register( unsigned32, unsigned8 );
18void mvmertc_set_register( unsigned32, unsigned8, unsigned32 );
19#endif
20
21/* The following table configures the RTC drivers used in this BSP */
22rtc_tbl RTC_Table[] = {
23    {
24        "/dev/rtc",                /* sDeviceName */
25        RTC_M48T08,                /* deviceType  -- actually M48T59 */
26        &m48t08_fns,               /* pDeviceFns */
27        rtc_probe,                 /* deviceProbe */
28        NULL,                      /* pDeviceParams */
29#if defined(mvme2100)
30        0xFFE81ff8,                /* ulCtrlPort1 */
31        0x00,                      /* ulDataPort */
32        m48t08_get_register,       /* getRegister */
33        m48t08_set_register        /* setRegister */
34#else
35        0xFFE81ff8,                /* ulCtrlPort1 */
36        0x00,                      /* ulDataPort */
37        mvmertc_get_register,      /* getRegister */
38        mvmertc_set_register       /* setRegister */
39#endif
40    }
41};
42
43/* Some information used by the RTC driver */
44
45#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
46
47unsigned long RTC_Count = NUM_RTCS;
48
49rtems_device_minor_number RTC_Minor;
50
51#if !defined(mvme2100)
52#include <rtems/bspIo.h>
53void mvmertc_set_register(
54  unsigned32 base,
55  unsigned8  reg,
56  unsigned32 value
57)
58{
59  printk( "RTC SUPPORT NOT IMPLEMENTED ON THIS BOARD\n");
60}
61
62unsigned32 mvmertc_get_register(
63  unsigned32 base,
64  unsigned8  reg
65)
66{
67  printk( "RTC SUPPORT NOT IMPLEMENTED ON THIS BOARD\n");
68}
69#endif
Note: See TracBrowser for help on using the repository browser.