summaryrefslogtreecommitdiff
path: root/zephyr/drivers/cros_rtc/nxp_rtc_pcf85063a.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/drivers/cros_rtc/nxp_rtc_pcf85063a.c')
-rw-r--r--zephyr/drivers/cros_rtc/nxp_rtc_pcf85063a.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/zephyr/drivers/cros_rtc/nxp_rtc_pcf85063a.c b/zephyr/drivers/cros_rtc/nxp_rtc_pcf85063a.c
index 298c8cd64f..c5580eaeef 100644
--- a/zephyr/drivers/cros_rtc/nxp_rtc_pcf85063a.c
+++ b/zephyr/drivers/cros_rtc/nxp_rtc_pcf85063a.c
@@ -5,19 +5,18 @@
#define DT_DRV_COMPAT nxp_rtc_pcf85063a
-#include "nxp_rtc_pcf85063a.h"
-
#include <assert.h>
-
#include <zephyr/device.h>
+#include <drivers/cros_rtc.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
-#include <zephyr/logging/log.h>
-
-#include <drivers/cros_rtc.h>
#include <rtc.h>
#include <soc.h>
+
+#include "nxp_rtc_pcf85063a.h"
+
+#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(cros_rtc, LOG_LEVEL_ERR);
/* Driver config */
@@ -363,16 +362,6 @@ static int nxp_rtc_pcf85063a_init(const struct device *dev)
}
}
-#ifdef CONFIG_PLATFORM_EC_PCF85063A_CAP_SEL
- ret = pcf85063a_write_reg(dev, REG_CONTROL_1,
- (CONTROL_1_DEFAULT_VALUE | CAP_SEL));
-
- if (ret < 0) {
- LOG_ERR("PCF85063A set CAP_SEL Fail!");
- return ret;
- }
-#endif
-
/*
* Read Seconds register and check if oscillator is stopped.
* If so, clear the bit.