forked from Imagelibrary/rtems
PR 1799/bsps * .cvsignore, ChangeLog, Makefile.am, README, bsp_specs, configure.ac, clock/clock-config.c, console/console-config.c, console/uart-bridge-master.c, console/uart-bridge-slave.c, include/.cvsignore, include/bsp.h, include/hwreg_vals.h, include/intercom.h, include/irq.h, include/mmu.h, include/qoriq.h, include/tm27.h, include/tsec-config.h, include/u-boot-config.h, include/uart-bridge.h, irq/irq.c, make/custom/qoriq.inc, make/custom/qoriq_core_0.cfg, make/custom/qoriq_core_1.cfg, make/custom/qoriq_p1020rdb.cfg, network/if_intercom.c, network/network.c, rtc/rtc-config.c, shmsupp/intercom-mpci.c, shmsupp/intercom.c, shmsupp/lock.S, start/start.S, startup/bsppredriverhook.c, startup/bspreset.c, startup/bspstart.c, startup/linkcmds.base, startup/linkcmds.qoriq_core_0, startup/linkcmds.qoriq_core_1, startup/linkcmds.qoriq_p1020rdb, startup/mmu-config.c, startup/mmu-tlb1.S, startup/mmu.c: New files.
72 lines
1.3 KiB
C
72 lines
1.3 KiB
C
/**
|
|
* @file
|
|
*
|
|
* @ingroup QorIQ
|
|
*
|
|
* @brief RTC configuration.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2010 embedded brains GmbH. All rights reserved.
|
|
*
|
|
* embedded brains GmbH
|
|
* Obere Lagerstr. 30
|
|
* 82178 Puchheim
|
|
* Germany
|
|
* <rtems@embedded-brains.de>
|
|
*
|
|
* 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.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <libchip/rtc.h>
|
|
|
|
#define RTC_COUNT 1
|
|
|
|
static void qoriq_rtc_initialize(int minor)
|
|
{
|
|
/* FIXME */
|
|
}
|
|
|
|
static int qoriq_rtc_get_time(int minor, rtems_time_of_day *tod)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
static int qoriq_rtc_set_time(int minor, const rtems_time_of_day *tod)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
static bool qoriq_rtc_probe(int minor)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
const rtc_fns qoriq_rtc_ops = {
|
|
.deviceInitialize = qoriq_rtc_initialize,
|
|
.deviceGetTime = qoriq_rtc_get_time,
|
|
.deviceSetTime = qoriq_rtc_set_time
|
|
};
|
|
|
|
size_t RTC_Count = RTC_COUNT;
|
|
|
|
rtems_device_minor_number RTC_Minor = 0;
|
|
|
|
rtc_tbl RTC_Table [RTC_COUNT] = {
|
|
{
|
|
.sDeviceName = "/dev/rtc",
|
|
.deviceType = RTC_CUSTOM,
|
|
.pDeviceFns = &qoriq_rtc_ops,
|
|
.deviceProbe = qoriq_rtc_probe,
|
|
.pDeviceParams = NULL,
|
|
.ulCtrlPort1 = 0,
|
|
.ulDataPort = 0,
|
|
.getRegister = NULL,
|
|
.setRegister = NULL
|
|
}
|
|
};
|