| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Dallas DS1302 RTC Support |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2002 David McCullough |
|---|
| 5 | 6 | * Copyright (C) 2003 - 2007 Paul Mundt |
|---|
| 6 | | - * |
|---|
| 7 | | - * This file is subject to the terms and conditions of the GNU General Public |
|---|
| 8 | | - * License version 2. See the file "COPYING" in the main directory of |
|---|
| 9 | | - * this archive for more details. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/bcd.h> |
|---|
| .. | .. |
|---|
| 17 | 14 | #include <linux/of.h> |
|---|
| 18 | 15 | #include <linux/rtc.h> |
|---|
| 19 | 16 | #include <linux/spi/spi.h> |
|---|
| 20 | | - |
|---|
| 21 | | -#define DRV_NAME "rtc-ds1302" |
|---|
| 22 | 17 | |
|---|
| 23 | 18 | #define RTC_CMD_READ 0x81 /* Read command */ |
|---|
| 24 | 19 | #define RTC_CMD_WRITE 0x80 /* Write command */ |
|---|