aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2019-10-08 13:10:41 +0200
committerChristoph Muellner <christoph.muellner@theobroma-systems.com>2019-10-08 13:10:41 +0200
commit0a3eaf400de88f8f7cd12c0a7a140d9657f3e7fd (patch)
treeabb5f49d88df7e9f60259e26efb8edfa193c45ef
parentb603f1df0a912b9a397c18911946535ae421de5d (diff)
usb-control: cp2102_haikou: Disable BIOS-disable again in do_cycle_to_maskrom.
After we bring the board in to maskrom mode, we need to release the BIOS disable signal again. Otherwise we won't be able to write to the on-board eMMC. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rw-r--r--usb-control/cp2102_haikou.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/usb-control/cp2102_haikou.py b/usb-control/cp2102_haikou.py
index 4b44b3e..f05b3c1 100644
--- a/usb-control/cp2102_haikou.py
+++ b/usb-control/cp2102_haikou.py
@@ -108,6 +108,8 @@ def do_cycle_to_maskrom(dev):
set_bootmode(dev, VALUE_BIOS_DISABLE)
# Turn on board
toggle_power(dev)
+ # Disable maskrom mode again
+ set_bootmode(dev, VALUE_BIOS_NORMAL)