123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599 |
- /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
- * All rights reserved.
- *
- * This software is supplied "AS IS" without any warranties.
- * RDA assumes no responsibility or liability for the use of the software,
- * conveys no license or title under any patent, copyright, or mask work
- * right to the product. RDA reserves the right to make changes in the
- * software without notification. RDA also make no representation or
- * warranty that such application will be suitable for the specified use
- * without further testing or modification.
- */
- #ifndef _PMIC_RTC_H_
- #define _PMIC_RTC_H_
- // Auto generated by dtools(see dtools.txt for its version).
- // Don't edit it manually!
- #define REG_PMIC_RTC_BASE (0x51108600)
- typedef volatile struct
- {
- uint32_t rtc_sec_cnt_value; // 0x00000000
- uint32_t rtc_min_cnt_value; // 0x00000004
- uint32_t rtc_hrs_cnt_value; // 0x00000008
- uint32_t rtc_day_cnt_value; // 0x0000000c
- uint32_t rtc_sec_cnt_upd; // 0x00000010
- uint32_t rtc_min_cnt_upd; // 0x00000014
- uint32_t rtc_hrs_cnt_upd; // 0x00000018
- uint32_t rtc_day_cnt_upd; // 0x0000001c
- uint32_t rtc_sec_alm_upd; // 0x00000020
- uint32_t rtc_min_alm_upd; // 0x00000024
- uint32_t rtc_hrs_alm_upd; // 0x00000028
- uint32_t rtc_day_alm_upd; // 0x0000002c
- uint32_t rtc_int_en; // 0x00000030
- uint32_t rtc_int_raw_sts; // 0x00000034
- uint32_t rtc_int_clr; // 0x00000038
- uint32_t rtc_int_mask_sts; // 0x0000003c
- uint32_t rtc_sec_alm_value; // 0x00000040
- uint32_t rtc_min_alm_value; // 0x00000044
- uint32_t rtc_hrs_alm_value; // 0x00000048
- uint32_t rtc_day_alm_value; // 0x0000004c
- uint32_t rtc_spg_value; // 0x00000050
- uint32_t rtc_spg_upd; // 0x00000054
- uint32_t rtc_pwr_flag_ctrl; // 0x00000058
- uint32_t rtc_pwr_flag_sts; // 0x0000005c
- uint32_t rtc_sec_auxalm_upd; // 0x00000060
- uint32_t rtc_min_auxalm_upd; // 0x00000064
- uint32_t rtc_hrs_auxalm_upd; // 0x00000068
- uint32_t rtc_day_auxalm_upd; // 0x0000006c
- uint32_t rtc_sec_cnt_raw; // 0x00000070
- uint32_t rtc_min_cnt_raw; // 0x00000074
- uint32_t rtc_hrs_cnt_raw; // 0x00000078
- uint32_t rtc_day_cnt_raw; // 0x0000007c
- } HWP_PMIC_RTC_T;
- #define hwp_pmicRtc ((HWP_PMIC_RTC_T *)REG_ACCESS_ADDRESS(REG_PMIC_RTC_BASE))
- // rtc_sec_cnt_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_cnt_value : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_SEC_CNT_VALUE_T;
- // rtc_min_cnt_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_min_cnt_value : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_MIN_CNT_VALUE_T;
- // rtc_hrs_cnt_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_hrs_cnt_value : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_HRS_CNT_VALUE_T;
- // rtc_day_cnt_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_day_cnt_value : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_DAY_CNT_VALUE_T;
- // rtc_sec_cnt_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_cnt_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_SEC_CNT_UPD_T;
- // rtc_min_cnt_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_min_cnt_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_MIN_CNT_UPD_T;
- // rtc_hrs_cnt_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_hrs_cnt_upd : 5; // [4:0]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_PMIC_RTC_RTC_HRS_CNT_UPD_T;
- // rtc_day_cnt_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_day_cnt_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_DAY_CNT_UPD_T;
- // rtc_sec_alm_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_alm_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_SEC_ALM_UPD_T;
- // rtc_min_alm_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_min_alm_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_MIN_ALM_UPD_T;
- // rtc_hrs_alm_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_hrs_alm_upd : 5; // [4:0]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_PMIC_RTC_RTC_HRS_ALM_UPD_T;
- // rtc_day_alm_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_day_alm_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_DAY_ALM_UPD_T;
- // rtc_int_en
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_int_en : 1; // [0]
- uint32_t rtc_min_int_en : 1; // [1]
- uint32_t rtc_hrs_int_en : 1; // [2]
- uint32_t rtc_day_int_en : 1; // [3]
- uint32_t rtc_alm_int_en : 1; // [4]
- uint32_t rtc_hrs_format_sel : 1; // [5]
- uint32_t rtc_auxalm_int_en : 1; // [6]
- uint32_t rtc_spg_upd_int_en : 1; // [7]
- uint32_t rtc_sec_cnt_upd_int_en : 1; // [8]
- uint32_t rtc_min_cnt_upd_int_en : 1; // [9]
- uint32_t rtc_hrs_cnt_upd_int_en : 1; // [10]
- uint32_t rtc_day_cnt_upd_int_en : 1; // [11]
- uint32_t rtc_sec_alm_upd_int_en : 1; // [12]
- uint32_t rtc_min_alm_upd_int_en : 1; // [13]
- uint32_t rtc_hrs_alm_upd_int_en : 1; // [14]
- uint32_t rtc_day_alm_upd_int_en : 1; // [15]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PMIC_RTC_RTC_INT_EN_T;
- // rtc_int_raw_sts
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_int_raw_sts : 1; // [0], read only
- uint32_t rtc_min_int_raw_sts : 1; // [1], read only
- uint32_t rtc_hrs_int_raw_sts : 1; // [2], read only
- uint32_t rtc_day_int_raw_sts : 1; // [3], read only
- uint32_t rtc_alm_int_raw_sts : 1; // [4], read only
- uint32_t rtc_alm_int0_raw_sts : 1; // [5], read only
- uint32_t rtc_auxalm_int_raw_sts : 1; // [6], read only
- uint32_t rtc_spg_upd_int_raw_sts : 1; // [7], read only
- uint32_t rtc_sec_cnt_upd_int_raw_sts : 1; // [8], read only
- uint32_t rtc_min_cnt_upd_int_raw_sts : 1; // [9], read only
- uint32_t rtc_hrs_cnt_upd_int_raw_sts : 1; // [10], read only
- uint32_t rtc_day_cnt_upd_int_raw_sts : 1; // [11], read only
- uint32_t rtc_sec_alm_upd_int_raw_sts : 1; // [12], read only
- uint32_t rtc_min_alm_upd_int_raw_sts : 1; // [13], read only
- uint32_t rtc_hrs_alm_upd_int_raw_sts : 1; // [14], read only
- uint32_t rtc_day_alm_upd_int_raw_sts : 1; // [15], read only
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PMIC_RTC_RTC_INT_RAW_STS_T;
- // rtc_int_clr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_int_clr : 1; // [0]
- uint32_t rtc_min_int_clr : 1; // [1]
- uint32_t rtc_hrs_int_clr : 1; // [2]
- uint32_t rtc_day_int_clr : 1; // [3]
- uint32_t rtc_alm_int_clr : 1; // [4]
- uint32_t __5_5 : 1; // [5]
- uint32_t rtc_auxalm_int_clr : 1; // [6]
- uint32_t rtc_spg_upd_int_clr : 1; // [7]
- uint32_t rtc_sec_cnt_upd_int_clr : 1; // [8]
- uint32_t rtc_min_cnt_upd_int_clr : 1; // [9]
- uint32_t rtc_hrs_cnt_upd_int_clr : 1; // [10]
- uint32_t rtc_day_cnt_upd_int_clr : 1; // [11]
- uint32_t rtc_sec_alm_upd_int_clr : 1; // [12]
- uint32_t rtc_min_alm_upd_int_clr : 1; // [13]
- uint32_t rtc_hrs_alm_upd_int_clr : 1; // [14]
- uint32_t rtc_day_alm_upd_int_clr : 1; // [15]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PMIC_RTC_RTC_INT_CLR_T;
- // rtc_int_mask_sts
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_int_mask_sts : 1; // [0], read only
- uint32_t rtc_min_int_mask_sts : 1; // [1], read only
- uint32_t rtc_hrs_int_mask_sts : 1; // [2], read only
- uint32_t rtc_day_int_mask_sts : 1; // [3], read only
- uint32_t rtc_alm_int_mask_sts : 1; // [4], read only
- uint32_t __5_5 : 1; // [5]
- uint32_t rtc_auxalm_int_mask_sts : 1; // [6], read only
- uint32_t rtc_spg_upd_int_mask_sts : 1; // [7], read only
- uint32_t rtc_sec_cnt_upd_int_mask_sts : 1; // [8], read only
- uint32_t rtc_min_cnt_upd_int_mask_sts : 1; // [9], read only
- uint32_t rtc_hrs_cnt_upd_int_mask_sts : 1; // [10], read only
- uint32_t rtc_day_cnt_upd_int_mask_sts : 1; // [11], read only
- uint32_t rtc_sec_alm_upd_int_mask_sts : 1; // [12], read only
- uint32_t rtc_min_alm_upd_int_mask_sts : 1; // [13], read only
- uint32_t rtc_hrs_alm_upd_int_mask_sts : 1; // [14], read only
- uint32_t rtc_day_alm_upd_int_mask_sts : 1; // [15], read only
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PMIC_RTC_RTC_INT_MASK_STS_T;
- // rtc_sec_alm_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_alm_value : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_SEC_ALM_VALUE_T;
- // rtc_min_alm_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_min_alm_value : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_MIN_ALM_VALUE_T;
- // rtc_hrs_alm_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_hrs_alm_value : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_HRS_ALM_VALUE_T;
- // rtc_day_alm_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_day_alm_value : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_DAY_ALM_VALUE_T;
- // rtc_spg_value
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_almlock_value : 8; // [7:0], read only
- uint32_t rtc_spg_value : 8; // [15:8], read only
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PMIC_RTC_RTC_SPG_VALUE_T;
- // rtc_spg_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_almlock_upd : 8; // [7:0]
- uint32_t rtc_spg_upd : 8; // [15:8]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PMIC_RTC_RTC_SPG_UPD_T;
- // rtc_pwr_flag_ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_pwr_flag_clr : 8; // [7:0]
- uint32_t rtc_pwr_flag_set : 8; // [15:8]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PMIC_RTC_RTC_PWR_FLAG_CTRL_T;
- // rtc_pwr_flag_sts
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_power_flag_status_register : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_PMIC_RTC_RTC_PWR_FLAG_STS_T;
- // rtc_sec_auxalm_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_auxalm_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_SEC_AUXALM_UPD_T;
- // rtc_min_auxalm_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_min_auxalm_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_MIN_AUXALM_UPD_T;
- // rtc_hrs_auxalm_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_hrs_auxalm_upd : 5; // [4:0]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_PMIC_RTC_RTC_HRS_AUXALM_UPD_T;
- // rtc_day_auxalm_upd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_day_auxalm_upd : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_DAY_AUXALM_UPD_T;
- // rtc_sec_cnt_raw
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_sec_cnt_raw : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_SEC_CNT_RAW_T;
- // rtc_min_cnt_raw
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_min_cnt_raw : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_MIN_CNT_RAW_T;
- // rtc_hrs_cnt_raw
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_hrs_cnt_raw : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_HRS_CNT_RAW_T;
- // rtc_day_cnt_raw
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rtc_day_cnt_raw : 6; // [5:0], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_PMIC_RTC_RTC_DAY_CNT_RAW_T;
- // rtc_sec_cnt_value
- #define PMIC_RTC_RTC_SEC_CNT_VALUE(n) (((n)&0x3f) << 0)
- // rtc_min_cnt_value
- #define PMIC_RTC_RTC_MIN_CNT_VALUE(n) (((n)&0x3f) << 0)
- // rtc_hrs_cnt_value
- #define PMIC_RTC_RTC_HRS_CNT_VALUE(n) (((n)&0x3f) << 0)
- // rtc_day_cnt_value
- #define PMIC_RTC_RTC_DAY_CNT_VALUE(n) (((n)&0x3f) << 0)
- // rtc_sec_cnt_upd
- #define PMIC_RTC_RTC_SEC_CNT_UPD(n) (((n)&0x3f) << 0)
- // rtc_min_cnt_upd
- #define PMIC_RTC_RTC_MIN_CNT_UPD(n) (((n)&0x3f) << 0)
- // rtc_hrs_cnt_upd
- #define PMIC_RTC_RTC_HRS_CNT_UPD(n) (((n)&0x1f) << 0)
- // rtc_day_cnt_upd
- #define PMIC_RTC_RTC_DAY_CNT_UPD(n) (((n)&0x3f) << 0)
- // rtc_sec_alm_upd
- #define PMIC_RTC_RTC_SEC_ALM_UPD(n) (((n)&0x3f) << 0)
- // rtc_min_alm_upd
- #define PMIC_RTC_RTC_MIN_ALM_UPD(n) (((n)&0x3f) << 0)
- // rtc_hrs_alm_upd
- #define PMIC_RTC_RTC_HRS_ALM_UPD(n) (((n)&0x1f) << 0)
- // rtc_day_alm_upd
- #define PMIC_RTC_RTC_DAY_ALM_UPD(n) (((n)&0x3f) << 0)
- // rtc_int_en
- #define PMIC_RTC_RTC_SEC_INT_EN (1 << 0)
- #define PMIC_RTC_RTC_MIN_INT_EN (1 << 1)
- #define PMIC_RTC_RTC_HRS_INT_EN (1 << 2)
- #define PMIC_RTC_RTC_DAY_INT_EN (1 << 3)
- #define PMIC_RTC_RTC_ALM_INT_EN (1 << 4)
- #define PMIC_RTC_RTC_HRS_FORMAT_SEL (1 << 5)
- #define PMIC_RTC_RTC_AUXALM_INT_EN (1 << 6)
- #define PMIC_RTC_RTC_SPG_UPD_INT_EN (1 << 7)
- #define PMIC_RTC_RTC_SEC_CNT_UPD_INT_EN (1 << 8)
- #define PMIC_RTC_RTC_MIN_CNT_UPD_INT_EN (1 << 9)
- #define PMIC_RTC_RTC_HRS_CNT_UPD_INT_EN (1 << 10)
- #define PMIC_RTC_RTC_DAY_CNT_UPD_INT_EN (1 << 11)
- #define PMIC_RTC_RTC_SEC_ALM_UPD_INT_EN (1 << 12)
- #define PMIC_RTC_RTC_MIN_ALM_UPD_INT_EN (1 << 13)
- #define PMIC_RTC_RTC_HRS_ALM_UPD_INT_EN (1 << 14)
- #define PMIC_RTC_RTC_DAY_ALM_UPD_INT_EN (1 << 15)
- // rtc_int_raw_sts
- #define PMIC_RTC_RTC_SEC_INT_RAW_STS (1 << 0)
- #define PMIC_RTC_RTC_MIN_INT_RAW_STS (1 << 1)
- #define PMIC_RTC_RTC_HRS_INT_RAW_STS (1 << 2)
- #define PMIC_RTC_RTC_DAY_INT_RAW_STS (1 << 3)
- #define PMIC_RTC_RTC_ALM_INT_RAW_STS (1 << 4)
- #define PMIC_RTC_RTC_ALM_INT0_RAW_STS (1 << 5)
- #define PMIC_RTC_RTC_AUXALM_INT_RAW_STS (1 << 6)
- #define PMIC_RTC_RTC_SPG_UPD_INT_RAW_STS (1 << 7)
- #define PMIC_RTC_RTC_SEC_CNT_UPD_INT_RAW_STS (1 << 8)
- #define PMIC_RTC_RTC_MIN_CNT_UPD_INT_RAW_STS (1 << 9)
- #define PMIC_RTC_RTC_HRS_CNT_UPD_INT_RAW_STS (1 << 10)
- #define PMIC_RTC_RTC_DAY_CNT_UPD_INT_RAW_STS (1 << 11)
- #define PMIC_RTC_RTC_SEC_ALM_UPD_INT_RAW_STS (1 << 12)
- #define PMIC_RTC_RTC_MIN_ALM_UPD_INT_RAW_STS (1 << 13)
- #define PMIC_RTC_RTC_HRS_ALM_UPD_INT_RAW_STS (1 << 14)
- #define PMIC_RTC_RTC_DAY_ALM_UPD_INT_RAW_STS (1 << 15)
- // rtc_int_clr
- #define PMIC_RTC_RTC_SEC_INT_CLR (1 << 0)
- #define PMIC_RTC_RTC_MIN_INT_CLR (1 << 1)
- #define PMIC_RTC_RTC_HRS_INT_CLR (1 << 2)
- #define PMIC_RTC_RTC_DAY_INT_CLR (1 << 3)
- #define PMIC_RTC_RTC_ALM_INT_CLR (1 << 4)
- #define PMIC_RTC_RTC_AUXALM_INT_CLR (1 << 6)
- #define PMIC_RTC_RTC_SPG_UPD_INT_CLR (1 << 7)
- #define PMIC_RTC_RTC_SEC_CNT_UPD_INT_CLR (1 << 8)
- #define PMIC_RTC_RTC_MIN_CNT_UPD_INT_CLR (1 << 9)
- #define PMIC_RTC_RTC_HRS_CNT_UPD_INT_CLR (1 << 10)
- #define PMIC_RTC_RTC_DAY_CNT_UPD_INT_CLR (1 << 11)
- #define PMIC_RTC_RTC_SEC_ALM_UPD_INT_CLR (1 << 12)
- #define PMIC_RTC_RTC_MIN_ALM_UPD_INT_CLR (1 << 13)
- #define PMIC_RTC_RTC_HRS_ALM_UPD_INT_CLR (1 << 14)
- #define PMIC_RTC_RTC_DAY_ALM_UPD_INT_CLR (1 << 15)
- // rtc_int_mask_sts
- #define PMIC_RTC_RTC_SEC_INT_MASK_STS (1 << 0)
- #define PMIC_RTC_RTC_MIN_INT_MASK_STS (1 << 1)
- #define PMIC_RTC_RTC_HRS_INT_MASK_STS (1 << 2)
- #define PMIC_RTC_RTC_DAY_INT_MASK_STS (1 << 3)
- #define PMIC_RTC_RTC_ALM_INT_MASK_STS (1 << 4)
- #define PMIC_RTC_RTC_AUXALM_INT_MASK_STS (1 << 6)
- #define PMIC_RTC_RTC_SPG_UPD_INT_MASK_STS (1 << 7)
- #define PMIC_RTC_RTC_SEC_CNT_UPD_INT_MASK_STS (1 << 8)
- #define PMIC_RTC_RTC_MIN_CNT_UPD_INT_MASK_STS (1 << 9)
- #define PMIC_RTC_RTC_HRS_CNT_UPD_INT_MASK_STS (1 << 10)
- #define PMIC_RTC_RTC_DAY_CNT_UPD_INT_MASK_STS (1 << 11)
- #define PMIC_RTC_RTC_SEC_ALM_UPD_INT_MASK_STS (1 << 12)
- #define PMIC_RTC_RTC_MIN_ALM_UPD_INT_MASK_STS (1 << 13)
- #define PMIC_RTC_RTC_HRS_ALM_UPD_INT_MASK_STS (1 << 14)
- #define PMIC_RTC_RTC_DAY_ALM_UPD_INT_MASK_STS (1 << 15)
- // rtc_sec_alm_value
- #define PMIC_RTC_RTC_SEC_ALM_VALUE(n) (((n)&0x3f) << 0)
- // rtc_min_alm_value
- #define PMIC_RTC_RTC_MIN_ALM_VALUE(n) (((n)&0x3f) << 0)
- // rtc_hrs_alm_value
- #define PMIC_RTC_RTC_HRS_ALM_VALUE(n) (((n)&0x3f) << 0)
- // rtc_day_alm_value
- #define PMIC_RTC_RTC_DAY_ALM_VALUE(n) (((n)&0x3f) << 0)
- // rtc_spg_value
- #define PMIC_RTC_RTC_ALMLOCK_VALUE(n) (((n)&0xff) << 0)
- #define PMIC_RTC_RTC_SPG_VALUE(n) (((n)&0xff) << 8)
- // rtc_spg_upd
- #define PMIC_RTC_RTC_ALMLOCK_UPD(n) (((n)&0xff) << 0)
- #define PMIC_RTC_RTC_SPG_UPD(n) (((n)&0xff) << 8)
- // rtc_pwr_flag_ctrl
- #define PMIC_RTC_RTC_PWR_FLAG_CLR(n) (((n)&0xff) << 0)
- #define PMIC_RTC_RTC_PWR_FLAG_SET(n) (((n)&0xff) << 8)
- // rtc_pwr_flag_sts
- #define PMIC_RTC_RTC_POWER_FLAG_STATUS_REGISTER(n) (((n)&0xff) << 0)
- // rtc_sec_auxalm_upd
- #define PMIC_RTC_RTC_SEC_AUXALM_UPD(n) (((n)&0x3f) << 0)
- // rtc_min_auxalm_upd
- #define PMIC_RTC_RTC_MIN_AUXALM_UPD(n) (((n)&0x3f) << 0)
- // rtc_hrs_auxalm_upd
- #define PMIC_RTC_RTC_HRS_AUXALM_UPD(n) (((n)&0x1f) << 0)
- // rtc_day_auxalm_upd
- #define PMIC_RTC_RTC_DAY_AUXALM_UPD(n) (((n)&0x3f) << 0)
- // rtc_sec_cnt_raw
- #define PMIC_RTC_RTC_SEC_CNT_RAW(n) (((n)&0x3f) << 0)
- // rtc_min_cnt_raw
- #define PMIC_RTC_RTC_MIN_CNT_RAW(n) (((n)&0x3f) << 0)
- // rtc_hrs_cnt_raw
- #define PMIC_RTC_RTC_HRS_CNT_RAW(n) (((n)&0x3f) << 0)
- // rtc_day_cnt_raw
- #define PMIC_RTC_RTC_DAY_CNT_RAW(n) (((n)&0x3f) << 0)
- #endif // _PMIC_RTC_H_
|