diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2007-12-14 06:30:15 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2007-12-14 06:30:15 +0000 |
commit | b599faa1bb56dd5909be179ca56ad74937906823 (patch) | |
tree | be9038b9e1e8775e2b73fd254a5b62ac1891ee71 /c/src/lib/libbsp/powerpc/mvme3100/tod/todcfg.c |
- imported MVME3100 BSP (from SLAC repository)R_rtems_mvme3100_bsp_slacB_rtems_mvme3100_bsp_slac
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mvme3100/tod/todcfg.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme3100/tod/todcfg.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme3100/tod/todcfg.c b/c/src/lib/libbsp/powerpc/mvme3100/tod/todcfg.c new file mode 100644 index 0000000000..7d29377c21 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mvme3100/tod/todcfg.c @@ -0,0 +1,28 @@ +/* + * 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.com/license/LICENSE. + * + * Modified for mvme3100 by T. Straumann, 2007 + * + * $Id$ + */ + +#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; + +rtems_device_minor_number RTC_Minor; |