source: rtems/bsps/powerpc/beatnik/rtc/todcfg.c @ a2aec0b7

5
Last change on this file since a2aec0b7 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: 1023 bytes
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.org/license/LICENSE.
7 */
8
9#include <bsp.h>
10#include <libchip/rtc.h>
11#include <libchip/m48t08.h>
12
13/* The following table configures the RTC drivers used in this BSP */
14rtc_tbl RTC_Table[] = {
15    {
16        "/dev/rtc",                /* sDeviceName */
17        RTC_M48T08,                /* deviceType */
18        &m48t08_fns,               /* pDeviceFns */
19        rtc_probe,                 /* deviceProbe */
20        NULL,                      /* pDeviceParams */
21        BSP_NVRAM_RTC_START,       /* ulCtrlPort1 */
22        0x00,                      /* ulDataPort */
23        m48t08_get_register,       /* getRegister */
24        m48t08_set_register        /* setRegister */
25    }
26};
27
28/* Some information used by the RTC driver */
29
30#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl))
31
32size_t RTC_Count = NUM_RTCS;
Note: See TracBrowser for help on using the repository browser.