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:
parent
92f5a9f0e6
commit
12e5443489
|
@ -108,7 +108,10 @@ class EfinixDbParser:
|
||||||
if self.device[0:2] not in ['T4', 'T8']:
|
if self.device[0:2] not in ['T4', 'T8']:
|
||||||
conn = p.findall('efxpt:single_conn', namespaces)
|
conn = p.findall('efxpt:single_conn', namespaces)
|
||||||
for c in conn:
|
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
|
refclk_no = 0
|
||||||
if c.get('index') == '3':
|
if c.get('index') == '3':
|
||||||
refclk_no = 1
|
refclk_no = 1
|
||||||
|
|
Loading…
Reference in New Issue