Ignore:
Timestamp:
Nov 1, 2018, 12:33:12 PM (6 years ago)
Author:
alain
Message:

Introduce the txt_type and fbf_type (and the associated use_txt_x & use_fbf_* variables)
in arch_info. For Both the C and python files. This was required to support the tsar_generic_leti architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/arch_info/arch_classes.py

    r571 r586  
    4848    'ROM_SCL',         # 1.0
    4949    'FBF_SCL',         # 2.0
     50    'FBF_LTI',         # 2.1
    5051    'IOB_TSR',         # 3.0
    5152    'IOC_BDV',         # 4.0
     
    5960    'TIM_SCL',         # 8.0
    6061    'TXT_TTY',         # 9.0
    61     'TXT_MTY',         # 9.1
     62    'TXT_RS2',         # 9.1
     63    'TXT_MTY',         # 9.2
    6264    'ICU_XCU',         # A.0
    6365    'PIC_TSR',         # B.0
     
    6769    0x00000000,        # 0.0
    6870    0x00010000,        # 1.0
    69     0x00020000,        # 1.0
     71    0x00020000,        # 2.0
     72    0x00020001,        # 2.1
    7073    0x00030000,        # 3.0
    7174    0x00040000,        # 4.0
     
    8083    0x00090000,        # 9.0
    8184    0x00090001,        # 9.1
     85    0x00090002,        # 9.2
    8286    0x000A0000,        # A.0
    8387    0x000B0000,        # B.0
    8488    ]
    8589
    86  #########################################################################################
     90#########################################################################################
    8791class Archinfo( object ):         
    8892#########################################################################################
     
    385389        fbf_arg0     = 0
    386390        fbf_arg1     = 0
     391        use_fbf_scl  = False
     392        use_fbf_lti  = False
    387393
    388394        nb_iob       = 0
     
    430436        txt_base     = 0xFFFFFFFFFFFFFFFF
    431437        txt_size     = 0
     438        use_txt_tty  = False
     439        use_txt_rs2  = False
     440        use_txt_mty  = False
    432441
    433442        nb_icu       = 0
     
    467476                    fbf_size     = device.size
    468477                    fbf_channels = device.channels
     478                    use_fbf_scl  = True
     479                    fbf_arg0     = device.arg0
     480                    fbf_arg1     = device.arg1
     481                    nb_fbf +=1
     482                elif ( device.ptype == 'FBF_LTI' ):
     483                    fbf_base     = device.base
     484                    fbf_size     = device.size
     485                    fbf_channels = device.channels
     486                    use_fbf_lti  = True
    469487                    fbf_arg0     = device.arg0
    470488                    fbf_arg1     = device.arg1
     
    536554                    txt_size     = device.size
    537555                    txt_channels = device.channels
     556                    use_txt_tty  = True
     557                    nb_txt +=1
     558                elif ( device.ptype == 'TXT_RS2' ):
     559                    txt_base     = device.base
     560                    txt_size     = device.size
     561                    txt_channels = device.channels
     562                    use_txt_rs2  = True
     563                    nb_txt +=1
     564                elif ( device.ptype == 'TXT_MTY' ):
     565                    txt_base     = device.base
     566                    txt_size     = device.size
     567                    txt_channels = device.channels
     568                    use_txt_mty  = True
    538569                    nb_txt +=1
    539570
     
    625656        s += '#define USE_IOC_RDK            %d\n'    % use_ioc_rdk
    626657        s += '\n'
     658        s += '#define USE_TXT_TTY            %d\n'    % use_txt_tty
     659        s += '#define USE_TXT_RS2            %d\n'    % use_txt_rs2
     660        s += '#define USE_TXT_MTY            %d\n'    % use_txt_mty
     661        s += '\n'
     662        s += '#define USE_FBF_SCL            %d\n'    % use_fbf_scl
     663        s += '#define USE_FBF_LTI            %d\n'    % use_fbf_lti
     664        s += '\n'
    627665        s += '#define FBUF_X_SIZE            %d\n'    % fbf_arg0
    628666        s += '#define FBUF_Y_SIZE            %d\n'    % fbf_arg1
     
    930968            print '    irq global index = %d / expected = %d' \
    931969                       % (self.index , expected)
    932             sys.exit(1)
    933 
    934970        # compute source device type numerical value
    935971        dev_id = 0xFFFFFFFF
Note: See TracChangeset for help on using the changeset viewer.