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


C++ sam9_smc_configure函数代码示例

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


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

示例1: neocore926_add_device_nand

static void __init neocore926_add_device_nand(void)
{
	/* configure chip-select 3 (NAND) */
	sam9_smc_configure(3, &neocore926_nand_smc_config);

	at91_add_device_nand(&neocore926_nand_data);
}
开发者ID:0-t,项目名称:samsung-kernel-msm7x30,代码行数:7,代码来源:board-neocore926.c

示例2: ek_add_device_nand

static void __init ek_add_device_nand(void)
{
	/* configure chip-select 3 (NAND) */
	sam9_smc_configure(0, 3, &ek_nand_smc_config);

	at91_add_device_nand(&ek_nand_data);
}
开发者ID:22101959,项目名称:linux-3.8.13,代码行数:7,代码来源:board-qil-a9260.c

示例3: ek_add_device_nand

static void __init ek_add_device_nand(void)
{
	
	sam9_smc_configure(3, &ek_nand_smc_config);

	at91_add_device_nand(&ek_nand_data);
}
开发者ID:leemgs,项目名称:OptimusOneKernel-KandroidCommunity,代码行数:7,代码来源:board-sam9-l9260.c

示例4: qil_a9260_add_device_nand

static void qil_a9260_add_device_nand(void)
{
	/* configure chip-select 3 (NAND) */
	sam9_smc_configure(0, 3, &nand_smc_config);

	at91_add_device_nand(&nand_pdata);
}
开发者ID:Reggi3,项目名称:mini210s-barebox,代码行数:7,代码来源:init.c

示例5: pm_add_device_nand

static void pm_add_device_nand(void)
{
	pm_nand_smc_config.mode |= AT91_SMC_DBW_8;

	/* configure chip-select 3 (NAND) */
	sam9_smc_configure(3, &pm_nand_smc_config);

	at91_add_device_nand(&nand_pdata);
}
开发者ID:rjarzmik,项目名称:barebox,代码行数:9,代码来源:init.c

示例6: dss11_add_device_nand

static void dss11_add_device_nand(void)
{
	/* setup bus-width (16) */
	dss11_nand_smc_config.mode |= AT91_SMC_DBW_16;

	/* configure chip-select 3 (NAND) */
	sam9_smc_configure(0, 3, &dss11_nand_smc_config);

	at91_add_device_nand(&nand_pdata);
}
开发者ID:MinimumLaw,项目名称:ravion-barebox,代码行数:10,代码来源:init.c

示例7: ek_add_device_ks8851

static void __init ek_add_device_ks8851(void)
{
	/* Configure chip-select 2 (KS8851) */
	sam9_smc_configure(0, 2, &ks8851_smc_config);
	/* Configure NCS signal */
	at91_set_B_periph(AT91_PIN_PD19, 0);
	/* Configure Interrupt pin as input, no pull-up */
	at91_set_gpio_input(AT91_PIN_PD21, 0);

	add_ks8851_device(DEVICE_ID_SINGLE, AT91_CHIPSELECT_2, AT91_CHIPSELECT_2 + 2,
				IORESOURCE_MEM_16BIT, NULL);
}
开发者ID:cuijfboy,项目名称:barebox,代码行数:12,代码来源:init.c

示例8: cpu9krea_add_device_nor

static __init void cpu9krea_add_device_nor(void)
{
	unsigned long csa;

	csa = at91_sys_read(AT91_MATRIX_EBICSA);
	at91_sys_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_VDDIOMSEL_3_3V);

	
	sam9_smc_configure(0, &cpu9krea_nor_smc_config);

	platform_device_register(&cpu9krea_nor_flash);
}
开发者ID:leemgs,项目名称:OptimusOneKernel-KandroidCommunity,代码行数:12,代码来源:board-cpu9krea.c

示例9: cap9adk_add_device_nor

static __init void cap9adk_add_device_nor(void)
{
	unsigned long csa;

	csa = at91_sys_read(AT91_MATRIX_EBICSA);
	at91_sys_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_EBI_VDDIOMSEL_3_3V);

	/* configure chip-select 0 (NOR) */
	sam9_smc_configure(0, &cap9adk_nor_smc_config);

	platform_device_register(&cap9adk_nor_flash);
}
开发者ID:0-t,项目名称:samsung-kernel-msm7x30,代码行数:12,代码来源:board-cap9adk.c

示例10: ek_add_device_dm9000

static void __init ek_add_device_dm9000(void)
{
	/* Configure chip-select 2 (DM9000) */
	sam9_smc_configure(2, &dm9000_smc_config);

	/* Configure Reset signal as output */
	at91_set_gpio_output(AT91_PIN_PC10, 0);

	/* Configure Interrupt pin as input, no pull-up */
	at91_set_gpio_input(AT91_PIN_PC11, 0);

	platform_device_register(&dm9000_device);
}
开发者ID:007Maximus007,项目名称:htc_kernel_desirec_cfs,代码行数:13,代码来源:board-sam9261ek.c

示例11: pm_add_device_nand

static void pm_add_device_nand(void)
{
	/* setup bus-width (8 or 16) */
	if (nand_pdata.bus_width_16)
		pm_nand_smc_config.mode |= AT91_SMC_DBW_16;
	else
		pm_nand_smc_config.mode |= AT91_SMC_DBW_8;

	/* configure chip-select 3 (NAND) */
	sam9_smc_configure(0, 3, &pm_nand_smc_config);

	at91_add_device_nand(&nand_pdata);
}
开发者ID:dgarnier,项目名称:barebox,代码行数:13,代码来源:init.c

示例12: ek_add_device_nand

static void __init ek_add_device_nand(void)
{
	/* setup bus-width (8 or 16) */
	if (ek_nand_data.bus_width_16)
		ek_nand_smc_config.mode |= AT91_SMC_DBW_16;
	else
		ek_nand_smc_config.mode |= AT91_SMC_DBW_8;

	/* configure chip-select 3 (NAND) */
	sam9_smc_configure(3, &ek_nand_smc_config);

	at91_add_device_nand(&ek_nand_data);
}
开发者ID:007Maximus007,项目名称:htc_kernel_desirec_cfs,代码行数:13,代码来源:board-sam9261ek.c

示例13: ek_add_device_nand

static void __init ek_add_device_nand(void)
{
	ek_nand_data.bus_width_16 = board_have_nand_16bit();
	/*                           */
	if (ek_nand_data.bus_width_16)
		ek_nand_smc_config.mode |= AT91_SMC_DBW_16;
	else
		ek_nand_smc_config.mode |= AT91_SMC_DBW_8;

	/*                                */
	sam9_smc_configure(0, 3, &ek_nand_smc_config);

	at91_add_device_nand(&ek_nand_data);
}
开发者ID:curbthepain,项目名称:android_kernel_us990_rev,代码行数:14,代码来源:board-sam9m10g45ek.c

示例14: ek_add_device_dm9000

static void __init ek_add_device_dm9000(void)
{
    /* Configure chip-select 2 (DM9000) */
    sam9_smc_configure(0, 2, &dm9000_smc_config);

    /* Configure Reset signal as output */
    at91_set_gpio_output(AT91_PIN_PC10, 0);

    /* Configure Interrupt pin as input, no pull-up */
    at91_set_gpio_input(AT91_PIN_PC11, 0);

    add_dm9000_device(0, AT91_CHIPSELECT_2, AT91_CHIPSELECT_2 + 4,
                      IORESOURCE_MEM_16BIT, &dm9000_data);
}
开发者ID:zandar,项目名称:barebox,代码行数:14,代码来源:init.c

示例15: ek_add_device_dm9000

static void __init ek_add_device_dm9000(void)
{
    /* Configure chip-select 0 (DM9000) */
    sam9_smc_configure(0, &dm9000_smc_config);	//NCS0

    /* Configure Reset signal as output */
    //at91_set_A_periph(AT91_PIN_PC13, 0);	//NCS2

    /* Configure Interrupt pin as input, no pull-up */
    at91_set_gpio_input(AT91_PIN_PD0, 0);	// change at 2012-05-03 by dongking
    at91_set_gpio_input(AT91_PIN_PD1, 0);	// change at 2012-05-03 by dongking
    
    platform_device_register(&dm9000_device0);
    platform_device_register(&dm9000_device1);
}
开发者ID:ubuntu-chu,项目名称:linux2.6.30,代码行数:15,代码来源:board-sam9m10g45ek.c


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