*(u16 *)(&cpm2_immr->im_dprambase[PROFF_SMC2_BASE]) = PROFF_SMC2; 
int cpm_uart_init_portdesc(void){	pr_debug("CPM uart[-]:init portdesc\n");	cpm_uart_nr = 0;#ifdef CONFIG_SERIAL_CPM_SMC1	cpm_uart_ports[UART_SMC1].smcp = (smc_t *) & cpm2_immr->im_smc[0];	cpm_uart_ports[UART_SMC1].smcup =	    (smc_uart_t *) & cpm2_immr->im_dprambase[PROFF_SMC1];	cpm_uart_ports[UART_SMC1].port.mapbase =	    (unsigned long)&cpm2_immr->im_smc[0];	cpm_uart_ports[UART_SMC1].smcp->smc_smcm |= (SMCM_RX | SMCM_TX);	cpm_uart_ports[UART_SMC1].smcp->smc_smcmr &= ~(SMCMR_REN | SMCMR_TEN);	cpm_uart_ports[UART_SMC1].port.uartclk = (((bd_t *) __res)->bi_intfreq);	cpm_uart_port_map[cpm_uart_nr++] = UART_SMC1;#endif#ifdef CONFIG_SERIAL_CPM_SMC2	cpm_uart_ports[UART_SMC2].smcp = (smc_t *) & cpm2_immr->im_smc[1];	cpm_uart_ports[UART_SMC2].smcup =	    (smc_uart_t *) & cpm2_immr->im_dprambase[PROFF_SMC2];	cpm_uart_ports[UART_SMC2].port.mapbase =	    (unsigned long)&cpm2_immr->im_smc[1];	cpm_uart_ports[UART_SMC2].smcp->smc_smcm |= (SMCM_RX | SMCM_TX);	cpm_uart_ports[UART_SMC2].smcp->smc_smcmr &= ~(SMCMR_REN | SMCMR_TEN);	cpm_uart_ports[UART_SMC2].port.uartclk = (((bd_t *) __res)->bi_intfreq);	cpm_uart_port_map[cpm_uart_nr++] = UART_SMC2;#endif#ifdef CONFIG_SERIAL_CPM_SCC1	cpm_uart_ports[UART_SCC1].sccp = (scc_t *) & cpm2_immr->im_scc[0];	cpm_uart_ports[UART_SCC1].sccup =	    (scc_uart_t *) & cpm2_immr->im_dprambase[PROFF_SCC1];	cpm_uart_ports[UART_SCC1].port.mapbase =	    (unsigned long)&cpm2_immr->im_scc[0];	cpm_uart_ports[UART_SCC1].sccp->scc_sccm &=	    ~(UART_SCCM_TX | UART_SCCM_RX);	cpm_uart_ports[UART_SCC1].sccp->scc_gsmrl &=	    ~(SCC_GSMRL_ENR | SCC_GSMRL_ENT);	cpm_uart_ports[UART_SCC1].port.uartclk = (((bd_t *) __res)->bi_intfreq);	cpm_uart_port_map[cpm_uart_nr++] = UART_SCC1;#endif#ifdef CONFIG_SERIAL_CPM_SCC2	cpm_uart_ports[UART_SCC2].sccp = (scc_t *) & cpm2_immr->im_scc[1];	cpm_uart_ports[UART_SCC2].sccup =	    (scc_uart_t *) & cpm2_immr->im_dprambase[PROFF_SCC2];	cpm_uart_ports[UART_SCC2].port.mapbase =	    (unsigned long)&cpm2_immr->im_scc[1];	cpm_uart_ports[UART_SCC2].sccp->scc_sccm &=	    ~(UART_SCCM_TX | UART_SCCM_RX);	cpm_uart_ports[UART_SCC2].sccp->scc_gsmrl &=	    ~(SCC_GSMRL_ENR | SCC_GSMRL_ENT);	cpm_uart_ports[UART_SCC2].port.uartclk = (((bd_t *) __res)->bi_intfreq);	cpm_uart_port_map[cpm_uart_nr++] = UART_SCC2;#endif#ifdef CONFIG_SERIAL_CPM_SCC3	cpm_uart_ports[UART_SCC3].sccp = (scc_t *) & cpm2_immr->im_scc[2];	cpm_uart_ports[UART_SCC3].sccup =	    (scc_uart_t *) & cpm2_immr->im_dprambase[PROFF_SCC3];	cpm_uart_ports[UART_SCC3].port.mapbase =	    (unsigned long)&cpm2_immr->im_scc[2];	cpm_uart_ports[UART_SCC3].sccp->scc_sccm &=	    ~(UART_SCCM_TX | UART_SCCM_RX);	cpm_uart_ports[UART_SCC3].sccp->scc_gsmrl &=	    ~(SCC_GSMRL_ENR | SCC_GSMRL_ENT);	cpm_uart_ports[UART_SCC3].port.uartclk = (((bd_t *) __res)->bi_intfreq);	cpm_uart_port_map[cpm_uart_nr++] = UART_SCC3;#endif#ifdef CONFIG_SERIAL_CPM_SCC4	cpm_uart_ports[UART_SCC4].sccp = (scc_t *) & cpm2_immr->im_scc[3];	cpm_uart_ports[UART_SCC4].sccup =	    (scc_uart_t *) & cpm2_immr->im_dprambase[PROFF_SCC4];	cpm_uart_ports[UART_SCC4].port.mapbase =	    (unsigned long)&cpm2_immr->im_scc[3];	cpm_uart_ports[UART_SCC4].sccp->scc_sccm &=	    ~(UART_SCCM_TX | UART_SCCM_RX);	cpm_uart_ports[UART_SCC4].sccp->scc_gsmrl &=	    ~(SCC_GSMRL_ENR | SCC_GSMRL_ENT);	cpm_uart_ports[UART_SCC4].port.uartclk = (((bd_t *) __res)->bi_intfreq);	cpm_uart_port_map[cpm_uart_nr++] = UART_SCC4;#endif	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b0531b9b3299f3066b1db78f1693edabbba08b5c/cpm_uart_cpm2.c/buggy/drivers/serial/cpm_uart/cpm_uart_cpm2.c