efinix: fix efxpt:single_conn parsing

Sometimes instance can be this form:

<efxpt:single_conn ... instance="GPIOT_PN_16.lvttl1,...

This patch handle this case
This commit is contained in:
Franck Jullien 2021-12-13 14:31:31 +01:00
parent 92f5a9f0e6
commit 12e5443489
1 changed files with 4 additions and 1 deletions

View File

@ -108,7 +108,10 @@ class EfinixDbParser:
if self.device[0:2] not in ['T4', 'T8']:
conn = p.findall('efxpt:single_conn', namespaces)
for c in conn:
if c.get('instance') == inst:
i = c.get('instance')
if i == None:
continue
if (i == inst) or (inst + '.' in i):
refclk_no = 0
if c.get('index') == '3':
refclk_no = 1