summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2b326f)
raw | patch | inline | side by side (parent: f2b326f)
author | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Tue, 7 Apr 2020 11:40:33 +0000 (17:10 +0530) | ||
committer | Nikhil 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>
data required for the SoC RM resource assignment sheet.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
.gitignore | patch | blob | history | |
respart/RM-autogen-data.py | patch | blob | history |
diff --git a/.gitignore b/.gitignore
index 5b2bb226d25232a5df96ac36f6bfbe1e05e53655..fd9799f54f5cab46580b74af8550f5afbbe3291f 100644 (file)
--- a/.gitignore
+++ b/.gitignore
.gitignore
.gitignore
+respart/RESASG.xls
+respart/entries.txt
+respart/rm-cfg.c
+k3-bootswitch/release/
+
*.pyc
*.pyc
index 3afaf885ab895e549a8ddb32497a976a136f8c31..2654a1f091f055bdebbd15922592666d9886ced0 100755 (executable)
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
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
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('|')