From ae3b48ec3ddf3a55280b04d9bf3b456c8cd71d8a Mon Sep 17 00:00:00 2001 From: Jose Lopez Date: Mon, 24 Oct 2016 12:38:49 +0200 Subject: [PATCH] lmkconf: now the chip is powered down and back up before programming --- lmkconf/lmkconf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lmkconf/lmkconf b/lmkconf/lmkconf index 4b3214d..8a2d77b 100755 --- a/lmkconf/lmkconf +++ b/lmkconf/lmkconf @@ -16,6 +16,8 @@ infile, outfile = args.inputfile, args.outputfile with open(infile,"r") as inf, open(outfile,"w") as outf: outf.write("const struct {int reg; uint32_t val;} "+args.sname+"[] = {\n") + outf.write("{1, 0x800201C1}, //POWERDOWN\n") + outf.write("{1, 0x800001C1}, //POWERUP\n") for line in inf: tmp=line.split("\t") reg=tmp[0].partition(' ')[0][1:]