Date: Fri, 11 Aug 2006 00:16:01 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103621 for review Message-ID: <200608110016.k7B0G10F084428@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103621 Change 103621 by imp@imp_lighthouse on 2006/08/11 00:15:24 Kill dead code, minor formatting nits Affected files ... .. //depot/projects/arm/src/sys/boot/arm/at91/libat91/sd-card.c#2 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/sd-card.c#2 (text+ko) ==== @@ -269,9 +269,9 @@ int sdcard_init(void) { -/////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// // MCI Init : common to MMC and SDCard -/////////////////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// //initInts(); @@ -283,28 +283,12 @@ // Init MCI Device Structures AT91F_CfgDevice(); - /* - // Disable all the interrupts - AT91C_BASE_MCI->MCI_IDR = 0xFFFFFFFF; - - - // Configure MCI interrupt - AT91F_AIC_ConfigureIt(AT91C_BASE_AIC, - AT91C_ID_MCI, - AT91C_AIC_PRIOR_HIGHEST, - AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE, - AT91F_MCI_Handler); - - // Enable MCI interrupt - AT91F_AIC_EnableIt(AT91C_BASE_AIC,AT91C_ID_MCI); - */ - AT91F_MCI_Configure(AT91C_BASE_MCI, - AT91C_MCI_DTOR_1MEGA_CYCLES, - AT91C_MCI_MR_PDCMODE, // 15MHz for MCK = 60MHz (CLKDIV = 1) - AT91C_MCI_SDCARD_4BITS_SLOTA); + AT91C_MCI_DTOR_1MEGA_CYCLES, + AT91C_MCI_MR_PDCMODE, // 15MHz for MCK = 60MHz (CLKDIV = 1) + AT91C_MCI_SDCARD_4BITS_SLOTA); - if(AT91F_MCI_SDCard_Init(&MCI_Device) != AT91C_INIT_OK) + if (AT91F_MCI_SDCard_Init(&MCI_Device) != AT91C_INIT_OK) return 0; return 1; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608110016.k7B0G10F084428>