#!/usr/bin/env python
-# aardonyx file
+# see https://bugs.libre-soc.org/show_bug.cgi?id=303
+
from spec.base import PinSpec
from spec.ifaceprint import display, display_fns, check_functions
'MSPI2': 'SPI (Serial Peripheral Interface) Master 1',
'UART1': 'UART (TX/RX) 1',
'UART3': 'UART (TX/RX) 2',
+ 'LPC0': 'Low Pincount Interface 0',
}
ps = PinSpec(pinbanks, fixedpins, function_names)
ps.mspi("2", ('A', 7), 1)
ps.uart("1", ('A', 0), 1)
ps.uart("3", ('A', 2), 1)
+ ps.lpc("0", ('A', 11), 3)
#ps.mquadspi("1", ('B', 0), 0)
# using "BM:Name". Pins are removed in-order as listed from
# lists (interfaces, EINTs, PWMs) from available pins.
- ls180 = ['ULPI0/8', 'ULPI1', 'MMC', 'SD0', 'UART0',
+ ls180 = ['ULPI0/8', 'ULPI1', 'MMC', 'SD0', 'UART0', 'LPC0',
'TWI0', 'MSPI0', 'B3:SD1', ]
ls180_eint = []
ls180_pwm = ['B2:PWM_0']
'E2:SD1': '',
'MSPI1': '',
'UART0': '',
+ 'LPC0': '',
'B1:LCD/22': '18-bit RGB/TTL LCD',
'ULPI0/8': 'user-facing: internal (on Card), USB-OTG ULPI PHY',
'ULPI1': 'dual USB2 Host ULPI PHY'
# XXX TODO: correct these. this is a stub for now
-def lpc(suffix, bank, pincount=8):
- emmcpins = ['CMD+', 'CLK+']
+# https://bugs.libre-soc.org/show_bug.cgi?id=303
+def lpc(suffix, bank, pincount=4):
+ lpcpins = ['CMD+', 'CLK+']
inout = []
for i in range(pincount):
pname = "D%d*" % i
- emmcpins.append(pname)
+ lpcpins.append(pname)
inout.append(pname)
- return (emmcpins, inout)
+ return (lpcpins, inout)
def emmc(suffix, bank, pincount=8):