Skip to content

Commit 728a38d

Browse files
committed
[ot] hw/riscv: ot_earlgrey: assign an identifier to each UART
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent 31b8cd2 commit 728a38d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hw/riscv/ot_earlgrey.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
353353
OT_EG_SOC_GPIO_ALERT(0, 0)
354354
),
355355
.prop = IBEXDEVICEPROPDEFS(
356+
IBEX_DEV_STRING_PROP("ot_id", "u0"),
356357
IBEX_DEV_UINT_PROP("pclk", OT_EG_PERIPHERAL_CLK_HZ)
357358
),
358359
},
@@ -376,6 +377,7 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
376377
OT_EG_SOC_GPIO_ALERT(0, 1)
377378
),
378379
.prop = IBEXDEVICEPROPDEFS(
380+
IBEX_DEV_STRING_PROP("ot_id", "u1"),
379381
IBEX_DEV_UINT_PROP("pclk", OT_EG_PERIPHERAL_CLK_HZ)
380382
),
381383
},
@@ -399,6 +401,7 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
399401
OT_EG_SOC_GPIO_ALERT(0, 2)
400402
),
401403
.prop = IBEXDEVICEPROPDEFS(
404+
IBEX_DEV_STRING_PROP("ot_id", "u2"),
402405
IBEX_DEV_UINT_PROP("pclk", OT_EG_PERIPHERAL_CLK_HZ)
403406
),
404407
},
@@ -422,6 +425,7 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
422425
OT_EG_SOC_GPIO_ALERT(0, 3)
423426
),
424427
.prop = IBEXDEVICEPROPDEFS(
428+
IBEX_DEV_STRING_PROP("ot_id", "u3"),
425429
IBEX_DEV_UINT_PROP("pclk", OT_EG_PERIPHERAL_CLK_HZ)
426430
),
427431
},

0 commit comments

Comments
 (0)