From acd8ed57bb919fd8c24a55154c5844d500f7c053 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 12 May 2020 13:01:31 +0100 Subject: [PATCH] add dummy LPC interface --- src/spec/pinfunctions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/spec/pinfunctions.py b/src/spec/pinfunctions.py index cdfaab4..1cb7f12 100644 --- a/src/spec/pinfunctions.py +++ b/src/spec/pinfunctions.py @@ -47,6 +47,17 @@ def i2s(suffix, bank): []) +# XXX TODO: correct these. this is a stub for now +def lpc(suffix, bank, pincount=8): + emmcpins = ['CMD+', 'CLK+'] + inout = [] + for i in range(pincount): + pname = "D%d*" % i + emmcpins.append(pname) + inout.append(pname) + return (emmcpins, inout) + + def emmc(suffix, bank, pincount=8): emmcpins = ['CMD+', 'CLK+'] inout = [] @@ -252,6 +263,7 @@ def gpio(suffix, bank): # list functions by name here pinspec = (('IIS', i2s), + ('LPC', lpc), ('EMMC', emmc), ('MMC', sdmmc), ('MSPI', mspi), -- 2.30.2