Skip to content
Snippets Groups Projects
Commit 300f2199 authored by Satyajit Desai's avatar Satyajit Desai
Browse files

dcc_parser: Add offset option for stand alone parser use cases

Current DCC SRAM programming starts from an offset location. For
parsing stand alone DCC SRAM bin file the parser needs to be aware
of the start location of the configuration.

Change-Id: Ica6fef3dc6ed76851f026b248555fc16748f33b2
parent ca02b2b9
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,9 @@ def read_config(config_pt):
#word size
track_len = 4
if options.config_offset is not None:
config_pt.seek(options.config_offset, 1)
while True:
word = config_pt.read(4)
if len(word) != 4:
......@@ -223,6 +226,8 @@ if __name__ == '__main__':
help='chip version')
parser.add_option('--v2', dest='version', action="store_const", const='2',
help='DCC driver version 2')
parser.add_option('--config-offset', dest='config_offset', type=int,
help='Start offset for DCC configuration')
(options, args) = parser.parse_args()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment