Lines Matching +full:2 +full:x32 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * Author: Chris Zhong <zyw@rock-chips.com>
8 * Author: Zhang Qing <zhangqing@rock-chips.com>
84 #define RK808_BUCK2_CONFIG_REG 0x32
160 #define RK816_BOOST_EN BIT(1)
161 #define RK816_OTG_EN BIT(2)
162 #define RK816_BOOST_EN_MSK BIT(5)
163 #define RK816_OTG_EN_MSK BIT(6)
164 #define RK816_BUCK_DVS_CONFIRM BIT(7)
173 #define RK816_INT_STS_PWRON_FALL BIT(5)
174 #define RK816_INT_STS_PWRON_RISE BIT(6)
178 #define RK816_INT_STS_VB_LOW BIT(1)
179 #define RK816_INT_STS_PWRON BIT(2)
180 #define RK816_INT_STS_PWRON_LP BIT(3)
181 #define RK816_INT_STS_HOTDIE BIT(4)
182 #define RK816_INT_STS_RTC_ALARM BIT(5)
183 #define RK816_INT_STS_RTC_PERIOD BIT(6)
184 #define RK816_INT_STS_USB_OV BIT(7)
188 #define RK816_INT_STS_PLUG_IN BIT(0)
189 #define RK816_INT_STS_PLUG_OUT BIT(1)
190 #define RK816_INT_STS_CHG_OK BIT(2)
191 #define RK816_INT_STS_CHG_TE BIT(3)
192 #define RK816_INT_STS_CHG_TS BIT(4)
193 #define RK816_INT_STS_CHG_CVTLIM BIT(6)
194 #define RK816_INT_STS_DISCHG_ILIM BIT(7)
196 #define RK816_IRQ_STS_OFFSET(x) ((x) - RK816_INT_STS_REG1)
197 #define RK816_IRQ_MSK_OFFSET(x) ((x) - RK816_INT_STS_MSK_REG1)
219 #define RK816_GASCNT_CAL_REG(x) (0xb7 - (x))
220 #define RK816_GASCNT_REG(x) (0xbb - (x))
250 #define RK816_FCC_GASCNT_REG(x) (0xdc - (x))
297 #define RK818_BUCK2_CONFIG_REG 0x32
337 #define RK818_H5V_EN BIT(0)
338 #define RK818_REF_RDY_CTRL BIT(1)
369 #define RK805_BUCK2_CONFIG_REG 0x32
402 #define RK805_IRQ_PWRON 2
409 #define RK805_IRQ_PWRON_RISE_MSK BIT(0)
410 #define RK805_IRQ_VB_LOW_MSK BIT(1)
411 #define RK805_IRQ_PWRON_MSK BIT(2)
412 #define RK805_IRQ_PWRON_LP_MSK BIT(3)
413 #define RK805_IRQ_HOTDIE_MSK BIT(4)
414 #define RK805_IRQ_RTC_ALARM_MSK BIT(5)
415 #define RK805_IRQ_RTC_PERIOD_MSK BIT(6)
416 #define RK805_IRQ_PWRON_FALL_MSK BIT(7)
418 #define RK805_PWR_RISE_INT_STATUS BIT(0)
419 #define RK805_VB_LOW_INT_STATUS BIT(1)
420 #define RK805_PWRON_INT_STATUS BIT(2)
421 #define RK805_PWRON_LP_INT_STATUS BIT(3)
422 #define RK805_HOTDIE_INT_STATUS BIT(4)
423 #define RK805_ALARM_INT_STATUS BIT(5)
424 #define RK805_PERIOD_INT_STATUS BIT(6)
425 #define RK805_PWR_FALL_INT_STATUS BIT(7)
432 #define RK805_INT_TIMER_EN (1 << 2)
483 #define RK806_BUCK_DEBUG3 0x32
675 #define RK806_INT_STS_PWRON_FALL BIT(0)
676 #define RK806_INT_STS_PWRON_RISE BIT(1)
677 #define RK806_INT_STS_PWRON BIT(2)
678 #define RK806_INT_STS_PWRON_LP BIT(3)
679 #define RK806_INT_STS_HOTDIE BIT(4)
680 #define RK806_INT_STS_VDC_RISE BIT(5)
681 #define RK806_INT_STS_VDC_FALL BIT(6)
682 #define RK806_INT_STS_VB_LO BIT(7)
683 #define RK806_INT_STS_REV0 BIT(0)
684 #define RK806_INT_STS_REV1 BIT(1)
685 #define RK806_INT_STS_REV2 BIT(2)
686 #define RK806_INT_STS_CRC_ERROR BIT(3)
687 #define RK806_INT_STS_SLP3_GPIO BIT(4)
688 #define RK806_INT_STS_SLP2_GPIO BIT(5)
689 #define RK806_INT_STS_SLP1_GPIO BIT(6)
690 #define RK806_INT_STS_WDT BIT(7)
694 #define RK806_CMD_WRITE BIT(7)
695 #define RK806_CMD_CRC_EN BIT(6)
811 #define RK806_INT_POL_MSK BIT(1)
812 #define RK806_INT_POL_H BIT(1)
815 #define RK806_SLAVE_RESTART_FUN_MSK BIT(1)
816 #define RK806_SLAVE_RESTART_FUN_EN BIT(1)
819 #define RK806_SYS_ENB2_2M_MSK BIT(1)
820 #define RK806_SYS_ENB2_2M_EN BIT(1)
845 #define RK808_IRQ_PWRON 2
854 #define RK808_IRQ_VOUT_LO_MSK BIT(0)
855 #define RK808_IRQ_VB_LO_MSK BIT(1)
856 #define RK808_IRQ_PWRON_MSK BIT(2)
857 #define RK808_IRQ_PWRON_LP_MSK BIT(3)
858 #define RK808_IRQ_HOTDIE_MSK BIT(4)
859 #define RK808_IRQ_RTC_ALARM_MSK BIT(5)
860 #define RK808_IRQ_RTC_PERIOD_MSK BIT(6)
861 #define RK808_IRQ_PLUG_IN_INT_MSK BIT(0)
862 #define RK808_IRQ_PLUG_OUT_INT_MSK BIT(1)
867 #define RK818_IRQ_PWRON 2
882 #define RK818_IRQ_VOUT_LO_MSK BIT(0)
883 #define RK818_IRQ_VB_LO_MSK BIT(1)
884 #define RK818_IRQ_PWRON_MSK BIT(2)
885 #define RK818_IRQ_PWRON_LP_MSK BIT(3)
886 #define RK818_IRQ_HOTDIE_MSK BIT(4)
887 #define RK818_IRQ_RTC_ALARM_MSK BIT(5)
888 #define RK818_IRQ_RTC_PERIOD_MSK BIT(6)
889 #define RK818_IRQ_USB_OV_MSK BIT(7)
890 #define RK818_IRQ_PLUG_IN_MSK BIT(0)
891 #define RK818_IRQ_PLUG_OUT_MSK BIT(1)
892 #define RK818_IRQ_CHG_OK_MSK BIT(2)
893 #define RK818_IRQ_CHG_TE_MSK BIT(3)
894 #define RK818_IRQ_CHG_TS1_MSK BIT(4)
895 #define RK818_IRQ_TS2_MSK BIT(5)
896 #define RK818_IRQ_CHG_CVTLIM_MSK BIT(6)
897 #define RK818_IRQ_DISCHG_ILIM_MSK BIT(7)
923 #define SWITCH2_EN BIT(6)
924 #define SWITCH1_EN BIT(5)
925 #define DEV_OFF_RST BIT(3)
926 #define DEV_RST BIT(2)
927 #define DEV_OFF BIT(0)
928 #define RTC_STOP BIT(0)
930 #define VB_LO_ACT BIT(4)
933 #define VOUT_LO_INT BIT(0)
934 #define CLK32KOUT2_EN BIT(0)
939 #define SLP_SD_MSK (0x3 << 2)
940 #define SHUTDOWN_FUN (0x2 << 2)
941 #define SLEEP_FUN (0x1 << 2)
943 #define PWM_MODE_MSK BIT(7)
944 #define FPWM_MODE BIT(7)
1021 #define RK817_CODEC_DDAC_VOLR 0x32
1080 #define RK817_BAT_CUR_ADC_EN (0x1 << 2)
1084 #define RK817_VOL_CUR_CALIB_UPD BIT(7)
1090 #define RK817_RELAX_VOL_UPD (0x3 << 2)
1166 #define RK817_LDO_ON_VSEL_REG(idx) (0xcc + (idx) * 2)
1179 #define RK817_CHRG_TERM_ANA_DIG (0x01 << 2)
1184 #define RK817_BAT_EXS BIT(7)
1210 #define RK817_IRQ_PWRON 2
1238 #define RK817_RTC_CTRL_RSV4 BIT(4)
1241 #define RK817_BUCK3_FB_RES_MSK BIT(6)
1242 #define RK817_BUCK3_FB_RES_INTER BIT(6)
1260 #define RK817_TSD_TEMP_MSK BIT(6)
1262 #define RK817_TSD_160 BIT(6)
1264 #define RK817_CLK32KOUT2_EN BIT(7)
1279 #define RK817_SLPPOL_MSK BIT(5)
1280 #define RK817_SLPPOL_H BIT(5)
1284 #define RK817_INT_POL_MSK BIT(1)
1285 #define RK817_INT_POL_H BIT(1)