当前位置: 首页>>代码示例>>C++>>正文


C++ SAW_VREG_INIT函数代码示例

本文整理汇总了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",
开发者ID:Astrali,项目名称:kernel_msm8625q_f1,代码行数:30,代码来源:board-8960-regulator.c

示例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
开发者ID:boa19861105,项目名称:DNA_JB_KERNEL_2,代码行数:31,代码来源:board-monarudo-regulator.c

示例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
开发者ID:SmokyBob,项目名称:android_kernel_asus_padfone2,代码行数:31,代码来源:board-8064-regulator.c

示例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",
开发者ID:olegfusion,项目名称:IM-A830S_kernel,代码行数:30,代码来源:board-8960-regulator.c

示例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);
开发者ID:antaril,项目名称:AGK-LOLLIPOP_GPE,代码行数:31,代码来源:board-m7-regulator.c

示例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",
开发者ID:JmzTaylor,项目名称:android_kernel_htc_totemc2,代码行数:31,代码来源:board-tc2-regulator.c

示例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",
开发者ID:kh007im,项目名称:Ngawi-XL,代码行数:31,代码来源:board-8930-regulator-pm8917.c

示例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",
开发者ID:muftiarfan,项目名称:Sony_xperia_m_ktt,代码行数:31,代码来源:board-8930-regulator-pm8917.c

示例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",
开发者ID:Professor-Chaos,项目名称:bricked-ville-3.4,代码行数:31,代码来源:board-ville-regulator.c

示例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",
开发者ID:vl197602,项目名称:master,代码行数:31,代码来源:board-k2_ul-regulator.c


注:本文中的SAW_VREG_INIT函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。