Ignore:
Timestamp:
Mar 26, 2015, 3:46:52 PM (9 years ago)
Author:
cfuguet
Message:

update linux_dts() function to comply with new device tree specs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/mapping.py

    r520 r526  
    12381238                        sys.exit(1)
    12391239
    1240                     s += '  tty: tty {\n'
     1240                    s += '  tty: tty@0x%x {\n' % (periph.pseg.base)
    12411241                    s += '    compatible = "soclib,vci_multi_tty";\n'
    12421242                    s += '    interrupt-parent = <&%s>;\n' % (irq_ctrl_name)
     
    12601260                            sys.exit(1)
    12611261
    1262                         s += '  bdv: bdv {\n'
     1262                        s += '  bdv: bdv@0x%x {\n' % (periph.pseg.base)
    12631263                        s += '    compatible = "tsar,vci_block_device";\n'
    12641264                        s += '    interrupt-parent = <&%s>;\n' % (irq_ctrl_name)
     
    12671267                        s += '  };\n\n'
    12681268
    1269                     elif ( periph.subtype == 'HBA' ):
    1270 
    1271                         print '[genmap error] in linux_dts()'
    1272                         print '    HBA peripheral not supported by LINUX'
    1273                         sys.exit(1)
    1274 
    1275                     elif ( periph.subtype == 'SPI' ):
    1276 
    1277                         print '[genmap error] in linux_dts()'
    1278                         print '    SPI peripheral not supported by LINUX'
    1279                         sys.exit(1)
     1269                    else:
     1270                        print '[genmap warning] in linux_dts() : %s' % (periph.subtype),
     1271                        print 'peripheral not supported by LINUX'
    12801272
    12811273                # XCU or PIC have been already parsed
Note: See TracChangeset for help on using the changeset viewer.