wdenk | c090390 | 2001-09-10 13:51:30 +0000 | [diff] [blame] | 1 | /* |
| 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | c090390 | 2001-09-10 13:51:30 +0000 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifndef __M48_T59_Y_H |
| 15 | #define __M48_T59_Y_H |
| 16 | |
| 17 | /* |
| 18 | * M48 T59Y -Timekeeping Battery backed SRAM. |
| 19 | */ |
| 20 | |
| 21 | int m48_tod_init(void); |
| 22 | |
| 23 | int m48_tod_set(int year, |
| 24 | int month, |
| 25 | int day, |
| 26 | int hour, |
| 27 | int minute, |
| 28 | int second); |
| 29 | |
| 30 | int m48_tod_get(int *year, |
| 31 | int *month, |
| 32 | int *day, |
| 33 | int *hour, |
| 34 | int *minute, |
| 35 | int *second); |
| 36 | |
| 37 | int m48_tod_get_second(void); |
| 38 | |
| 39 | void m48_watchdog_arm(int usec); |
| 40 | |
| 41 | #endif /*!__M48_T59_Y_H */ |