Changeset 257 for trunk/hal/tsar_mips32
- Timestamp:
- Jul 20, 2017, 2:59:04 PM (7 years ago)
- Location:
- trunk/hal/tsar_mips32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_drivers.c
r252 r257 94 94 } 95 95 96 /////////////////////////////////////////////////////////////////////////////// 97 // MMC 98 /////////////////////////////////////////////////////////////////////////////// 99 100 ////////////////////////////////////////// 101 void hal_drivers_mmc_init( chdev_t * mmc, 102 uint32_t impl ) 103 { 104 if( impl == IMPL_MMC_TSR ) 105 { 106 soclib_mmc_init( mmc ); 107 } 108 else 109 { 110 assert( false , __FUNCTION__ , "undefined MMC device implementation" ); 111 } 112 } 113 -
trunk/hal/tsar_mips32/drivers/soclib_mmc.c
r75 r257 37 37 // get pointer on MMC segment base 38 38 uint32_t * base = (uint32_t *)GET_PTR( chdev->base ); 39 40 // set driver specific fields in device descriptor 41 chdev->cmd = &soclib_mmc_cmd; 42 chdev->isr = &soclib_mmc_isr; 39 43 40 44 // enable MMC IRQ
Note: See TracChangeset
for help on using the changeset viewer.