Changeset 565 for soft


Ignore:
Timestamp:
May 18, 2015, 6:51:03 PM (9 years ago)
Author:
alain
Message:

Introduce support for a new driver sdc_driver.
There is now 5 IOC drivers: BDV / HBA / RDK / SDC / SPI.

Location:
soft/giet_vm/giet_python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/genmap

    r546 r565  
    7676parser.add_option( '--ioc', type = 'string', dest = 'ioc_type',
    7777                   default = 'BDV',
    78                    help = 'define type of IOC: BDV / HBA / SDC / RDK' )
     78                   help = 'define type of IOC: BDV / HBA / SDC / RDK / SPI' )
    7979
    8080parser.add_option( '--v', action = 'store_true', dest = 'verbose',
  • soft/giet_vm/giet_python/mapping.py

    r562 r565  
    7070                  'HBA',
    7171                  'SDC',
     72                  'SPI',
    7273                 ]
    7374
     
    104105                  'ISR_MWR',
    105106                  'ISR_HBA',
     107                  'ISR_SPI',
    106108                 ]
    107109
     
    735737        use_ioc_sdc  = False
    736738        use_ioc_hba  = False
     739        use_ioc_spi  = False
    737740
    738741        nb_mmc       = 0
     
    831834                    if ( periph.subtype == 'HBA' ): use_ioc_hba = True
    832835                    if ( periph.subtype == 'SDC' ): use_ioc_sdc = True
     836                    if ( periph.subtype == 'SPI' ): use_ioc_spi = True
    833837
    834838                elif ( periph.ptype == 'MMC' ):
     
    916920        if use_ioc_bdv:       nb_ioc_types += 1
    917921        if use_ioc_sdc:       nb_ioc_types += 1
     922        if use_ioc_spi:       nb_ioc_types += 1
    918923        if self.use_ramdisk:  nb_ioc_types += 1
    919924        assert ( nb_ioc_types == 1 )
     
    10401045        s += '#define USE_IOC_SDC            %d\n'    % use_ioc_sdc
    10411046        s += '#define USE_IOC_HBA            %d\n'    % use_ioc_hba
     1047        s += '#define USE_IOC_SPI            %d\n'    % use_ioc_spi
    10421048        s += '#define USE_IOC_RDK            %d\n'    % self.use_ramdisk
    10431049        s += '\n'
Note: See TracChangeset for help on using the changeset viewer.