本文整理汇总了C++中SAW_VREG_INIT函数的典型用法代码示例。如果您正苦于以下问题:C++ SAW_VREG_INIT函数的具体用法?C++ SAW_VREG_INIT怎么用?C++ SAW_VREG_INIT使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SAW_VREG_INIT函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GPIO_VREG
/* GPIO regulator constraints */
struct gpio_regulator_platform_data msm_gpio_regulator_pdata[] __devinitdata = {
/* ID vreg_name gpio_label gpio supply */
GPIO_VREG(EXT_5V, "ext_5v", "ext_5v_en", PM8921_MPP_PM_TO_SYS(7), NULL),
GPIO_VREG(EXT_L2, "ext_l2", "ext_l2_en", 91, NULL),
GPIO_VREG(EXT_3P3V, "ext_3p3v", "ext_3p3v_en",
PM8921_GPIO_PM_TO_SYS(17), NULL),
GPIO_VREG(EXT_OTG_SW, "ext_otg_sw", "ext_otg_sw_en",
PM8921_GPIO_PM_TO_SYS(42), "8921_usb_otg"),
};
/* SAW regulator constraints */
struct regulator_init_data msm_saw_regulator_pdata_s5 =
/* ID vreg_name min_uV max_uV */
SAW_VREG_INIT(S5, "8921_s5", 850000, 1300000);
struct regulator_init_data msm_saw_regulator_pdata_s6 =
SAW_VREG_INIT(S6, "8921_s6", 850000, 1300000);
/* PM8921 regulator constraints */
struct pm8xxx_regulator_platform_data
msm_pm8921_regulator_pdata[] __devinitdata = {
/*
* ID name always_on pd min_uV max_uV en_t supply
* system_uA reg_ID
*/
PM8XXX_NLDO1200(L26, "8921_l26", 0, 1, 375000, 1050000, 200, "8921_s7",
0, 1),
PM8XXX_NLDO1200(L27, "8921_l27", 0, 1, 375000, 1050000, 200, "8921_s7",
0, 2),
PM8XXX_NLDO1200(L28, "8921_l28", 0, 1, 375000, 1050000, 200, "8921_s7",
示例2: GPIO_VREG
/* ID vreg_name gpio_label gpio supply */
GPIO_VREG(EXT_5V, "ext_5v", "ext_5v_en",
PM8921_MPP_PM_TO_SYS(7), NULL),
GPIO_VREG(EXT_3P3V, "ext_3p3v", "ext_3p3v_en",
monarudo_EXT_3P3V_REG_EN_GPIO, NULL),
//GPIO_VREG(EXT_TS_SW, "ext_ts_sw", "ext_ts_sw_en",
// PM8921_GPIO_PM_TO_SYS(23), "ext_3p3v"),
GPIO_VREG(EXT_MPP8, "ext_mpp8", "ext_mpp8_en",
PM8921_MPP_PM_TO_SYS(8), NULL),
};
/* SAW regulator constraints */
struct regulator_init_data monarudo_saw_regulator_pdata_8921_s5 =
/* ID vreg_name min_uV max_uV */
#ifdef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(S5, "8921_s5", 850000, 1450000);
#else
SAW_VREG_INIT(S5, "8921_s5", 850000, 1300000);
#endif
struct regulator_init_data monarudo_saw_regulator_pdata_8921_s6 =
#ifdef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(S6, "8921_s6", 850000, 1450000);
#else
SAW_VREG_INIT(S6, "8921_s6", 850000, 1300000);
#endif
struct regulator_init_data monarudo_saw_regulator_pdata_8821_s0 =
/* ID vreg_name min_uV max_uV */
#ifdef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(8821_S0, "8821_s0", 850000, 1450000);
#else
示例3: GPIO_VREG
struct gpio_regulator_platform_data
mpq8064_gpio_regulator_pdata[] __devinitdata = {
GPIO_VREG(FRC_5V, "frc_5v", "frc_5v_en", SX150X_GPIO(4, 10), NULL),
GPIO_VREG(AVC_1P2V, "avc_1p2v", "avc_1p2v_en", SX150X_GPIO(4, 2), NULL),
GPIO_VREG(AVC_1P8V, "avc_1p8v", "avc_1p8v_en", SX150X_GPIO(4, 4), NULL),
GPIO_VREG(AVC_2P2V, "avc_2p2v", "avc_2p2v_en",
SX150X_GPIO(4, 14), NULL),
GPIO_VREG(AVC_5V, "avc_5v", "avc_5v_en", SX150X_GPIO(4, 3), NULL),
GPIO_VREG(AVC_3P3V, "avc_3p3v", "avc_3p3v_en",
SX150X_GPIO(4, 15), "avc_5v"),
};
/* SAW regulator constraints */
struct regulator_init_data msm8064_saw_regulator_pdata_8921_s5 =
/* ID vreg_name min_uV max_uV */
SAW_VREG_INIT(S5, "8921_s5", 850000, 1300000);
struct regulator_init_data msm8064_saw_regulator_pdata_8921_s6 =
SAW_VREG_INIT(S6, "8921_s6", 850000, 1300000);
struct regulator_init_data msm8064_saw_regulator_pdata_8821_s0 =
/* ID vreg_name min_uV max_uV */
SAW_VREG_INIT(8821_S0, "8821_s0", 850000, 1300000);
struct regulator_init_data msm8064_saw_regulator_pdata_8821_s1 =
SAW_VREG_INIT(8821_S1, "8821_s1", 850000, 1300000);
/* PM8921 regulator constraints */
struct pm8xxx_regulator_platform_data
msm8064_pm8921_regulator_pdata[] __devinitdata = {
/*
* ID name always_on pd min_uV max_uV en_t supply
* system_uA reg_ID
示例4: GPIO_VREG
/* GPIO regulator constraints */
struct gpio_regulator_platform_data msm_gpio_regulator_pdata[] __devinitdata = {
/* ID vreg_name gpio_label gpio supply */
GPIO_VREG(EXT_5V, "ext_5v", "ext_5v_en", PM8921_MPP_PM_TO_SYS(7), NULL),
GPIO_VREG(EXT_L2, "ext_l2", "ext_l2_en", 91, NULL),
GPIO_VREG(EXT_3P3V, "ext_3p3v", "ext_3p3v_en",
PM8921_GPIO_PM_TO_SYS(17), NULL),
GPIO_VREG(EXT_OTG_SW, "ext_otg_sw", "ext_otg_sw_en",
PM8921_GPIO_PM_TO_SYS(42), "8921_usb_otg"),
};
/* SAW regulator constraints */
struct regulator_init_data msm_saw_regulator_pdata_s5 =
/* ID vreg_name min_uV max_uV */
SAW_VREG_INIT(S5, "8921_s5", 400000, 1400000);
struct regulator_init_data msm_saw_regulator_pdata_s6 =
SAW_VREG_INIT(S6, "8921_s6", 400000, 1400000);
/* PM8921 regulator constraints */
struct pm8xxx_regulator_platform_data
msm_pm8921_regulator_pdata[] __devinitdata = {
/*
* ID name always_on pd min_uV max_uV en_t supply
* system_uA reg_ID
*/
PM8XXX_NLDO1200(L26, "8921_l26", 0, 1, 1050000, 1050000, 200, "8921_s7",
0, 1),
PM8XXX_NLDO1200(L27, "8921_l27", 0, 1, 1050000, 1050000, 200, "8921_s7",
0, 2),
PM8XXX_NLDO1200(L28, "8921_l28", 0, 1, 1050000, 1050000, 200, "8921_s7",
示例5: GPIO_VREG
struct gpio_regulator_platform_data
m7_gpio_regulator_pdata[] __devinitdata = {
GPIO_VREG(EXT_5V, "ext_5v", "ext_5v_en", PM8921_MPP_PM_TO_SYS(7), NULL),
GPIO_VREG(EXT_MPP8, "ext_mpp8", "ext_mpp8_en",
PM8921_MPP_PM_TO_SYS(8), NULL),
};
struct regulator_init_data m7_saw_regulator_pdata_8921_s5 =
#ifdef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(S5, "8921_s5", 600000, 1400000);
#else
SAW_VREG_INIT(S5, "8921_s5", 600000, 1300000);
#endif
struct regulator_init_data m7_saw_regulator_pdata_8921_s6 =
#ifdef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(S6, "8921_s6", 600000, 1400000);
#else
SAW_VREG_INIT(S6, "8921_s6", 600000, 1300000);
#endif
struct regulator_init_data m7_saw_regulator_pdata_8821_s0 =
#ifdef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(8821_S0, "8821_s0", 600000, 1400000);
#else
SAW_VREG_INIT(8821_S0, "8821_s0", 600000, 1300000);
示例6: ARRAY_SIZE
.num_consumer_supplies = ARRAY_SIZE(vreg_consumers_##_id), \
.consumer_supplies = vreg_consumers_##_id, \
}
/* GPIO regulator constraints */
struct gpio_regulator_platform_data
msm8930_gpio_regulator_pdata[] __devinitdata = {
/* ID vreg_name gpio_label gpio supply */
GPIO_VREG(EXT_5V, "ext_5v", "ext_5v_en", 63, NULL),
GPIO_VREG(EXT_OTG_SW, "ext_otg_sw", "ext_otg_sw_en", 97, "ext_5v"),
};
/* SAW regulator constraints */
struct regulator_init_data msm8930_saw_regulator_core0_pdata =
/* ID vreg_name min_uV max_uV */
SAW_VREG_INIT(S5, "8038_s5", 400000, 1400000);
struct regulator_init_data msm8930_saw_regulator_core1_pdata =
SAW_VREG_INIT(S6, "8038_s6", 400000, 1400000);
/* PM8038 regulator constraints */
struct pm8xxx_regulator_platform_data
msm8930_pm8038_regulator_pdata[] __devinitdata = {
/*
* ID name always_on pd min_uV max_uV en_t supply
* system_uA reg_ID
*/
PM8XXX_NLDO1200(L16, "8038_l16", 0, 1, 375000, 1050000, 200, "8038_s3",
0, 0),
PM8XXX_NLDO1200(L19, "8038_l19", 0, 1, 375000, 1050000, 200, "8038_s3",
0, 1),
PM8XXX_NLDO1200(L27, "8038_l27", 0, 1, 375000, 1050000, 200, "8038_s3",
示例7: ARRAY_SIZE
.max_uV = _max_uV, \
}, \
.num_consumer_supplies = ARRAY_SIZE(vreg_consumers_##_id), \
.consumer_supplies = vreg_consumers_##_id, \
}
/* GPIO regulator constraints */
struct gpio_regulator_platform_data
msm8930_pm8917_gpio_regulator_pdata[] __devinitdata = {
/* ID vreg_name gpio_label gpio supply */
};
/* SAW regulator constraints */
struct regulator_init_data msm8930_pm8917_saw_regulator_core0_pdata =
/* ID vreg_name min_uV max_uV */
SAW_VREG_INIT(S5, "8917_s5", 600000, 1300000);
struct regulator_init_data msm8930_pm8917_saw_regulator_core1_pdata =
SAW_VREG_INIT(S6, "8917_s6", 600000, 1300000);
/* PM8917 regulator constraints */
struct pm8xxx_regulator_platform_data
msm8930_pm8917_regulator_pdata[] __devinitdata = {
/*
* ID name always_on pd min_uV max_uV en_t supply
* system_uA reg_ID
*/
PM8XXX_NLDO1200(L26, "8921_l26", 0, 1, 375000, 1050000, 200, "8917_s7",
0, 0),
PM8XXX_NLDO1200(L27, "8921_l27", 0, 1, 375000, 1050000, 200, "8917_s7",
0, 1),
PM8XXX_NLDO1200(L28, "8921_l28", 0, 1, 375000, 1050000, 200, "8917_s7",
示例8: ARRAY_SIZE
.max_uV = _max_uV, \
}, \
.num_consumer_supplies = ARRAY_SIZE(vreg_consumers_##_id), \
.consumer_supplies = vreg_consumers_##_id, \
}
/* GPIO regulator constraints */
struct gpio_regulator_platform_data
msm8930_pm8917_gpio_regulator_pdata[] __devinitdata = {
/* ID vreg_name gpio_label gpio supply */
};
/* SAW regulator constraints */
struct regulator_init_data msm8930_pm8917_saw_regulator_core0_pdata =
/* ID vreg_name min_uV max_uV */
SAW_VREG_INIT(S5, "8038_s5", 590000, 1300000);
struct regulator_init_data msm8930_pm8917_saw_regulator_core1_pdata =
SAW_VREG_INIT(S6, "8038_s6", 590000, 1300000);
/* PM8917 regulator constraints */
struct pm8xxx_regulator_platform_data
msm8930_pm8917_regulator_pdata[] __devinitdata = {
/*
* ID name always_on pd min_uV max_uV en_t supply
* system_uA reg_ID
*/
PM8XXX_NLDO1200(L26, "8921_l26", 0, 1, 375000, 1050000, 200, "8917_s7",
0, 0),
PM8XXX_NLDO1200(L27, "8921_l27", 0, 1, 375000, 1050000, 200, "8917_s7",
0, 1),
PM8XXX_NLDO1200(L28, "8921_l28", 0, 1, 375000, 1050000, 200, "8917_s7",
示例9: SAW_VREG_INIT
.dev = {
.platform_data = &msm_gpio_regulator_pdata[GPIO_VREG_ID_EXT_L2],
},
};
struct platform_device msm8960_device_rpm_regulator __devinitdata = {
.name = "rpm-regulator",
.id = -1,
.dev = {
.platform_data = &msm_rpm_regulator_pdata,
},
};
struct regulator_init_data msm_saw_regulator_pdata_s5 =
#ifndef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(S5, "8921_s5", 700000, 1300000);
#else
SAW_VREG_INIT(S5, "8921_s5", 700000, 1425000);
#endif
struct regulator_init_data msm_saw_regulator_pdata_s6 =
#ifndef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(S6, "8921_s6", 700000, 1300000);
#else
SAW_VREG_INIT(S6, "8921_s6", 700000, 1425000);
#endif
struct pm8xxx_regulator_platform_data
msm_pm8921_regulator_pdata[] __devinitdata = {
PM8XXX_NLDO1200(L26, "8921_l26", 0, 1, 375000, 1050000, 200, "8921_s7",
0, 1),
PM8XXX_NLDO1200(L27, "8921_l27", 0, 1, 375000, 1050000, 200, "8921_s7",
示例10: ARRAY_SIZE
.max_uV = _max_uV, \
}, \
.num_consumer_supplies = ARRAY_SIZE(vreg_consumers_##_id), \
.consumer_supplies = vreg_consumers_##_id, \
}
struct gpio_regulator_platform_data
msm8930_gpio_regulator_pdata[] __devinitdata = {
GPIO_VREG(EXT_5V, "ext_5v", "ext_5v_en", 63, NULL),
GPIO_VREG(EXT_OTG_SW, "ext_otg_sw", "ext_otg_sw_en", 97, "ext_5v"),
};
struct regulator_init_data msm8930_saw_regulator_core0_pdata =
#ifdef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(S5, "8038_s5", 850000, 1400000);
#else
SAW_VREG_INIT(S5, "8038_s5", 850000, 1300000);
#endif
struct regulator_init_data msm8930_saw_regulator_core1_pdata =
#ifdef CONFIG_CPU_OVERCLOCK
SAW_VREG_INIT(S6, "8038_s6", 850000, 1400000);
#else
SAW_VREG_INIT(S6, "8038_s6", 850000, 1300000);
#endif
struct pm8xxx_regulator_platform_data
msm8930_pm8038_regulator_pdata[] __devinitdata = {
PM8XXX_NLDO1200(L16, "8038_l16", 0, 1, 375000, 1050000, 200, "8038_s3",
0, 0),
PM8XXX_NLDO1200(L19, "8038_l19", 0, 1, 375000, 1050000, 200, "8038_s3",