|
6253 0936版本存在马达长震和无法识别T卡问题,据说是MTK一个bug,VMC/VIBR LDO寄存器和PIN不匹配导致,
我尝试着改了一下寄存器,马达倒是好了,但T卡的2.8V还是无法输出,有哪位兄弟遇到过,请指点一下。
我的修改:
#if 0
#define PMIC_VBT_CON (PMU_BASE+0x824)
#else
#define PMIC_DRIVER_CON4 (PMU_BASE+0x824)
#endif
#if 0
#define PMIC_DRIVER_CON4 (PMU_BASE+0x890)
#else
#define PMIC_VBT_CON (PMU_BASE+0x890)
#endif
#if 0
// (0x824) VBT CON
#define VBT_EN_MASK 0x0001
#define VBT_EN_SHIFT 0
#define VBT_CAL_MASK 0x00F0
#define VBT_CAL_SHIFT 4
#define VBT_SEL_MASK 0x0400
#define VBT_SEL_SHIFT 10
#define VBT_OCFB_EN_MASK 0x1000
#define VBT_OCFB_EN_SHIFT 12
#define VBT_STATUS_MASK 0x8000
#define VBT_STATUS_SHIFT 15
#else
// (0x824) PMIC_DRIVER_CON4
#define CCI_VIBR_EN_MASK 0x0001
#define CCI_VIBR_EN_SHIFT 0
#define VIBR_CAL_MASK 0x00F0
#define VIBR_CAL_SHIFT 4
#define VIBR_SEL_MASK 0x0400
#define VIBR_SEL_SHIFT 10
#define VIBR_OCFB_EN_MASK 0x1000
#define VIBR_OCFB_EN_SHIFT 12
#define VIBR_STATUS_MASK 0x8000
#define VIBR_STATUS_SHIFT 15
#endif
#if 0
// (0x890) DRIVER CON4
#define CCI_VIBR_EN_MASK 0x0001
#define CCI_VIBR_EN_SHIFT 0
#define VIBR_SEL_MASK 0x000C
#define VIBR_SEL_SHIFT 2
#define VIBR_CAL_MASK 0x00F0
#define VIBR_CAL_SHIFT 4
#define VIBR_OCFB_EN_MASK 0x1000
#define VIBR_OCFB_EN_SHIFT 12
#define VIBR_STATUS_MASK 0x8000
#define VIBR_STATUS_SHIFT 15
#else
// (0x890) VBT CON ==> VBT move to 0x890
#define VBT_EN_MASK 0x0001
#define VBT_EN_SHIFT 0
#define VBT_SEL_MASK 0x000C
#define VBT_SEL_SHIFT 2
#define VBT_CAL_MASK 0x00F0
#define VBT_CAL_SHIFT 4
#define VBT_OCFB_EN_MASK 0x1000
#define VBT_OCFB_EN_SHIFT 12
#define VBT_STATUS_MASK 0x8000
#define VBT_STATUS_SHIFT 15
#endif
#if 0
// (0x824) VBT CON ==> VBT move to 0x890
typedef enum{
VBT_SEL_2_8V = 0,
VBT_SEL_3_0V
}pmu6253_vbt_sel_enum;
#else
// (0x890) VBT CON
typedef enum{
VBT_SEL_1_5V = 0,
VBT_SEL_1_8V,
VBT_SEL_2_5V,
VBT_SEL_3_0V
}pmu6253_vbt_sel_enum;
#endif
#if 0
// (0x890) DRIVER CON4
typedef enum{
VIBR_SEL_1_5V = 0,
VIBR_SEL_1_8V,
VIBR_SEL_2_5V,
VIBR_SEL_3_0V
}pmu6253_vibr_sel_enum;
#else
// (0x824) DRIVER CON4
typedef enum{
VIBR_SEL_2_8V = 0,
VIBR_SEL_3_0V
}pmu6253_vibr_sel_enum;
#endif |
|