Example #1
0
static int __init tcc892x_init_devices(void)
{
    tcc_init_audio();

#if defined(CONFIG_SPI_TCCXXXX_MASTER)
    #if   defined(CONFIG_MACH_TCC8920)		        
    if(system_rev == 0x1005 || system_rev == 0x1007)
    {
        spi0_resources[2].start = 17; /* Port17 GPIO_G[0:3] */
        spi0_resources[2].end = 17;
    }
    else if(system_rev == 0x1006)
    {
        spi0_resources[2].start = 12; /* Port12 GPIO_E[12:15] */
        spi0_resources[2].end = 12;
    }
    else if(system_rev == 0x1008)
    {
        spi0_resources[2].start = 9; /* Port9 GPIO_C[0:3] */
        spi0_resources[2].end = 9;
    }
    #elif  defined(CONFIG_MACH_M805_892X)
	#if defined(CONFIG_M805S_8925_0XX)
    	if (system_rev == 0x2008) {
		spi0_resources[2].start = 3; /* Port3 GPIO_D[11:13] */
		spi0_resources[2].end = 3;
	}
	#endif
    #endif
#endif    

#if defined(CONFIG_SPI_TCCXXXX_TSIF_SLAVE)
    #if   defined(CONFIG_MACH_TCC8920)		        
    if(system_rev == 0x1005 || system_rev == 0x1007)
    {
        tsif_resources[2].start = 5; /* Port5 GPIO_B[0:3] */
        tsif_resources[2].end = 5;
    }
    else if(system_rev == 0x1006)
    {
        //tcc8925
        tsif_ex_resources[2].start = 0; /* Port0 GPIO_D[7:10] */
        tsif_ex_resources[2].end = 0;
    }
    else if(system_rev == 0x1008)
    {
        //tcc8923
        tsif_ex_resources[2].start = 3; /* Port3 GPIO_C[23:26] */
        tsif_ex_resources[2].end = 3;

        tsif_resources[2].start = 11; /* Port11 GPIO_C[23:26] */
        tsif_resources[2].end = 11;
    }
    #endif
#endif    
	return 0;
}
Example #2
0
static int __init tcc88xx_init_devices(void)
{
    tcc_init_audio();
	return 0;
}