Ignore:
Timestamp:
Oct 5, 2018, 12:08:35 AM (6 years ago)
Author:
alain
Message:

Introduction of the soclib_mty driver for the TSAR-LETI architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_drivers.c

    r550 r570  
    2626
    2727#include <soclib_tty.h>
    28 #include <soclib_mtty.h>
     28#include <soclib_mty.h>
    2929#include <soclib_pic.h>
    3030#include <soclib_iob.h>
    3131#include <soclib_bdv.h>
    3232#include <soclib_hba.h>
    33 #include <soclib_sdc.h>
    3433#include <soclib_mmc.h>
    3534#include <soclib_nic.h>
     
    5150                           uint32_t   impl )
    5251{
    53     switch (impl) {
    54     case IMPL_TXT_TTY : {
     52    if( impl ==  IMPL_TXT_TTY )
     53    {
    5554        soclib_tty_init( txt );
    56         break;
    5755    }
    58     case IMPL_TXT_MTY : {
    59         soclib_mtty_init( txt );
    60         break;
     56    else if (impl == IMPL_TXT_MTY )
     57    {
     58        soclib_mty_init( txt );
    6159    }
    62     default : {
    63         assert( false, "bad implementation" );
    64     }
     60    else
     61    {
     62        assert( false, "undefined implementation" );
    6563    }
    6664}
     
    7472                           uint32_t   impl )
    7573{
    76     assert( (impl == IMPL_PIC_SCL), "bad implementation" );
     74    assert( (impl == IMPL_PIC_SCL), "undefined implementation" );
    7775
    7876        soclib_pic_init( pic );
     
    9795                           uint32_t   impl )
    9896{
    99         assert( (impl == IMPL_IOB_TSR), "bad implementation" );
     97        assert( (impl == IMPL_IOB_TSR), "undefined implementation" );
    10098
    10199        soclib_iob_init( iob );
     
    126124                soclib_hba_init( ioc );
    127125        }
    128         else if (impl == IMPL_IOC_SPI)
    129     {
    130                 soclib_sdc_init( ioc );
    131         }
     126//      else if (impl == IMPL_IOC_SPI)
     127//  {
     128//              soclib_sdc_init( ioc );
     129//      }
    132130    else
    133131    {
     
    144142                           uint32_t   impl )
    145143{
    146         assert( (impl == IMPL_MMC_TSR), "bad implementation" );
     144        assert( (impl == IMPL_MMC_TSR), "undefined implementation" );
    147145 
    148146    soclib_mmc_init( mmc );
     
    157155                           uint32_t   impl )
    158156{
    159         assert( (impl == IMPL_NIC_CBF), "bad implementation" );
     157        assert( (impl == IMPL_NIC_CBF), "undefined implementation" );
    160158 
    161159    soclib_nic_init( nic );
     
    170168                           uint32_t   impl )
    171169{
    172         assert( (impl == IMPL_DMA_SCL), "bad implementation" );
     170        assert( (impl == IMPL_DMA_SCL), "undefined implementation" );
    173171 
    174172    soclib_dma_init( dma );
Note: See TracChangeset for help on using the changeset viewer.