diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-23 09:55:15 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-23 15:18:44 +0200 |
commit | 4fb1b79a804ca8de866be0ef718e54e1f62fa3ec (patch) | |
tree | 11b85c98244db22c927e7f1323ed222c43a589b0 /bsps/powerpc/mvme3100 | |
parent | bsps: Move legacy network drivers to bsps (diff) | |
download | rtems-4fb1b79a804ca8de866be0ef718e54e1f62fa3ec.tar.bz2 |
bsps: Move RTC drivers to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'bsps/powerpc/mvme3100')
-rw-r--r-- | bsps/powerpc/mvme3100/rtc/todcfg.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bsps/powerpc/mvme3100/rtc/todcfg.c b/bsps/powerpc/mvme3100/rtc/todcfg.c new file mode 100644 index 0000000000..939bea0258 --- /dev/null +++ b/bsps/powerpc/mvme3100/rtc/todcfg.c @@ -0,0 +1,24 @@ +/* + * This file contains the RTC driver table for the MVME3100 BSP + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + * + * Modified for mvme3100 by T. Straumann, 2007 + */ + +#include <bsp.h> +#include <libchip/rtc.h> +#include <libchip/ds1375-rtc.h> + +/* The following table configures the RTC drivers used in this BSP */ +rtc_tbl RTC_Table[] = { + DS1375_RTC_TBL_ENTRY(BSP_I2C_DS1375_RAW_DEV_NAME), +}; + +/* Some information used by the RTC driver */ + +#define NUM_RTCS (sizeof(RTC_Table)/sizeof(rtc_tbl)) + +size_t RTC_Count = NUM_RTCS; |