• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ s3c_set_platdata函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: exynos4_dwmci_set_platdata

void __init exynos4_dwmci_set_platdata(struct dw_mci_board *pd)
{
	struct dw_mci_board *npd;

	npd = s3c_set_platdata(pd, sizeof(struct dw_mci_board),
			&exynos4_device_dwmci);

	if (!npd->init)
		npd->init = exynos4_dwmci_init;
	if (!npd->get_bus_wd)
		npd->get_bus_wd = exynos4_dwmci_get_bus_wd;
}
开发者ID:08opt,项目名称:linux,代码行数:12,代码来源:dev-dwmci.c


示例2: s5p_otg_set_platdata

void __init s5p_otg_set_platdata(struct s5p_otg_platdata *pd)
{
	struct s5p_otg_platdata *npd;

	npd = s3c_set_platdata(pd, sizeof(struct s5p_otg_platdata),
		&s3c_device_usbgadget);

	if (!npd->phy_init)
		npd->phy_init = s5p_usb_phy_init;
	if (!npd->phy_exit)
		npd->phy_exit = s5p_usb_phy_exit;
}
开发者ID:5victor,项目名称:linux-tiny210v2,代码行数:12,代码来源:dev-hsdevice.c


示例3: s3c_hsotg_set_platdata

void __init s3c_hsotg_set_platdata(struct s3c_hsotg_plat *pd)
{
    struct s3c_hsotg_plat *npd;

    npd = s3c_set_platdata(pd, sizeof(struct s3c_hsotg_plat),
                           &s3c_device_usb_hsotg);

    if (!npd->phy_init)
        npd->phy_init = s5p_usb_phy_init;
    if (!npd->phy_exit)
        npd->phy_exit = s5p_usb_phy_exit;
}
开发者ID:alessandroste,项目名称:testBSP,代码行数:12,代码来源:devs.c


示例4: s5p_ohci_set_platdata

void __init s5p_ohci_set_platdata(struct s5p_ohci_platdata *pd)
{
	struct s5p_ohci_platdata *npd;

	npd = s3c_set_platdata(pd, sizeof(struct s5p_ohci_platdata),
			&s5p_device_ohci);

	if (!npd->phy_init)
		npd->phy_init = s5p_usb_phy_init;
	if (!npd->phy_exit)
		npd->phy_exit = s5p_usb_phy_exit;
}
开发者ID:MaxLustig,项目名称:android_kernel_samsung_galaxys2,代码行数:12,代码来源:dev-ohci.c


示例5: s5p_usbswitch_set_platdata

void __init s5p_usbswitch_set_platdata(struct s5p_usbswitch_platdata *pd)
{
	struct s5p_usbswitch_platdata *npd;

	npd = s3c_set_platdata(pd, sizeof(struct s5p_usbswitch_platdata),
			&s5p_device_usbswitch);

	s5p_usbswitch_resource[0].start = gpio_to_irq(npd->gpio_host_detect);
	s5p_usbswitch_resource[0].end = gpio_to_irq(npd->gpio_host_detect);

	s5p_usbswitch_resource[1].start = gpio_to_irq(npd->gpio_device_detect);
	s5p_usbswitch_resource[1].end = gpio_to_irq(npd->gpio_device_detect);
}
开发者ID:1yankeedt,项目名称:D710BST_FL24_Kernel,代码行数:13,代码来源:dev-ehci.c


示例6: s3c_i2c0_set_platdata

void __init s3c_i2c0_set_platdata(struct s3c2410_platform_i2c *pd)
{
	struct s3c2410_platform_i2c *npd;

	if (!pd)
		pd = &default_i2c_data;

	npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c),
			       &s3c_device_i2c0);

	if (!npd->cfg_gpio)
		npd->cfg_gpio = s3c_i2c0_cfg_gpio;
}
开发者ID:CSCLOG,项目名称:beaglebone,代码行数:13,代码来源:dev-i2c0.c


示例7: goni_machine_init

static void __init goni_machine_init(void)
{
	/* Radio: call before I2C 1 registeration */
	goni_radio_init();

	/* I2C0 */
	s3c_i2c0_set_platdata(NULL);

	/* I2C1 */
	s3c_i2c1_set_platdata(NULL);
	i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs));

	/* TSP: call before I2C 2 registeration */
	goni_tsp_init();

	/* I2C2 */
	s3c_i2c2_set_platdata(&i2c2_data);
	i2c_register_board_info(2, i2c2_devs, ARRAY_SIZE(i2c2_devs));

	/* PMIC */
	goni_pmic_init();
	i2c_register_board_info(AP_I2C_GPIO_PMIC_BUS_4, i2c_gpio_pmic_devs,
			ARRAY_SIZE(i2c_gpio_pmic_devs));
	/* SDHCI */
	goni_setup_sdhci();

	/* SOUND */
	goni_sound_init();
	i2c_register_board_info(AP_I2C_GPIO_BUS_5, i2c_gpio5_devs,
			ARRAY_SIZE(i2c_gpio5_devs));

	/* FB */
	s3c_fb_set_platdata(&goni_lcd_pdata);

	/* FIMC */
	s3c_set_platdata(&goni_fimc_md_platdata, sizeof(goni_fimc_md_platdata),
			 &s5p_device_fimc_md);

	goni_camera_init();

	/* SPI */
	spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info));

	/* KEYPAD */
	samsung_keypad_set_platdata(&keypad_data);

	clk_xusbxti.rate = 24000000;

	platform_add_devices(goni_devices, ARRAY_SIZE(goni_devices));
}
开发者ID:5victor,项目名称:linux,代码行数:50,代码来源:mach-goni.c


示例8: samsung_pwm_set_platdata

void __init samsung_pwm_set_platdata(struct samsung_pwm_platdata *pd)
{
	int i;

	BUG_ON(!pd);

	/*
	 * Each 5 PWM Timers have own platform_device, but
	 * only one platform_data is valid for all of PWMs
	 */
	for (i = 0 ; i < 5; i++)
		s3c_set_platdata(pd, sizeof(struct samsung_pwm_platdata),
				&s3c_device_timer[i]);
}
开发者ID:Startrek852,项目名称:android_kernel_samsung_gardalte,代码行数:14,代码来源:devs.c


示例9: exynos_dwmci_set_platdata

void __init exynos_dwmci_set_platdata(struct dw_mci_board *pd)
{
	struct dw_mci_board *npd = NULL;

	if ((soc_is_exynos4210()) ||
		soc_is_exynos4212() || soc_is_exynos4412()) {
		npd = s3c_set_platdata(pd, sizeof(struct dw_mci_board), &exynos_device_dwmci);
	} else {
		printk("dwmci platform data support only exynos4/5!\n");
#ifdef CONFIG_SLP
	npd = s3c_set_platdata(pd, sizeof(struct dw_mci_board),
			&exynos_device_dwmci);
#endif
	}

	if (npd) {
	if (!npd->init)
		npd->init = exynos_dwmci_init;
	if (!npd->get_bus_wd)
		npd->get_bus_wd = exynos_dwmci_get_bus_wd;
		if (!npd->set_io_timing)
			npd->set_io_timing = exynos_dwmci_set_io_timing;
	}
}
开发者ID:tobetter,项目名称:hardkernel-kernel-4412,代码行数:24,代码来源:dev-dwmci.c


示例10: s3c64xx_spi1_set_platdata

void __init s3c64xx_spi1_set_platdata(int (*cfg_gpio)(void), int src_clk_nr,
						int num_cs)
{
	/* Reject invalid configuration */
	if (!num_cs || src_clk_nr < 0) {
		pr_err("%s: Invalid SPI configuration\n", __func__);
		return;
	}

	pd.num_cs = num_cs;
	pd.src_clk_nr = src_clk_nr;
	pd.cfg_gpio = (cfg_gpio) ? cfg_gpio : s3c64xx_spi1_cfg_gpio;

	s3c_set_platdata(&pd, sizeof(pd), &s3c64xx_device_spi1);
}
开发者ID:ArthySundaram,项目名称:chromeos-kvm,代码行数:15,代码来源:devs.c


示例11: s3c24xx_fb_set_platdata

void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *pd)
{
	struct s3c2410fb_mach_info *npd;

	npd = s3c_set_platdata(pd, sizeof(*npd), &s3c_device_lcd);
	if (npd) {
		npd->displays = kmemdup(pd->displays,
			sizeof(struct s3c2410fb_display) * npd->num_displays,
			GFP_KERNEL);
		if (!npd->displays)
			printk(KERN_ERR "no memory for LCD display data\n");
	} else {
		printk(KERN_ERR "no memory for LCD platform data\n");
	}
}
开发者ID:BennyBoy-LagoonCompany,项目名称:linux,代码行数:15,代码来源:devs.c


示例12: s5p_fimg2d_set_platdata

void __init s5p_fimg2d_set_platdata(struct fimg2d_platdata *pd)
{
    struct fimg2d_platdata *npd;

    if (soc_is_exynos4210()) {
        s5p_fimg2d_resource[0].start = S5P_PA_FIMG2D_3X;
        s5p_fimg2d_resource[0].end = S5P_PA_FIMG2D_3X + SZ_4K - 1;
    }

    if (!pd)
        pd = &default_fimg2d_data;

    npd = s3c_set_platdata(pd, sizeof(struct fimg2d_platdata),
                           &s5p_device_fimg2d);
}
开发者ID:dangordon1212,项目名称:sgs4duos_kernel,代码行数:15,代码来源:dev-fimg2d.c


示例13: s3c_i2c5_set_platdata

void __init s3c_i2c5_set_platdata(struct s3c2410_platform_i2c *pd)
{
	struct s3c2410_platform_i2c *npd;

	if (!pd) {
		pd = &touch_300k_i2c_data;
		pd->bus_num = 5;
	}

	npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c),
			       &s3c_device_i2c5);

	if (!npd->cfg_gpio)
		npd->cfg_gpio = s3c_i2c5_cfg_gpio;
}
开发者ID:ugur2323,项目名称:Whispermehmet_VE,代码行数:15,代码来源:dev-i2c5.c


示例14: s3c_i2c7_set_platdata

void __init s3c_i2c7_set_platdata(struct s3c2410_platform_i2c *pd)
{
	struct s3c2410_platform_i2c *npd;

	if (!pd) {
		pd = &default_i2c_data;
		pd->bus_num = 7;
	}

	npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c),
			       &s3c_device_i2c7);

	if (!npd->cfg_gpio)
		npd->cfg_gpio = s3c_i2c7_cfg_gpio;
}
开发者ID:BennyBoy-LagoonCompany,项目名称:linux,代码行数:15,代码来源:devs.c


示例15: s5p_ehci_set_platdata

void __init s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd)
{
	struct s5p_ehci_platdata *npd;

	npd = s3c_set_platdata(pd, sizeof(struct s5p_ehci_platdata),
			&s5p_device_ehci);

	if (!npd->phy_init)
		npd->phy_init = s5p_usb_phy_init;
	if (!npd->phy_exit)
		npd->phy_exit = s5p_usb_phy_exit;
	if (!npd->phy_suspend)
		npd->phy_suspend = s5p_usb_phy_suspend;
	if (!npd->phy_resume)
		npd->phy_resume = s5p_usb_phy_resume;
}
开发者ID:Startrek852,项目名称:android_kernel_samsung_gardalte,代码行数:16,代码来源:devs.c


示例16: s5p_usbgadget_set_platdata

void __init s5p_usbgadget_set_platdata(struct s5p_usbgadget_platdata *pd)
{
	struct s5p_usbgadget_platdata *npd;

	if (!pd)
		pd = &default_gadget_pd;
	
	npd = s3c_set_platdata(pd, sizeof(struct s5p_usbgadget_platdata),
			&s3c_device_usbgadget);
	if(!npd->phy_power)
		npd->phy_power = s5p_usb_phy_power;
	if (!npd->phy_init)
		npd->phy_init = s5p_usb_phy_init;
	if (!npd->phy_exit)
		npd->phy_exit = s5p_usb_phy_exit;
}
开发者ID:Abioy,项目名称:meizu-mx-kernel,代码行数:16,代码来源:dev-usbgadget.c


示例17: touch_s3c_i2c5_set_platdata

void touch_s3c_i2c5_set_platdata(struct s3c2410_platform_i2c *pd, int check_value)
{
	struct s3c2410_platform_i2c *npd;

	if(check_value==0) // 100k
		pd = &touch_100k_i2c_data;
	else // 350k
		pd = &touch_300k_i2c_data;

	pd->bus_num = 5;
	
	npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c),
			       &s3c_device_i2c5);

	//if (!npd->cfg_gpio)
		npd->cfg_gpio = s3c_i2c5_cfg_gpio;
}
开发者ID:ugur2323,项目名称:Whispermehmet_VE,代码行数:17,代码来源:dev-i2c5.c


示例18: s5p_i2c_hdmiphy_set_platdata

void __init s5p_i2c_hdmiphy_set_platdata(struct s3c2410_platform_i2c *pd)
{
	if (!pd) {
		pd = &default_i2c_data;

		if (soc_is_exynos4210())
			pd->bus_num = 8;
		else if (soc_is_s5pv210())
			pd->bus_num = 3;
		else if (soc_is_exynos5250())
			pd->bus_num = 8;
		else
			pd->bus_num = 0;
	}

	s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c),
			       &s5p_device_i2c_hdmiphy);
}
开发者ID:Startrek852,项目名称:android_kernel_samsung_gardalte,代码行数:18,代码来源:devs.c


示例19: s3c_nand_set_platdata

void __init s3c_nand_set_platdata(struct s3c2410_platform_nand *nand)
{
	struct s3c2410_platform_nand *npd;
	int size;
	int ret;

	/* note, if we get a failure in allocation, we simply drop out of the
	 * function. If there is so little memory available at initialisation
	 * time then there is little chance the system is going to run.
	 */

	npd = s3c_set_platdata(nand, sizeof(struct s3c2410_platform_nand),
				&s3c_device_nand);
	if (!npd)
		return;

	/* now see if we need to copy any of the nand set data */

	size = sizeof(struct s3c2410_nand_set) * npd->nr_sets;
	if (size) {
		struct s3c2410_nand_set *from = npd->sets;
		struct s3c2410_nand_set *to;
		int i;

		to = kmemdup(from, size, GFP_KERNEL);
		npd->sets = to;	/* set, even if we failed */

		if (!to) {
			printk(KERN_ERR "%s: no memory for sets\n", __func__);
			return;
		}

		for (i = 0; i < npd->nr_sets; i++) {
			ret = s3c_nand_copy_set(to);
			if (ret) {
				printk(KERN_ERR "%s: failed to copy set %d\n",
				__func__, i);
				return;
			}
			to++;
		}
	}
}
开发者ID:BennyBoy-LagoonCompany,项目名称:linux,代码行数:43,代码来源:devs.c


示例20: s5p_hdmi_set_platdata

void __init s5p_hdmi_set_platdata(struct i2c_board_info *hdmiphy_info,
                                  struct i2c_board_info *mhl_info, int mhl_bus)
{
    struct s5p_hdmi_platform_data *pd = &s5p_hdmi_def_platdata;

    if (soc_is_exynos4210())
        pd->hdmiphy_bus = 8;
    else if (soc_is_s5pv210())
        pd->hdmiphy_bus = 3;
    else
        pd->hdmiphy_bus = 0;

    pd->hdmiphy_info = hdmiphy_info;
    pd->mhl_info = mhl_info;
    pd->mhl_bus = mhl_bus;

    s3c_set_platdata(pd, sizeof(struct s5p_hdmi_platform_data),
                     &s5p_device_hdmi);
}
开发者ID:alessandroste,项目名称:testBSP,代码行数:19,代码来源:devs.c



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ s3cdbg函数代码示例发布时间:2022-05-30
下一篇:
C++ s3c_sdhci2_set_platdata函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap