flash-arty: Support hex values for address

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
pull/188/head
Benjamin Herrenschmidt 5 years ago
parent 62233eddd7
commit 3592be733e

@ -21,7 +21,7 @@ def flash(config, flash_proxy, address, data, set_qe=False):


parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument("file", help="file to write to flash") parser.add_argument("file", help="file to write to flash")
parser.add_argument("-a", "--address", help="offset in flash", type=int, default=0) parser.add_argument("-a", "--address", help="offset in flash", type=lambda x: int(x,0), default=0)
parser.add_argument("-f", "--fpga", help="a35 or a100", default="a35") parser.add_argument("-f", "--fpga", help="a35 or a100", default="a35")
args = parser.parse_args() args = parser.parse_args()



Loading…
Cancel
Save