From: Neel Date: Sat, 21 Jul 2018 07:19:50 +0000 (+0530) Subject: fix gpio enable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acc9f56a7ff33a460aa6221cb689e31bc7eefd73;p=pinmux.git fix gpio enable --- diff --git a/src/bsv/peripheral_gen.py b/src/bsv/peripheral_gen.py index 6236649..00e67fb 100644 --- a/src/bsv/peripheral_gen.py +++ b/src/bsv/peripheral_gen.py @@ -411,8 +411,7 @@ class gpio(PBase): return "func.gpio_out[{0}]".format(pname[1:]) def pinname_outen(self, pname): - return {'sda': 'out.sda_outen', - 'scl': 'out.scl_outen'}.get(pname, '') + return "func.gpio_outen[{0}]".format(pname[1:]) def mk_pincon(self, name, count): ret = [PBase.mk_pincon(self, name, count)]