blob: 2c7c092d141dc7c354ae440b2729c8ef47ffa5b7 [file] [log] [blame]
wdenkc0903902001-09-10 13:51:30 +00001/*
2 * SGS M48-T59Y TOD/NVRAM Driver
3 *
4 * (C) Copyright 2000
5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 *
7 * (C) Copyright 1999, by Curt McDowell, 08-06-99, Broadcom Corp.
8 *
9 * (C) Copyright 2001, James Dougherty, 07/18/01, Broadcom Corp.
10 *
Wolfgang Denk1a459662013-07-08 09:37:19 +020011 * SPDX-License-Identifier: GPL-2.0+
wdenkc0903902001-09-10 13:51:30 +000012 */
13
14#ifndef __M48_T59_Y_H
15#define __M48_T59_Y_H
16
17/*
18 * M48 T59Y -Timekeeping Battery backed SRAM.
19 */
20
21int m48_tod_init(void);
22
23int m48_tod_set(int year,
24 int month,
25 int day,
26 int hour,
27 int minute,
28 int second);
29
30int m48_tod_get(int *year,
31 int *month,
32 int *day,
33 int *hour,
34 int *minute,
35 int *second);
36
37int m48_tod_get_second(void);
38
39void m48_watchdog_arm(int usec);
40
41#endif /*!__M48_T59_Y_H */