mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
ROHM BD71828 PMIC RTC block is from many parts similar to one on BD70528. Support BD71828 RTC using BD70528 RTC driver and avoid re-inventing the wheel. Signed-off-by: Matti Vaittinen <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Signed-off-by: Lee Jones <[email protected]>
22 lines
631 B
C
22 lines
631 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/* Copyright (C) 2020 ROHM Semiconductors */
|
|
|
|
|
|
#ifndef __LINUX_MFD_ROHM_SHARED_H__
|
|
#define __LINUX_MFD_ROHM_SHARED_H__
|
|
|
|
/* RTC definitions shared between BD70528 and BD71828 */
|
|
|
|
#define BD70528_MASK_RTC_SEC 0x7f
|
|
#define BD70528_MASK_RTC_MINUTE 0x7f
|
|
#define BD70528_MASK_RTC_HOUR_24H 0x80
|
|
#define BD70528_MASK_RTC_HOUR_PM 0x20
|
|
#define BD70528_MASK_RTC_HOUR 0x3f
|
|
#define BD70528_MASK_RTC_DAY 0x3f
|
|
#define BD70528_MASK_RTC_WEEK 0x07
|
|
#define BD70528_MASK_RTC_MONTH 0x1f
|
|
#define BD70528_MASK_RTC_YEAR 0xff
|
|
#define BD70528_MASK_ALM_EN 0x7
|
|
|
|
#endif /* __LINUX_MFD_ROHM_SHARED_H__ */
|