Files
kernel_common_drivers/drivers/rtc/main.h
T
chengbing.wu 29655631ae pmic: a1 k5.15 pmic and sub driver porting [1/1]
PD#SWPL-112358

Problem:
ad403 is missing pmic6b driver in kernel5.15.

Solution:
base Yu Tu 76117 and 78726;
base Jian yi 189702 and 192916,216774;
and yao jie 216898;

Verify:
A113L-AD401 #1 +Battery.
all driver use ko;

Change-Id: I911ca92dbe6f8c0f623e32fd14bdcf23a6318861
Signed-off-by: chengbing wu <chengbing.wu@amlogic.com>
2023-04-16 22:32:09 -07:00

52 lines
799 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __RTC_MAIN_H_
#define __RTC_MAIN_H_
#if IS_ENABLED(CONFIG_AMLOGIC_RTC_DRV_MESON_VRTC)
int vrtc_init(void);
void vrtc_exit(void);
#else
static inline void vrtc_init(void)
{
return 0;
}
static inline int vrtc_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_MESON_RTC)
int rtc_init(void);
void rtc_exit(void);
#else
static inline int rtc_init(void)
{
return 0;
}
static inline void rtc_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_RTC_PMIC6B)
int meson_pmic6b_rtc_init(void);
void meson_pmic6b_rtc_exit(void);
#else
static inline int meson_pmic6b_rtc_init(void)
{
return 0;
}
static inline void meson_pmic6b_rtc_exit(void)
{
}
#endif
#endif /*_RTC_MAIN_H__*/