您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ tegra_pinmux_config_table函数代码示例

51自学网 2021-06-03 08:43:27
  C++
这篇教程C++ tegra_pinmux_config_table函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中tegra_pinmux_config_table函数的典型用法代码示例。如果您正苦于以下问题:C++ tegra_pinmux_config_table函数的具体用法?C++ tegra_pinmux_config_table怎么用?C++ tegra_pinmux_config_table使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了tegra_pinmux_config_table函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: tegranote7c_pinmux_init

int __init tegranote7c_pinmux_init(void){	tegranote7c_gpio_init_configure();	tegra_drive_pinmux_config_table(tegranote7c_drive_pinmux,					ARRAY_SIZE(tegranote7c_drive_pinmux));	tegra_pinmux_config_table(tegranote7c_pinmux_common,				  ARRAY_SIZE(tegranote7c_pinmux_common));	tegra_pinmux_config_table(tegranote7c_unused_pins_lowpower,				  ARRAY_SIZE(tegranote7c_unused_pins_lowpower));	tegra_pinmux_config_table(manual_config_pinmux,		ARRAY_SIZE(manual_config_pinmux));	if (get_tegra_uart_debug_port_id() == UART_FROM_SDCARD)		tegra_pinmux_config_table(e2542_uart_config_pinmux,			ARRAY_SIZE(e2542_uart_config_pinmux));#ifdef CONFIG_PM_SLEEP	tegra11x_set_sleep_pinmux(tegranote7c_sleep_pinmux,		ARRAY_SIZE(tegranote7c_sleep_pinmux));	tegra11x_set_sleep_gpio(tegranote7c_sleep_gpio,		ARRAY_SIZE(tegranote7c_sleep_gpio));#endif	return 0;}
开发者ID:Shaky156,项目名称:Tegra-Note-7,代码行数:26,


示例2: pluto_imx091_power_on

static int pluto_imx091_power_on(struct nvc_regulator *vreg){	int err;	if (unlikely(WARN_ON(!vreg)))		return -EFAULT;	if (pluto_get_extra_regulators())		goto imx091_poweron_fail;	gpio_set_value(CAM1_POWER_DWN_GPIO, 0);	usleep_range(10, 20);	err = regulator_enable(vreg[IMX091_VREG_AVDD].vreg);	if (unlikely(err))		goto imx091_avdd_fail;	err = regulator_enable(vreg[IMX091_VREG_DVDD].vreg);	if (unlikely(err))		goto imx091_dvdd_fail;	err = regulator_enable(vreg[IMX091_VREG_IOVDD].vreg);	if (unlikely(err))		goto imx091_iovdd_fail;	usleep_range(1, 2);	gpio_set_value(CAM1_POWER_DWN_GPIO, 1);	tegra_pinmux_config_table(&mclk_enable, 1);	err = regulator_enable(pluto_i2cvdd);	if (unlikely(err))		goto imx091_i2c_fail;	err = regulator_enable(pluto_vcmvdd);	if (unlikely(err))		goto imx091_vcm_fail;	usleep_range(300, 310);	return 1;imx091_vcm_fail:	regulator_disable(pluto_i2cvdd);imx091_i2c_fail:	tegra_pinmux_config_table(&mclk_disable, 1);	gpio_set_value(CAM1_POWER_DWN_GPIO, 0);	regulator_disable(vreg[IMX091_VREG_IOVDD].vreg);imx091_iovdd_fail:	regulator_disable(vreg[IMX091_VREG_DVDD].vreg);imx091_dvdd_fail:	regulator_disable(vreg[IMX091_VREG_AVDD].vreg);imx091_avdd_fail:imx091_poweron_fail:	pr_err("%s FAILED/n", __func__);	return -ENODEV;}
开发者ID:Lloir,项目名称:nvidia-linux-3.10,代码行数:59,


示例3: pluto_imx132_power_on

static int pluto_imx132_power_on(struct imx132_power_rail *pw){	int err;	if (unlikely(WARN_ON(!pw || !pw->avdd || !pw->iovdd || !pw->dvdd)))		return -EFAULT;	if (pluto_get_extra_regulators())		goto pluto_imx132_poweron_fail;	gpio_set_value(CAM2_POWER_DWN_GPIO, 0);	tegra_pinmux_config_table(&pbb0_enable, 1);	err = regulator_enable(pluto_i2cvdd);	if (unlikely(err))		goto imx132_i2c_fail;	err = regulator_enable(pluto_vcmvdd);	if (unlikely(err))		goto imx132_vcm_fail;	err = regulator_enable(pw->avdd);	if (unlikely(err))		goto imx132_avdd_fail;	err = regulator_enable(pw->dvdd);	if (unlikely(err))		goto imx132_dvdd_fail;	err = regulator_enable(pw->iovdd);	if (unlikely(err))		goto imx132_iovdd_fail;	usleep_range(1, 2);	gpio_set_value(CAM2_POWER_DWN_GPIO, 1);	return 0;imx132_iovdd_fail:	regulator_disable(pw->dvdd);imx132_dvdd_fail:	regulator_disable(pw->avdd);imx132_avdd_fail:	regulator_disable(pluto_vcmvdd);imx132_vcm_fail:	regulator_disable(pluto_i2cvdd);imx132_i2c_fail:	tegra_pinmux_config_table(&pbb0_disable, 1);pluto_imx132_poweron_fail:	pr_err("%s failed./n", __func__);	return -ENODEV;}
开发者ID:Lloir,项目名称:nvidia-linux-3.10,代码行数:59,


示例4: macallan_camera_init

static int macallan_camera_init(void){	tegra_pinmux_config_table(&mclk_disable, 1);	tegra_pinmux_config_table(&pbb0_disable, 1);	i2c_register_board_info(2, macallan_i2c_board_info_e1625,		ARRAY_SIZE(macallan_i2c_board_info_e1625));	return 0;}
开发者ID:StarKissed,项目名称:kernel-roth,代码行数:9,


示例5: keenhi_t40_camera_init

static int keenhi_t40_camera_init(void){	tegra_pinmux_config_table(&mclk_disable, 1);	tegra_pinmux_config_table(&pbb0_disable, 1);		camera_gpio_init();	i2c_register_board_info(2, keenhi_t40_camera_i2c_board_info,		ARRAY_SIZE(keenhi_t40_camera_i2c_board_info));	return 0;}
开发者ID:aicjofs,项目名称:android_kernel_fuhu_t8400n,代码行数:10,


示例6: pluto_camera_init

static int pluto_camera_init(void){	pr_debug("%s: ++/n", __func__);	tegra_pinmux_config_table(&mclk_disable, 1);	tegra_pinmux_config_table(&pbb0_disable, 1);	i2c_register_board_info(2, pluto_i2c_board_info_e1625,		ARRAY_SIZE(pluto_i2c_board_info_e1625));	return 0;}
开发者ID:Lloir,项目名称:nvidia-linux-3.10,代码行数:11,


示例7: tegratab_camera_init

static int tegratab_camera_init(void){#ifndef CONFIG_USE_OF	tegra_pinmux_config_table(&mclk_disable, 1);#endif	tegra_pinmux_config_table(&pbb0_disable, 1);	i2c_register_board_info(2, tegratab_i2c_board_info_e1599,		ARRAY_SIZE(tegratab_i2c_board_info_e1599));	return 0;}
开发者ID:tdro,项目名称:android_kernel_kobo_macallan,代码行数:11,


示例8: endeavoru_pinmux_init

int __init endeavoru_pinmux_init(void){	platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices));	tegra_pinmux_config_table(endeavoru_pinmux_common, ARRAY_SIZE(endeavoru_pinmux_common));	tegra_drive_pinmux_config_table(endeavoru_drive_pinmux,					ARRAY_SIZE(endeavoru_drive_pinmux));		tegra_pinmux_config_table(endeavoru_pinmux_EVT_XE,			ARRAY_SIZE(endeavoru_pinmux_EVT_XE));	return 0;}
开发者ID:kozmikkick,项目名称:tripndroid-endeavoru-3.4,代码行数:12,


示例9: dalmore_pinmux_init

int __init dalmore_pinmux_init(void){	tegra_pinmux_config_table(dalmore_pinmux_set_nontristate,					ARRAY_SIZE(dalmore_pinmux_set_nontristate));	dalmore_gpio_init_configure();	tegra_pinmux_config_table(dalmore_pinmux_common, ARRAY_SIZE(dalmore_pinmux_common));	tegra_drive_pinmux_config_table(dalmore_drive_pinmux,					ARRAY_SIZE(dalmore_drive_pinmux));	tegra_pinmux_config_table(unused_pins_lowpower,		ARRAY_SIZE(unused_pins_lowpower));	return 0;}
开发者ID:StarKissed,项目名称:kernel-roth,代码行数:14,


示例10: tegratab_pinmux_init

int __init tegratab_pinmux_init(void){	tegratab_gpio_init_configure();	tegra_pinmux_config_table(tegratab_pinmux_common,					ARRAY_SIZE(tegratab_pinmux_common));	tegra_drive_pinmux_config_table(tegratab_drive_pinmux,					ARRAY_SIZE(tegratab_drive_pinmux));	tegra_pinmux_config_table(unused_pins_lowpower,		ARRAY_SIZE(unused_pins_lowpower));	tegra_pinmux_config_table(manual_config_pinmux,		ARRAY_SIZE(manual_config_pinmux));	return 0;}
开发者ID:Mrchenkeyu,项目名称:android_kernel_zte_pluto,代码行数:15,


示例11: tegratab_mt9m114_power_on

static int tegratab_mt9m114_power_on(struct mt9m114_power_rail *pw){	int err;	pr_err("%s: exe./n",__func__);	if (unlikely(!pw || !pw->avdd || !pw->iovdd))		return -EFAULT;	gpio_set_value(CAM_RSTN, 0);	usleep_range(1000, 1020);	pr_err("%s: exe 2./n",__func__);	err = regulator_enable(pw->iovdd);	if (unlikely(err))		goto mt9m114_iovdd_fail;	usleep_range(300, 320);	err = regulator_enable(pw->avdd);	if (unlikely(err))		goto mt9m114_avdd_fail;	usleep_range(1000, 1020);	gpio_set_value(CAM_RSTN, 1);	usleep_range(1000, 1020);	tegra_pinmux_config_table(&pbb0_enable, 1);	usleep_range(200, 220);	return 1;mt9m114_avdd_fail:	regulator_disable(pw->iovdd);mt9m114_iovdd_fail:	gpio_set_value(CAM_RSTN, 0);	return -ENODEV;}
开发者ID:aicjofs,项目名称:android_kernel_fuhu_t8400n,代码行数:28,


示例12: tegratab_ov7695_power_on

static int tegratab_ov7695_power_on(struct ov7695_power_rail *pw){	int err;	if (unlikely(!pw || !pw->avdd || !pw->iovdd))		return -EFAULT;	gpio_set_value(CAM2_POWER_DWN_GPIO, 0);	usleep_range(1000, 1020);	err = regulator_enable(pw->iovdd);	if (unlikely(err))		goto ov7695_iovdd_fail;	usleep_range(300, 320);	err = regulator_enable(pw->avdd);	if (unlikely(err))		goto ov7695_avdd_fail;	usleep_range(1000, 1020);	gpio_set_value(CAM2_POWER_DWN_GPIO, 1);	usleep_range(1000, 1020);	tegra_pinmux_config_table(&pbb0_enable, 1);	usleep_range(200, 220);	return 0;ov7695_avdd_fail:	regulator_disable(pw->iovdd);ov7695_iovdd_fail:	gpio_set_value(CAM_RSTN, 0);	return -ENODEV;}
开发者ID:tdro,项目名称:android_kernel_kobo_macallan,代码行数:35,


示例13: x3_pinmux_init

int __init x3_pinmux_init(void){	tegra_pinmux_config_table(x3_pinmux, ARRAY_SIZE(x3_pinmux));	tegra_drive_pinmux_config_table(x3_drive_pinmux,					ARRAY_SIZE(x3_drive_pinmux));	return 0;}
开发者ID:JoinTheRealms,项目名称:CopyCat-Kernel-P880,代码行数:7,


示例14: whistler_baseband_init

int  __init whistler_baseband_init(void){	tegra_pinmux_config_table(whistler_null_ulpi_pinmux,				  ARRAY_SIZE(whistler_null_ulpi_pinmux));	platform_device_register(&icera_baseband_device);	return 0;}
开发者ID:sparkma,项目名称:kernel,代码行数:7,


示例15: macallan_imx091_power_on

static int macallan_imx091_power_on(struct nvc_regulator *vreg){	int err;	if (unlikely(WARN_ON(!vreg)))		return -EFAULT;	gpio_set_value(CAM1_POWER_DWN_GPIO, 0);	usleep_range(10, 20);	err = regulator_enable(vreg[IMX091_VREG_AVDD].vreg);	if (err)		goto imx091_avdd_fail;	err = regulator_enable(vreg[IMX091_VREG_IOVDD].vreg);	if (err)		goto imx091_iovdd_fail;	usleep_range(1, 2);	gpio_set_value(CAM1_POWER_DWN_GPIO, 1);	tegra_pinmux_config_table(&mclk_enable, 1);	usleep_range(300, 310);	return 1;imx091_iovdd_fail:	regulator_disable(vreg[IMX091_VREG_AVDD].vreg);imx091_avdd_fail:	gpio_set_value(CAM1_POWER_DWN_GPIO, 0);	pr_err("%s FAILED/n", __func__);	return -ENODEV;}
开发者ID:StarKissed,项目名称:kernel-roth,代码行数:35,


示例16: adam_pinmux_init

void __init adam_pinmux_init(void){    tegra_pinmux_config_table(adam_pinmux, ARRAY_SIZE(adam_pinmux));    tegra_drive_pinmux_config_table(adam_drive_pinmux,                                    ARRAY_SIZE(adam_drive_pinmux));    tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table));}
开发者ID:devotional,项目名称:android-tegra-2.6.36-adam,代码行数:7,


示例17: kai_mt9p111_power_off

static int kai_mt9p111_power_off(void){	pr_err("%s:==========>EXE/n",__func__);		gpio_set_value(MT9P111_POWER_RST_PIN, 0);       	msleep(5);		if (keenhi_t40_vcmvdd){		regulator_disable(keenhi_t40_vcmvdd);		regulator_put(keenhi_t40_vcmvdd);		keenhi_t40_vcmvdd =NULL;	}	if (macallan_2v8_cam1){		regulator_disable(macallan_2v8_cam1);		regulator_put(macallan_2v8_cam1);		macallan_2v8_cam1 =NULL;	}		tegra_pinmux_config_table(&mclk_disable, 1);		if (macallan_1v8_cam1){		regulator_disable(macallan_1v8_cam1);		regulator_put(macallan_1v8_cam1);		macallan_1v8_cam1 =NULL;	}	gpio_set_value(MT9P111_POWER_DWN_PIN, 1);        	return 0;}
开发者ID:aicjofs,项目名称:android_kernel_fuhu_t8400n,代码行数:29,


示例18: seaboard_pinmux_init

void __init seaboard_pinmux_init(void){	/*	 * PINGROUP_SPIC contains two pins:	 * + PX2, DISABLE_CHRGR (output)	 * + PX3, WM8903 codec IRQ (input)	 *	 * The pinmux module can only configure TRISTATE vs. NORMAL on a	 * per-group rather than per-pin basis. The group must be NORMAL	 * since at least one pin is an output. However, we must ensure that	 * the WM8903 IRQ is never driven, since the WM8903 itself is driving	 * it, and we don't want multiple drivers. To ensure this, configure	 * PX3 as a GPIO here, and set is as an input, before the pinmux table	 * is written, which is when the pins will be un-tristated.	 */	tegra_gpio_enable(TEGRA_GPIO_WM8903_IRQ);	gpio_request(TEGRA_GPIO_WM8903_IRQ, "wm8903");	gpio_direction_input(TEGRA_GPIO_WM8903_IRQ);	/* Ensure the reset line stays high. */	gpio_request(TEGRA_GPIO_RESET, "reset");	gpio_direction_output(TEGRA_GPIO_RESET, 1);	tegra_gpio_enable(TEGRA_GPIO_RESET);	tegra_pinmux_config_table(seaboard_pinmux, ARRAY_SIZE(seaboard_pinmux));	tegra_drive_pinmux_config_table(seaboard_drive_pinmux,					ARRAY_SIZE(seaboard_drive_pinmux));	tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table));}
开发者ID:Kernelhacker,项目名称:2.6.38.3-Adam,代码行数:31,


示例19: tegratab_ov5693_power_on

static int tegratab_ov5693_power_on(struct ov5693_power_rail *pw){	int err;	if (unlikely(!pw || !pw->avdd || !pw->dovdd))		return -EFAULT;	if (tegratab_get_vcmvdd())		goto ov5693_poweron_fail;	gpio_set_value(CAM1_POWER_DWN_GPIO, 0);	usleep_range(10, 20);	err = regulator_enable(pw->avdd);	if (err)		goto ov5693_avdd_fail;	err = regulator_enable(pw->dovdd);	if (err)		goto ov5693_iovdd_fail;	usleep_range(1, 2);	gpio_set_value(CAM1_POWER_DWN_GPIO, 1);	err = regulator_enable(tegratab_vcmvdd);	if (unlikely(err))		goto ov5693_vcmvdd_fail;	tegra_pinmux_config_table(&mclk_enable, 1);	usleep_range(300, 310);	return 0;ov5693_vcmvdd_fail:	regulator_disable(pw->dovdd);ov5693_iovdd_fail:	regulator_disable(pw->avdd);ov5693_avdd_fail:	gpio_set_value(CAM1_POWER_DWN_GPIO, 0);ov5693_poweron_fail:	pr_err("%s FAILED/n", __func__);	return -ENODEV;}
开发者ID:aicjofs,项目名称:android_kernel_fuhu_t8400n,代码行数:33,


示例20: shuttle_pinmux_init

void __init shuttle_pinmux_init(void){	tegra_pinmux_config_table(shuttle_pinmux, ARRAY_SIZE(shuttle_pinmux));	tegra_drive_pinmux_config_table(shuttle_drive_pinmux,		ARRAY_SIZE(shuttle_drive_pinmux));	tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table));}
开发者ID:EnJens,项目名称:android-tegra-2.6.36-adam,代码行数:7,


示例21: dolak_pinmux_init

void __init dolak_pinmux_init(void){	tegra14x_default_pinmux();	tegra_pinmux_config_table(dolak_pinmux, ARRAY_SIZE(dolak_pinmux));	tegra_drive_pinmux_config_table(dolak_drive_pinmux,					ARRAY_SIZE(dolak_drive_pinmux));}
开发者ID:0xroot,项目名称:Blackphone-BP1-Kernel,代码行数:7,


示例22: harmony_pinmux_init

void __init harmony_pinmux_init(void){	tegra_pinmux_config_table(harmony_pinmux, ARRAY_SIZE(harmony_pinmux));	tegra_drive_pinmux_config_table(harmony_drive_pinmux,                                        ARRAY_SIZE(harmony_drive_pinmux));	tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table));}
开发者ID:0709oNEY,项目名称:at100-kernel,代码行数:8,


示例23: n1_pinmux_init

int __init n1_pinmux_init(void){	tegra_pinmux_config_table(n1_pinmux, ARRAY_SIZE(n1_pinmux));	tegra_drive_pinmux_config_table(n1_drive_pinmux,					ARRAY_SIZE(n1_drive_pinmux));	tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table));	return 0;}
开发者ID:Kick-Buttowski,项目名称:LiteKernel---Glide,代码行数:8,


示例24: grouper_pinmux_init

int __init grouper_pinmux_init(void){	struct board_info board_info;	tegra_get_board_info(&board_info);	BUG_ON(board_info.board_id != BOARD_E1565);	grouper_gpio_init_configure();	tegra_pinmux_config_table(grouper_pinmux_common, ARRAY_SIZE(grouper_pinmux_common));	tegra_drive_pinmux_config_table(grouper_drive_pinmux,					ARRAY_SIZE(grouper_drive_pinmux));	tegra_pinmux_config_table(unused_pins_lowpower,		ARRAY_SIZE(unused_pins_lowpower));	grouper_pinmux_audio_init();	return 0;}
开发者ID:Tasssadar,项目名称:kernel_nexus,代码行数:17,


示例25: p1852_pinmux_init

int __init p1852_pinmux_init(void){	tegra_pinmux_config_table(p1852_pinmux_common,					ARRAY_SIZE(p1852_pinmux_common));	tegra_drive_pinmux_config_table(p1852_drive_pinmux,			ARRAY_SIZE(p1852_drive_pinmux));	return 0;}
开发者ID:0709oNEY,项目名称:at100-kernel,代码行数:8,



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


C++ tell函数代码示例
C++ tegra_gpio_enable函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。