本文整理汇总了C++中early_platform_add_devices函数的典型用法代码示例。如果您正苦于以下问题:C++ early_platform_add_devices函数的具体用法?C++ early_platform_add_devices怎么用?C++ early_platform_add_devices使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了early_platform_add_devices函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: sh73a0_add_early_devices
void __init sh73a0_add_early_devices(void)
{
early_platform_add_devices(sh73a0_devices_dt,
ARRAY_SIZE(sh73a0_devices_dt));
early_platform_add_devices(sh73a0_early_devices,
ARRAY_SIZE(sh73a0_early_devices));
/* setup early console here as well */
shmobile_setup_console();
}
开发者ID:24hours,项目名称:linux,代码行数:10,代码来源:setup-sh73a0.c
示例2: plat_early_device_setup
void __init plat_early_device_setup(void)
{
/* enable MTU2 clock */
__raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3);
early_platform_add_devices(sh7201_early_devices,
ARRAY_SIZE(sh7201_early_devices));
}
开发者ID:03199618,项目名称:linux,代码行数:8,代码来源:setup-sh7201.c
示例3: omap_early_device_register
/**
* omap_early_device_register - register an omap_device as an early platform
* device.
* @od: struct omap_device * to register
*
* Register the omap_device structure. This currently just calls
* platform_early_add_device() on the underlying platform_device.
* Returns 0 by default.
*/
static int __init omap_early_device_register(struct platform_device *pdev)
{
struct platform_device *devices[1];
devices[0] = pdev;
early_platform_add_devices(devices, 1);
return 0;
}
开发者ID:SynerconTechnologies,项目名称:FLA-Kernel,代码行数:17,代码来源:omap_device.c
示例4: sh7377_add_early_devices
void __init sh7377_add_early_devices(void)
{
/* enable clock to CMT1 */
__raw_writel(__raw_readl(SMSTPCR3) & ~SMSTPCR3_CMT1, SMSTPCR3);
early_platform_add_devices(sh7377_early_devices,
ARRAY_SIZE(sh7377_early_devices));
}
开发者ID:123456798wil,项目名称:kernel_dell_streak7,代码行数:8,代码来源:setup-sh7377.c
示例5: r8a7740_add_early_devices
void __init r8a7740_add_early_devices(void)
{
early_platform_add_devices(r8a7740_early_devices,
ARRAY_SIZE(r8a7740_early_devices));
/* setup early console here as well */
shmobile_setup_console();
}
开发者ID:383530895,项目名称:linux,代码行数:8,代码来源:setup-r8a7740.c
示例6: plat_early_device_setup
void __init plat_early_device_setup(void)
{
struct platform_device *dev[1];
if (mach_is_rts7751r2d()) {
scif_platform_data.scscr |= SCSCR_CKE1;
dev[0] = &scif_device;
early_platform_add_devices(dev, 1);
} else {
dev[0] = &sci_device;
early_platform_add_devices(dev, 1);
dev[0] = &scif_device;
early_platform_add_devices(dev, 1);
}
early_platform_add_devices(sh7750_early_devices,
ARRAY_SIZE(sh7750_early_devices));
}
开发者ID:MiniBlu,项目名称:cm11_kernel_htc_msm8974a3ul,代码行数:18,代码来源:setup-sh7750.c
示例7: r8a7779_add_early_devices
void __init r8a7779_add_early_devices(void)
{
early_platform_add_devices(r8a7779_early_devices,
ARRAY_SIZE(r8a7779_early_devices));
shmobile_timer.init = r8a7779_earlytimer_init;
}
开发者ID:Blackburn29,项目名称:PsycoKernel,代码行数:9,代码来源:setup-r8a7779.c
示例8: sh7372_add_early_devices_dt
void __init sh7372_add_early_devices_dt(void)
{
shmobile_setup_delay(800, 1, 3); /* Cortex-A8 @ 800MHz */
early_platform_add_devices(sh7372_early_devices,
ARRAY_SIZE(sh7372_early_devices));
/* setup early console here as well */
shmobile_setup_console();
}
开发者ID:03199618,项目名称:linux,代码行数:10,代码来源:setup-sh7372.c
示例9: plat_early_device_setup
void __init plat_early_device_setup(void)
{
__raw_writeb(__raw_readb(STBCR4) & ~0x04, STBCR4);
__raw_writeb(__raw_readb(STBCR3) & ~0x20, STBCR3);
early_platform_add_devices(sh7203_early_devices,
ARRAY_SIZE(sh7203_early_devices));
}
开发者ID:DirtyDroidX,项目名称:android_kernel_htc_m8ul,代码行数:11,代码来源:setup-sh7203.c
示例10: sh73a0_add_early_devices
void __init sh73a0_add_early_devices(void)
{
early_platform_add_devices(sh73a0_early_devices,
ARRAY_SIZE(sh73a0_early_devices));
/* */
shmobile_setup_console();
/* */
shmobile_timer.init = sh73a0_earlytimer_init;
}
开发者ID:romanbb,项目名称:android_kernel_lge_d851,代码行数:11,代码来源:setup-sh73a0.c
示例11: sh7372_add_early_devices
void __init sh7372_add_early_devices(void)
{
early_platform_add_devices(sh7372_early_devices,
ARRAY_SIZE(sh7372_early_devices));
/* setup early console here as well */
shmobile_setup_console();
/* override timer setup with soc-specific code */
shmobile_timer.init = sh7372_earlytimer_init;
}
开发者ID:4atty,项目名称:linux,代码行数:11,代码来源:setup-sh7372.c
示例12: sh7367_add_early_devices
void __init sh7367_add_early_devices(void)
{
/* enable clock to CMT1 */
__raw_writel(__raw_readl(SYMSTPCR2) & ~SYMSTPCR2_CMT1, SYMSTPCR2);
early_platform_add_devices(sh7367_early_devices,
ARRAY_SIZE(sh7367_early_devices));
/* setup early console here as well */
shmobile_setup_console();
/* override timer setup with soc-specific code */
shmobile_timer.init = sh7367_earlytimer_init;
}
开发者ID:Jackeagle,项目名称:android_kernel_sony_c2305,代码行数:14,代码来源:setup-sh7367.c
示例13: r8a7779_add_early_devices
void __init r8a7779_add_early_devices(void)
{
early_platform_add_devices(r8a7779_early_devices,
ARRAY_SIZE(r8a7779_early_devices));
/* Early serial console setup is not included here due to
* memory map collisions. The SCIF serial ports in r8a7779
* are difficult to identity map 1:1 due to collision with the
* virtual memory range used by the coherent DMA code on ARM.
*
* Anyone wanting to debug early can remove UPF_IOREMAP from
* the sh-sci serial console platform data, adjust mapbase
* to a static M:N virt:phys mapping that needs to be added to
* the mappings passed with iotable_init() above.
*
* Then add a call to shmobile_setup_console() from this function.
*
* As a final step pass earlyprint=sh-sci.2,115200 on the kernel
* command line in case of the marzen board.
*/
}
开发者ID:01org,项目名称:prd,代码行数:21,代码来源:setup-r8a7779.c
示例14: native_machine_early_platform_add_devices
void __init native_machine_early_platform_add_devices(void)
{
printk(KERN_INFO "register early platform devices\n");
early_platform_add_devices(tcm_early_devices,
ARRAY_SIZE(tcm_early_devices));
}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:6,代码来源:tcm-bf518.c
示例15: rk_timer_init
static void __init rk_timer_init(void)
{
early_platform_add_devices(rk_timer_devices, ARRAY_SIZE(rk_timer_devices));
early_platform_driver_register_all(TIMER_NAME);
early_platform_driver_probe(TIMER_NAME, 1, 0);
}
开发者ID:007kumarraja,项目名称:rockchip-rk3188-mk908,代码行数:6,代码来源:rk_timer.c
示例16: plat_early_device_setup
void __init plat_early_device_setup(void)
{
early_platform_add_devices(sh7710_early_devices,
ARRAY_SIZE(sh7710_early_devices));
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:5,代码来源:setup-sh7710.c
示例17: sh7372_add_early_devices
void __init sh7372_add_early_devices(void)
{
early_platform_add_devices(sh7372_early_devices,
ARRAY_SIZE(sh7372_early_devices));
}
开发者ID:303750856,项目名称:linux-3.1,代码行数:5,代码来源:setup-sh7372.c
注:本文中的early_platform_add_devices函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论