162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * RT1305.h  --  RT1305 ALSA SoC amplifier component driver
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright 2018 Realtek Semiconductor Corp.
662306a36Sopenharmony_ci * Author: Shuming Fan <shumingf@realtek.com>
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#ifndef _RT1305_H_
1062306a36Sopenharmony_ci#define _RT1305_H_
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#define RT1305_DEVICE_ID_NUM 0x6251
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#define RT1305_RESET				0x00
1562306a36Sopenharmony_ci#define RT1305_CLK_1				0x04
1662306a36Sopenharmony_ci#define RT1305_CLK_2				0x05
1762306a36Sopenharmony_ci#define RT1305_CLK_3				0x06
1862306a36Sopenharmony_ci#define RT1305_DFLL_REG				0x07
1962306a36Sopenharmony_ci#define RT1305_CAL_EFUSE_CLOCK	0x08
2062306a36Sopenharmony_ci#define RT1305_PLL0_1				0x0a
2162306a36Sopenharmony_ci#define RT1305_PLL0_2				0x0b
2262306a36Sopenharmony_ci#define RT1305_PLL1_1				0x0c
2362306a36Sopenharmony_ci#define RT1305_PLL1_2				0x0d
2462306a36Sopenharmony_ci#define RT1305_MIXER_CTRL_1 0x10
2562306a36Sopenharmony_ci#define RT1305_MIXER_CTRL_2 0x11
2662306a36Sopenharmony_ci#define RT1305_DAC_SET_1             0x12
2762306a36Sopenharmony_ci#define RT1305_DAC_SET_2             0x14
2862306a36Sopenharmony_ci#define RT1305_ADC_SET_1            0x16
2962306a36Sopenharmony_ci#define RT1305_ADC_SET_2            0x17
3062306a36Sopenharmony_ci#define RT1305_ADC_SET_3            0x18
3162306a36Sopenharmony_ci#define RT1305_PATH_SET             0x20
3262306a36Sopenharmony_ci#define RT1305_SPDIF_IN_SET_1                 0x22
3362306a36Sopenharmony_ci#define RT1305_SPDIF_IN_SET_2                 0x24
3462306a36Sopenharmony_ci#define RT1305_SPDIF_IN_SET_3                 0x26
3562306a36Sopenharmony_ci#define RT1305_SPDIF_OUT_SET_1                 0x28
3662306a36Sopenharmony_ci#define RT1305_SPDIF_OUT_SET_2                 0x2a
3762306a36Sopenharmony_ci#define RT1305_SPDIF_OUT_SET_3                 0x2b
3862306a36Sopenharmony_ci#define RT1305_I2S_SET_1                       0x2d
3962306a36Sopenharmony_ci#define RT1305_I2S_SET_2                      0x2e
4062306a36Sopenharmony_ci#define RT1305_PBTL_MONO_MODE_SRC            0x2f
4162306a36Sopenharmony_ci#define RT1305_MANUALLY_I2C_DEVICE 0x32
4262306a36Sopenharmony_ci#define RT1305_POWER_STATUS                  0x39
4362306a36Sopenharmony_ci#define RT1305_POWER_CTRL_1                  0x3a
4462306a36Sopenharmony_ci#define RT1305_POWER_CTRL_2                  0x3b
4562306a36Sopenharmony_ci#define RT1305_POWER_CTRL_3                  0x3c
4662306a36Sopenharmony_ci#define RT1305_POWER_CTRL_4                  0x3d
4762306a36Sopenharmony_ci#define RT1305_POWER_CTRL_5                  0x3e
4862306a36Sopenharmony_ci#define RT1305_CLOCK_DETECT                  0x3f
4962306a36Sopenharmony_ci#define RT1305_BIQUAD_SET_1                  0x40
5062306a36Sopenharmony_ci#define RT1305_BIQUAD_SET_2                  0x42
5162306a36Sopenharmony_ci#define RT1305_ADJUSTED_HPF_1             0x46
5262306a36Sopenharmony_ci#define RT1305_ADJUSTED_HPF_2               0x47
5362306a36Sopenharmony_ci#define RT1305_EQ_SET_1                  0x4b
5462306a36Sopenharmony_ci#define RT1305_EQ_SET_2                  0x4c
5562306a36Sopenharmony_ci#define RT1305_SPK_TEMP_PROTECTION_0 0x4f
5662306a36Sopenharmony_ci#define RT1305_SPK_TEMP_PROTECTION_1 0x50
5762306a36Sopenharmony_ci#define RT1305_SPK_TEMP_PROTECTION_2 0x51
5862306a36Sopenharmony_ci#define RT1305_SPK_TEMP_PROTECTION_3 0x52
5962306a36Sopenharmony_ci#define RT1305_SPK_DC_DETECT_1                  0x53
6062306a36Sopenharmony_ci#define RT1305_SPK_DC_DETECT_2                  0x54
6162306a36Sopenharmony_ci#define RT1305_LOUDNESS 0x58
6262306a36Sopenharmony_ci#define RT1305_THERMAL_FOLD_BACK_1 0x5e
6362306a36Sopenharmony_ci#define RT1305_THERMAL_FOLD_BACK_2 0x5f
6462306a36Sopenharmony_ci#define RT1305_SILENCE_DETECT                  0x60
6562306a36Sopenharmony_ci#define RT1305_ALC_DRC_1                  0x62
6662306a36Sopenharmony_ci#define RT1305_ALC_DRC_2                  0x63
6762306a36Sopenharmony_ci#define RT1305_ALC_DRC_3                  0x64
6862306a36Sopenharmony_ci#define RT1305_ALC_DRC_4                  0x65
6962306a36Sopenharmony_ci#define RT1305_PRIV_INDEX			0x6a
7062306a36Sopenharmony_ci#define RT1305_PRIV_DATA			0x6c
7162306a36Sopenharmony_ci#define RT1305_SPK_EXCURSION_LIMITER_7 0x76
7262306a36Sopenharmony_ci#define RT1305_VERSION_ID			0x7a
7362306a36Sopenharmony_ci#define RT1305_VENDOR_ID			0x7c
7462306a36Sopenharmony_ci#define RT1305_DEVICE_ID			0x7e
7562306a36Sopenharmony_ci#define RT1305_EFUSE_1                  0x80
7662306a36Sopenharmony_ci#define RT1305_EFUSE_2                  0x81
7762306a36Sopenharmony_ci#define RT1305_EFUSE_3                  0x82
7862306a36Sopenharmony_ci#define RT1305_DC_CALIB_1                  0x90
7962306a36Sopenharmony_ci#define RT1305_DC_CALIB_2                  0x91
8062306a36Sopenharmony_ci#define RT1305_DC_CALIB_3                  0x92
8162306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_1            0x93
8262306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_2            0x94
8362306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_3            0x95
8462306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_4            0x96
8562306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_5            0x97
8662306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_6            0x98
8762306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_7            0x99
8862306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_8            0x9a
8962306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_9            0x9b
9062306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_10            0x9c
9162306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_11            0x9d
9262306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_12            0x9e
9362306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_13            0x9f
9462306a36Sopenharmony_ci#define RT1305_DAC_OFFSET_14            0xa0
9562306a36Sopenharmony_ci#define RT1305_TRIM_1                  0xb0
9662306a36Sopenharmony_ci#define RT1305_TRIM_2                  0xb1
9762306a36Sopenharmony_ci#define RT1305_TUNE_INTERNAL_OSC             0xb2
9862306a36Sopenharmony_ci#define RT1305_BIQUAD1_H0_L_28_16 0xc0
9962306a36Sopenharmony_ci#define RT1305_BIQUAD3_A2_R_15_0 0xfb
10062306a36Sopenharmony_ci#define RT1305_MAX_REG	                 0xff
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ci/* CLOCK-1 (0x04) */
10362306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_2_MASK			(0x1 << 15)
10462306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_2_SFT			15
10562306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_2_MCLK			(0x0 << 15)
10662306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_2_RCCLK			(0x1 << 15)
10762306a36Sopenharmony_ci#define RT1305_DIV_PLL_SRC_2_MASK			(0x3 << 13)
10862306a36Sopenharmony_ci#define RT1305_DIV_PLL_SRC_2_SFT			13
10962306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_1_MASK			(0x3 << 10)
11062306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_1_SFT			10
11162306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_1_PLL2			(0x0 << 10)
11262306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_1_BCLK			(0x1 << 10)
11362306a36Sopenharmony_ci#define RT1305_SEL_PLL_SRC_1_DFLL			(0x2 << 10)
11462306a36Sopenharmony_ci#define RT1305_SEL_FS_SYS_PRE_MASK			(0x3 << 8)
11562306a36Sopenharmony_ci#define RT1305_SEL_FS_SYS_PRE_SFT			8
11662306a36Sopenharmony_ci#define RT1305_SEL_FS_SYS_PRE_MCLK			(0x0 << 8)
11762306a36Sopenharmony_ci#define RT1305_SEL_FS_SYS_PRE_PLL			(0x1 << 8)
11862306a36Sopenharmony_ci#define RT1305_SEL_FS_SYS_PRE_RCCLK			(0x2 << 8)
11962306a36Sopenharmony_ci#define RT1305_DIV_FS_SYS_MASK				(0x7 << 4)
12062306a36Sopenharmony_ci#define RT1305_DIV_FS_SYS_SFT				4
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ci/* PLL1M/N/K Code-1 (0x0c) */
12362306a36Sopenharmony_ci#define RT1305_PLL_1_M_SFT		12
12462306a36Sopenharmony_ci#define RT1305_PLL_1_M_BYPASS_MASK			(0x1 << 11)
12562306a36Sopenharmony_ci#define RT1305_PLL_1_M_BYPASS_SFT		11
12662306a36Sopenharmony_ci#define RT1305_PLL_1_M_BYPASS			(0x1 << 11)
12762306a36Sopenharmony_ci#define RT1305_PLL_1_N_MASK			(0x1ff << 0)
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci/* DAC Setting (0x14) */
13062306a36Sopenharmony_ci#define RT1305_DVOL_MUTE_L_EN_SFT		15
13162306a36Sopenharmony_ci#define RT1305_DVOL_MUTE_R_EN_SFT		14
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ci/* I2S Setting-1 (0x2d) */
13462306a36Sopenharmony_ci#define RT1305_SEL_I2S_OUT_MODE_MASK		(0x1 << 15)
13562306a36Sopenharmony_ci#define RT1305_SEL_I2S_OUT_MODE_SFT			15
13662306a36Sopenharmony_ci#define RT1305_SEL_I2S_OUT_MODE_S			(0x0 << 15)
13762306a36Sopenharmony_ci#define RT1305_SEL_I2S_OUT_MODE_M			(0x1 << 15)
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ci/* I2S Setting-2 (0x2e) */
14062306a36Sopenharmony_ci#define RT1305_I2S_DF_SEL_MASK			(0x3 << 12)
14162306a36Sopenharmony_ci#define RT1305_I2S_DF_SEL_SFT			12
14262306a36Sopenharmony_ci#define RT1305_I2S_DF_SEL_I2S			(0x0 << 12)
14362306a36Sopenharmony_ci#define RT1305_I2S_DF_SEL_LEFT			(0x1 << 12)
14462306a36Sopenharmony_ci#define RT1305_I2S_DF_SEL_PCM_A			(0x2 << 12)
14562306a36Sopenharmony_ci#define RT1305_I2S_DF_SEL_PCM_B			(0x3 << 12)
14662306a36Sopenharmony_ci#define RT1305_I2S_DL_SEL_MASK			(0x3 << 10)
14762306a36Sopenharmony_ci#define RT1305_I2S_DL_SEL_SFT			10
14862306a36Sopenharmony_ci#define RT1305_I2S_DL_SEL_16B			(0x0 << 10)
14962306a36Sopenharmony_ci#define RT1305_I2S_DL_SEL_20B			(0x1 << 10)
15062306a36Sopenharmony_ci#define RT1305_I2S_DL_SEL_24B			(0x2 << 10)
15162306a36Sopenharmony_ci#define RT1305_I2S_DL_SEL_8B			(0x3 << 10)
15262306a36Sopenharmony_ci#define RT1305_I2S_BCLK_MASK		(0x1 << 9)
15362306a36Sopenharmony_ci#define RT1305_I2S_BCLK_SFT			9
15462306a36Sopenharmony_ci#define RT1305_I2S_BCLK_NORMAL		(0x0 << 9)
15562306a36Sopenharmony_ci#define RT1305_I2S_BCLK_INV			(0x1 << 9)
15662306a36Sopenharmony_ci
15762306a36Sopenharmony_ci/* Power Control-1 (0x3a) */
15862306a36Sopenharmony_ci#define RT1305_POW_PDB_JD_MASK				(0x1 << 12)
15962306a36Sopenharmony_ci#define RT1305_POW_PDB_JD				(0x1 << 12)
16062306a36Sopenharmony_ci#define RT1305_POW_PDB_JD_BIT			12
16162306a36Sopenharmony_ci#define RT1305_POW_PLL0_EN				(0x1 << 11)
16262306a36Sopenharmony_ci#define RT1305_POW_PLL0_EN_BIT			11
16362306a36Sopenharmony_ci#define RT1305_POW_PLL1_EN				(0x1 << 10)
16462306a36Sopenharmony_ci#define RT1305_POW_PLL1_EN_BIT			10
16562306a36Sopenharmony_ci#define RT1305_POW_PDB_JD_POLARITY				(0x1 << 9)
16662306a36Sopenharmony_ci#define RT1305_POW_PDB_JD_POLARITY_BIT			9
16762306a36Sopenharmony_ci#define RT1305_POW_MBIAS_LV				(0x1 << 8)
16862306a36Sopenharmony_ci#define RT1305_POW_MBIAS_LV_BIT			8
16962306a36Sopenharmony_ci#define RT1305_POW_BG_MBIAS_LV				(0x1 << 7)
17062306a36Sopenharmony_ci#define RT1305_POW_BG_MBIAS_LV_BIT			7
17162306a36Sopenharmony_ci#define RT1305_POW_LDO2				(0x1 << 6)
17262306a36Sopenharmony_ci#define RT1305_POW_LDO2_BIT			6
17362306a36Sopenharmony_ci#define RT1305_POW_BG2				(0x1 << 5)
17462306a36Sopenharmony_ci#define RT1305_POW_BG2_BIT			5
17562306a36Sopenharmony_ci#define RT1305_POW_LDO2_IB2				(0x1 << 4)
17662306a36Sopenharmony_ci#define RT1305_POW_LDO2_IB2_BIT			4
17762306a36Sopenharmony_ci#define RT1305_POW_VREF				(0x1 << 3)
17862306a36Sopenharmony_ci#define RT1305_POW_VREF_BIT			3
17962306a36Sopenharmony_ci#define RT1305_POW_VREF1				(0x1 << 2)
18062306a36Sopenharmony_ci#define RT1305_POW_VREF1_BIT			2
18162306a36Sopenharmony_ci#define RT1305_POW_VREF2				(0x1 << 1)
18262306a36Sopenharmony_ci#define RT1305_POW_VREF2_BIT			1
18362306a36Sopenharmony_ci
18462306a36Sopenharmony_ci/* Power Control-2 (0x3b) */
18562306a36Sopenharmony_ci#define RT1305_POW_DISC_VREF           (1 << 15)
18662306a36Sopenharmony_ci#define RT1305_POW_DISC_VREF_BIT       15
18762306a36Sopenharmony_ci#define RT1305_POW_FASTB_VREF          (1 << 14)
18862306a36Sopenharmony_ci#define RT1305_POW_FASTB_VREF_BIT          14
18962306a36Sopenharmony_ci#define RT1305_POW_ULTRA_FAST_VREF     (1 << 13)
19062306a36Sopenharmony_ci#define RT1305_POW_ULTRA_FAST_VREF_BIT     13
19162306a36Sopenharmony_ci#define RT1305_POW_CKXEN_DAC           (1 << 12)
19262306a36Sopenharmony_ci#define RT1305_POW_CKXEN_DAC_BIT           12
19362306a36Sopenharmony_ci#define RT1305_POW_EN_CKGEN_DAC        (1 << 11)
19462306a36Sopenharmony_ci#define RT1305_POW_EN_CKGEN_DAC_BIT        11
19562306a36Sopenharmony_ci#define RT1305_POW_DAC1_L          (1 << 10)
19662306a36Sopenharmony_ci#define RT1305_POW_DAC1_L_BIT          10
19762306a36Sopenharmony_ci#define RT1305_POW_DAC1_R          (1 << 9)
19862306a36Sopenharmony_ci#define RT1305_POW_DAC1_R_BIT          9
19962306a36Sopenharmony_ci#define RT1305_POW_CLAMP           (1 << 8)
20062306a36Sopenharmony_ci#define RT1305_POW_CLAMP_BIT           8
20162306a36Sopenharmony_ci#define RT1305_POW_BUFL            (1 << 7)
20262306a36Sopenharmony_ci#define RT1305_POW_BUFL_BIT            7
20362306a36Sopenharmony_ci#define RT1305_POW_BUFR              (1 << 6)
20462306a36Sopenharmony_ci#define RT1305_POW_BUFR_BIT              6
20562306a36Sopenharmony_ci#define RT1305_POW_EN_CKGEN_ADC       (1 << 5)
20662306a36Sopenharmony_ci#define RT1305_POW_EN_CKGEN_ADC_BIT       5
20762306a36Sopenharmony_ci#define RT1305_POW_ADC3_L             (1 << 4)
20862306a36Sopenharmony_ci#define RT1305_POW_ADC3_L_BIT             4
20962306a36Sopenharmony_ci#define RT1305_POW_ADC3_R             (1 << 3)
21062306a36Sopenharmony_ci#define RT1305_POW_ADC3_R_BIT             3
21162306a36Sopenharmony_ci#define RT1305_POW_TRIOSC               (1 << 2)
21262306a36Sopenharmony_ci#define RT1305_POW_TRIOSC_BIT               2
21362306a36Sopenharmony_ci#define RT1305_POR_AVDD1              (1 << 1)
21462306a36Sopenharmony_ci#define RT1305_POR_AVDD1_BIT              1
21562306a36Sopenharmony_ci#define RT1305_POR_AVDD2           (1 << 0)
21662306a36Sopenharmony_ci#define RT1305_POR_AVDD2_BIT           0
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_ci/* Power Control-3 (0x3c) */
21962306a36Sopenharmony_ci#define RT1305_POW_VSENSE_RCH           (1 << 15)
22062306a36Sopenharmony_ci#define RT1305_POW_VSENSE_RCH_BIT        15
22162306a36Sopenharmony_ci#define RT1305_POW_VSENSE_LCH           (1 << 14)
22262306a36Sopenharmony_ci#define RT1305_POW_VSENSE_LCH_BIT           14
22362306a36Sopenharmony_ci#define RT1305_POW_ISENSE_RCH            (1 << 13)
22462306a36Sopenharmony_ci#define RT1305_POW_ISENSE_RCH_BIT          13
22562306a36Sopenharmony_ci#define RT1305_POW_ISENSE_LCH            (1 << 12)
22662306a36Sopenharmony_ci#define RT1305_POW_ISENSE_LCH_BIT            12
22762306a36Sopenharmony_ci#define RT1305_POW_POR_AVDD1            (1 << 11)
22862306a36Sopenharmony_ci#define RT1305_POW_POR_AVDD1_BIT          11
22962306a36Sopenharmony_ci#define RT1305_POW_POR_AVDD2            (1 << 10)
23062306a36Sopenharmony_ci#define RT1305_POW_POR_AVDD2_BIT            10
23162306a36Sopenharmony_ci#define RT1305_EN_K_HV            (1 << 9)
23262306a36Sopenharmony_ci#define RT1305_EN_K_HV_BIT           9
23362306a36Sopenharmony_ci#define RT1305_EN_PRE_K_HV            (1 << 8)
23462306a36Sopenharmony_ci#define RT1305_EN_PRE_K_HV_BIT           8
23562306a36Sopenharmony_ci#define RT1305_EN_EFUSE_1P8V            (1 << 7)
23662306a36Sopenharmony_ci#define RT1305_EN_EFUSE_1P8V_BIT           7
23762306a36Sopenharmony_ci#define RT1305_EN_EFUSE_5V             (1 << 6)
23862306a36Sopenharmony_ci#define RT1305_EN_EFUSE_5V_BIT           6
23962306a36Sopenharmony_ci#define RT1305_EN_VCM_6172           (1 << 5)
24062306a36Sopenharmony_ci#define RT1305_EN_VCM_6172_BIT          5
24162306a36Sopenharmony_ci#define RT1305_POR_EFUSE           (1 << 4)
24262306a36Sopenharmony_ci#define RT1305_POR_EFUSE_BIT             4
24362306a36Sopenharmony_ci
24462306a36Sopenharmony_ci/* Clock Detect (0x3f) */
24562306a36Sopenharmony_ci#define RT1305_SEL_CLK_DET_SRC_MASK			(0x1 << 12)
24662306a36Sopenharmony_ci#define RT1305_SEL_CLK_DET_SRC_SFT			12
24762306a36Sopenharmony_ci#define RT1305_SEL_CLK_DET_SRC_MCLK			(0x0 << 12)
24862306a36Sopenharmony_ci#define RT1305_SEL_CLK_DET_SRC_BCLK			(0x1 << 12)
24962306a36Sopenharmony_ci
25062306a36Sopenharmony_ci
25162306a36Sopenharmony_ci/* System Clock Source */
25262306a36Sopenharmony_cienum {
25362306a36Sopenharmony_ci	RT1305_FS_SYS_PRE_S_MCLK,
25462306a36Sopenharmony_ci	RT1305_FS_SYS_PRE_S_PLL1,
25562306a36Sopenharmony_ci	RT1305_FS_SYS_PRE_S_RCCLK,	/* 98.304M Hz */
25662306a36Sopenharmony_ci};
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_ci/* PLL Source 1/2 */
25962306a36Sopenharmony_cienum {
26062306a36Sopenharmony_ci	RT1305_PLL1_S_BCLK,
26162306a36Sopenharmony_ci	RT1305_PLL2_S_MCLK,
26262306a36Sopenharmony_ci	RT1305_PLL2_S_RCCLK,	/* 98.304M Hz */
26362306a36Sopenharmony_ci};
26462306a36Sopenharmony_ci
26562306a36Sopenharmony_cienum {
26662306a36Sopenharmony_ci	RT1305_AIF1,
26762306a36Sopenharmony_ci	RT1305_AIFS
26862306a36Sopenharmony_ci};
26962306a36Sopenharmony_ci
27062306a36Sopenharmony_ci#define R0_UPPER 0x2E8BA2 //5.5 ohm
27162306a36Sopenharmony_ci#define R0_LOWER 0x666666 //2.5 ohm
27262306a36Sopenharmony_ci
27362306a36Sopenharmony_ci#endif		/* end of _RT1305_H_ */
274