31 lines
651 B
C
31 lines
651 B
C
/*
|
|
* This is a mini driver for the AM335X Real Time Clock. The majority of the
|
|
* work is done in user space in readclock, but for power-off the clock needs
|
|
* to be put into run mode at the last possible moment in arch_reset.c. This
|
|
* driver just implements mapping the memory and re-starting the clock.
|
|
*/
|
|
|
|
#include <assert.h>
|
|
#include <sys/types.h>
|
|
#include <machine/cpu.h>
|
|
#include <minix/type.h>
|
|
#include <minix/board.h>
|
|
#include <io.h>
|
|
|
|
#include "kernel/kernel.h"
|
|
#include "kernel/proc.h"
|
|
#include "kernel/vm.h"
|
|
#include "kernel/proto.h"
|
|
#include "arch_proto.h"
|
|
#include "rpi_rtc.h"
|
|
|
|
void rpi_rtc_init(void)
|
|
{
|
|
|
|
}
|
|
|
|
void rpi_rtc_run(void)
|
|
{
|
|
|
|
}
|