Source
1
+
// SPDX-License-Identifier: GPL-2.0+
1
2
/*
2
3
* PIC32 RTC driver
3
4
*
4
5
* Joshua Henderson <joshua.henderson@microchip.com>
5
6
* Copyright (C) 2016 Microchip Technology Inc. All rights reserved.
6
7
*
7
-
* This program is free software; you can redistribute it and/or modify
8
-
* it under the terms of the GNU General Public License as published by
9
-
* the Free Software Foundation; either version 2 of the License, or
10
-
* (at your option) any later version.
11
-
*
12
-
* This program is distributed in the hope that it will be useful, but WITHOUT
13
-
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
-
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
-
* more details.
16
8
*/
17
9
#include <linux/init.h>
18
10
#include <linux/module.h>
19
11
#include <linux/of.h>
20
12
#include <linux/platform_device.h>
21
13
#include <linux/io.h>
22
14
#include <linux/slab.h>
23
15
#include <linux/clk.h>
24
16
#include <linux/rtc.h>
25
17
#include <linux/bcd.h>