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


C++ sa1100_register_uart函数代码示例

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


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

示例1: sherman_map_io

static void __init sherman_map_io(void)
{
    sa1100_map_io();

    sa1100_register_uart(0, 3);
    sa1100_register_uart(1, 1);
}
开发者ID:iPodLinux,项目名称:linux-2.6.7-ipod,代码行数:7,代码来源:sherman.c

示例2: cep_map_io

static void __init cep_map_io(void)
{

	sa1100_map_io();
	iotable_init(cep_io_desc);

	sa1100_register_uart(0, 1);	/* com port */
	sa1100_register_uart(2, 3);	/* radio module */

	/*
	 * Ensure that these pins are set as outputs and are driving
	 * logic 0.  This ensures that we won't inadvertently toggle
	 * the WS latch in the CPLD, and we don't float causing
	 * excessive power drain.  --rmk
	 */
	GPDR |= GPIO_SSP_TXD | GPIO_SSP_SCLK | GPIO_SSP_SFRM;
	GPCR = GPIO_SSP_TXD | GPIO_SSP_SCLK | GPIO_SSP_SFRM;

	/*
	 * Set up registers for sleep mode.
	 */
	PWER = PWER_GPIO0;
	PGSR = 0;
	PCFR = 0;
	PSDR = 0;
}
开发者ID:GunioRobot,项目名称:MI424WR_GEN2_Rev_E-F,代码行数:26,代码来源:cep.c

示例3: pleb_map_io

static void __init pleb_map_io(void)
{
    sa1100_map_io();

    sa1100_register_uart(0, 3);
        sa1100_register_uart(1, 1);

        GAFR |= (GPIO_UART_TXD | GPIO_UART_RXD);
        GPDR |= GPIO_UART_TXD;
        GPDR &= ~GPIO_UART_RXD;
        PPAR |= PPAR_UPR;

    /*
     * Fix expansion memory timing for network card
     */
    MECR = ((2<<10) | (2<<5) | (2<<0));

    /*
     * Enable the SMC ethernet controller
     */
    GPDR |= GPIO_ETH0_EN;    /* set to output */
    GPCR  = GPIO_ETH0_EN;    /* clear MCLK (enable smc) */

    GPDR &= ~GPIO_ETH0_IRQ;

    set_irq_type(GPIO_ETH0_IRQ, IRQT_FALLING);
}
开发者ID:274914765,项目名称:C,代码行数:27,代码来源:pleb.c

示例4: assabet_map_io

static void __init assabet_map_io(void)
{
	sa1100_map_io();
	iotable_init(assabet_io_desc, ARRAY_SIZE(assabet_io_desc));

	/*
	 * Set SUS bit in SDCR0 so serial port 1 functions.
	 * Its called GPCLKR0 in my SA1110 manual.
	 */
	Ser1SDCR0 |= SDCR0_SUS;
	MSC1 = (MSC1 & ~0xffff) |
		MSC_NonBrst | MSC_32BitStMem |
		MSC_RdAcc(2) | MSC_WrAcc(2) | MSC_Rec(0);

	if (!machine_has_neponset())
		sa1100_register_uart_fns(&assabet_port_fns);

	/*
	 * When Neponset is attached, the first UART should be
	 * UART3.  That's what Angel is doing and many documents
	 * are stating this.
	 *
	 * We do the Neponset mapping even if Neponset support
	 * isn't compiled in so the user will still get something on
	 * the expected physical serial port.
	 *
	 * We no longer do this; not all boot loaders support it,
	 * and UART3 appears to be somewhat unreliable with blob.
	 */
	sa1100_register_uart(0, 1);
	sa1100_register_uart(2, 3);
}
开发者ID:0-T-0,项目名称:ps4-linux,代码行数:32,代码来源:assabet.c

示例5: simpad_map_io

static void __init simpad_map_io(void)
{
	sa1100_map_io();

	iotable_init(simpad_io_desc, ARRAY_SIZE(simpad_io_desc));

	set_cs3_bit (EN1 | EN0 | LED2_ON | DISPLAY_ON | RS232_ON |
		      ENABLE_5V | RESET_SIMCARD | DECT_POWER_ON);


        sa1100_register_uart_fns(&simpad_port_fns);
	sa1100_register_uart(0, 3);  /* serial interface */
	sa1100_register_uart(1, 1);  /* DECT             */

	// Reassign UART 1 pins
	GAFR |= GPIO_UART_TXD | GPIO_UART_RXD;
	GPDR |= GPIO_UART_TXD | GPIO_LDD13 | GPIO_LDD15;
	GPDR &= ~GPIO_UART_RXD;
	PPAR |= PPAR_UPR;

	/*
	 * Set up registers for sleep mode.
	 */


	PWER = PWER_GPIO0| PWER_RTC;
	PGSR = 0x818;
	PCFR = 0;
	PSDR = 0;


}
开发者ID:12019,项目名称:hg556a_source,代码行数:32,代码来源:simpad.c

示例6: simpad_map_io

static void __init simpad_map_io(void)
{
	sa1100_map_io();

	iotable_init(simpad_io_desc, ARRAY_SIZE(simpad_io_desc));

	
	cs3_shadow = (EN1 | EN0 | LED2_ON | DISPLAY_ON |
		RS232_ON | ENABLE_5V | RESET_SIMCARD | DECT_POWER_ON);
	__simpad_write_cs3(); 

        sa1100_register_uart_fns(&simpad_port_fns);
	sa1100_register_uart(0, 3);  
	sa1100_register_uart(1, 1);  

	
	GAFR |= GPIO_UART_TXD | GPIO_UART_RXD;
	GPDR |= GPIO_UART_TXD | GPIO_LDD13 | GPIO_LDD15;
	GPDR &= ~GPIO_UART_RXD;
	PPAR |= PPAR_UPR;



	PWER = PWER_GPIO0| PWER_RTC;
	PGSR = 0x818;
	PCFR = 0;
	PSDR = 0;

}
开发者ID:Blackburn29,项目名称:PsycoKernel,代码行数:29,代码来源:simpad.c

示例7: h3600_map_io

static void __init h3600_map_io(void)
{
    sa1100_map_io();
    iotable_init(h3600_io_desc);

    sa1100_register_uart_fns(&h3600_port_fns);
    sa1100_register_uart(0, 3);
    sa1100_register_uart(1, 1); /* isn't this one driven elsewhere? */

    /*
     * Default GPIO settings.  Should be set by machine
     */
    GPCR = 0x0fffffff;
//	GPDR = 0x0401f3fc;
    GPDR = GPIO_H3600_COM_RTS  | GPIO_H3600_L3_CLOCK |
           GPIO_H3600_L3_MODE  | GPIO_H3600_L3_DATA  |
           GPIO_H3600_CLK_SET1 | GPIO_H3600_CLK_SET0 |
           GPIO_LDD15 | GPIO_LDD14 | GPIO_LDD13 | GPIO_LDD12 |
           GPIO_LDD11 | GPIO_LDD10 | GPIO_LDD9  | GPIO_LDD8;

    init_h3600_egpio();

    /*
     * Ensure those pins are outputs and driving low.
     */
    PPDR |= PPC_TXD4 | PPC_SCLK | PPC_SFRM;
    PPSR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);

    /* Configure suspend conditions */
    PGSR = 0;
    PWER = PWER_GPIO0 | PWER_RTC;
    PCFR = PCFR_OPDE;
    PSDR = 0;
}
开发者ID:hugh712,项目名称:Jollen,代码行数:34,代码来源:h3600.c

示例8: jornada720_map_io

static void __init jornada720_map_io(void)
{
	sa1100_map_io();
	iotable_init(jornada720_io_desc);
	
	sa1100_register_uart(0, 3);
	sa1100_register_uart(1, 1);
}
开发者ID:TitaniumBoy,项目名称:lin,代码行数:8,代码来源:jornada720.c

示例9: xp860_map_io

static void __init xp860_map_io(void)
{
	sa1100_map_io();
	iotable_init(xp860_io_desc, ARRAY_SIZE(xp860_io_desc));

	sa1100_register_uart(0, 3);
	sa1100_register_uart(1, 1);
}
开发者ID:sarnobat,项目名称:knoppix,代码行数:8,代码来源:xp860.c

示例10: badge4_map_io

static void __init badge4_map_io(void)
{
	sa1100_map_io();
	iotable_init(badge4_io_desc, ARRAY_SIZE(badge4_io_desc));

	sa1100_register_uart_fns(&badge4_port_fns);
	sa1100_register_uart(0, 3);
	sa1100_register_uart(1, 1);
}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:9,代码来源:badge4.c

示例11: assabet_map_io

static void __init assabet_map_io(void)
{
	extern void neponset_map_io(void);

	sa1100_map_io();
	iotable_init(assabet_io_desc);

#ifdef CONFIG_ASSABET_NEPONSET
	/*
	 * We map Neponset registers even if it isn't present since
	 * many drivers will try to probe their stuff (and fail).
	 * This is still more friendly than a kernel paging request
	 * crash.
	 */
	neponset_map_io();
#endif

	if (machine_has_neponset()) {
		/*
		 * When Neponset is attached, the first UART should be
		 * UART3.  That's what Angel is doing and many documents
		 * are stating this.
		 * We do the Neponset mapping even if Neponset support
		 * isn't compiled in so the user will still get something on
		 * the expected physical serial port.
		 */
		sa1100_register_uart(0, 3);
		sa1100_register_uart(2, 1);
		/*
		 * Set SUS bit in SDCR0 so serial port 1 functions.
		 * Its called GPCLKR0 in my SA1110 manual.
		 */
		Ser1SDCR0 |= SDCR0_SUS;
	} else {
		sa1100_register_uart_fns(&assabet_port_fns);
		sa1100_register_uart(0, 1);	/* com port */
		sa1100_register_uart(2, 3);	/* radio module */
	}

	/*
	 * Ensure that these pins are set as outputs and are driving
	 * logic 0.  This ensures that we won't inadvertently toggle
	 * the WS latch in the CPLD, and we don't float causing
	 * excessive power drain.  --rmk
	 */
	GPDR |= GPIO_SSP_TXD | GPIO_SSP_SCLK | GPIO_SSP_SFRM;
	GPCR = GPIO_SSP_TXD | GPIO_SSP_SCLK | GPIO_SSP_SFRM;

	/*
	 * Set up registers for sleep mode.
	 */
	PWER = PWER_GPIO0;
	PGSR = 0;
	PCFR = 0;
	PSDR = 0;
}
开发者ID:TitaniumBoy,项目名称:lin,代码行数:56,代码来源:assabet.c

示例12: empeg_map_io

static void __init empeg_map_io(void)
{
	sa1100_map_io();
	iotable_init(empeg_io_desc, ARRAY_SIZE(empeg_io_desc));

	sa1100_register_uart(0, 1);
	sa1100_register_uart(1, 3);
	sa1100_register_uart(2, 2);
	Ser1SDCR0 |= SDCR0_UART;
}
开发者ID:iPodLinux,项目名称:linux-2.6.7-ipod,代码行数:10,代码来源:empeg.c

示例13: brutus_map_io

static void __init brutus_map_io(void)
{
	sa1100_map_io();

	sa1100_register_uart(0, 1);
	sa1100_register_uart(1, 3);
	GAFR |= (GPIO_UART_TXD | GPIO_UART_RXD);
	GPDR |= GPIO_UART_TXD;
	GPDR &= ~GPIO_UART_RXD;
	PPAR |= PPAR_UPR;
}
开发者ID:12019,项目名称:hg556a_source,代码行数:11,代码来源:brutus.c

示例14: collie_map_io

static void __init collie_map_io(void)
{
	sa1100_map_io();
	iotable_init(collie_io_desc, ARRAY_SIZE(collie_io_desc));

#ifdef CONFIG_SHARP_LOCOMO
	sa1100_register_uart_fns(&collie_port_fns);
#endif
	sa1100_register_uart(0, 3);
	sa1100_register_uart(1, 1);
}
开发者ID:33d,项目名称:linux-2.6.21-hh20,代码行数:11,代码来源:collie.c

示例15: adsbitsy_map_io

static void __init adsbitsy_map_io(void)
{
	sa1100_map_io();
	iotable_init(adsbitsy_io_desc, ARRAY_SIZE(adsbitsy_io_desc));

	sa1100_register_uart_fns(&adsbitsy_port_fns);
	sa1100_register_uart(0, 3);
	sa1100_register_uart(1, 1);
	sa1100_register_uart(2, 2);
	GPDR |= GPIO_GPIO15 | GPIO_GPIO17 | GPIO_GPIO19;
	GPDR &= ~(GPIO_GPIO14 | GPIO_GPIO16 | GPIO_GPIO18);
}
开发者ID:iPodLinux,项目名称:linux-2.6.7-ipod,代码行数:12,代码来源:adsbitsy.c


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