]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/host-tools.git/commitdiff
RM-autogen-data.py: Use sysfw documentation to generate the data
authorNikhil Devshatwar <nikhil.nd@ti.com>
Tue, 7 Apr 2020 11:40:33 +0000 (17:10 +0530)
committerNikhil Devshatwar <nikhil.nd@ti.com>
Wed, 15 Apr 2020 11:22:15 +0000 (16:52 +0530)
Use the System firmware official documentation to generate the
data required for the SoC RM resource assignment sheet.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
.gitignore
respart/RM-autogen-data.py

index 5b2bb226d25232a5df96ac36f6bfbe1e05e53655..fd9799f54f5cab46580b74af8550f5afbbe3291f 100644 (file)
@@ -1,2 +1,7 @@
 .gitignore
 .gitignore
+respart/RESASG.xls
+respart/entries.txt
+respart/rm-cfg.c
+k3-bootswitch/release/
+
 *.pyc
 *.pyc
index 3afaf885ab895e549a8ddb32497a976a136f8c31..2654a1f091f055bdebbd15922592666d9886ced0 100755 (executable)
@@ -54,7 +54,7 @@ const_values  = {
 def gen_rm_resasg_csv():
        output = ""
        for entry in utypes:
 def gen_rm_resasg_csv():
        output = ""
        for entry in utypes:
-               (dev, subtype, start, count) = entry
+               (dev, subtype, count, start) = entry
                output += "%s,%s,%d,%d\n" % (dev, subtype, start, count)
        return output
 
                output += "%s,%s,%d,%d\n" % (dev, subtype, start, count)
        return output
 
@@ -113,7 +113,7 @@ args = parser.parse_args()
 print(args)
 
 # Parse docuemntation and extract host_id defines
 print(args)
 
 # Parse docuemntation and extract host_id defines
-output = evalcmd('cat %s/output/%s/sec_proxy/hosts.h | grep "#define HOST_ID" | awk -F"[ ()]*" \'{print $2" " $3}\'' % (args.prefix, args.soc))
+output = evalcmd('cat %s/include/soc/%s/hosts.h | grep "#define HOST_ID" | awk -F"[ ()]*" \'{print $2" " $3}\'' % (args.prefix, args.soc))
 for line in output.split('\n'):
        if (line == ''):
                continue
 for line in output.split('\n'):
        if (line == ''):
                continue
@@ -122,7 +122,7 @@ for line in output.split('\n'):
        dict_host[host] = host_id
 
 # Parse docuemntation and extract dev_id and subtype defines
        dict_host[host] = host_id
 
 # Parse docuemntation and extract dev_id and subtype defines
-output = evalcmd('cat %s/output/%s/rm/resasg_types.rst | grep  -v "\------" | grep -A100000 "+======" | tail -n +2' % (args.prefix, args.soc))
+output = evalcmd('cat %s/docs/public/5_soc_doc/%s/resasg_types.rst | grep  -v "\------" | grep -A100000 "+======" | tail -n +2' % (args.prefix, args.soc))
 dev = dev_id = None
 for line in output.split('\n'):
        array = line.replace(' ', '').split('|')
 dev = dev_id = None
 for line in output.split('\n'):
        array = line.replace(' ', '').split('|')