|
50 | 50 | #include "hw/opentitan/ot_pinmux.h" |
51 | 51 | #include "hw/opentitan/ot_pwrmgr.h" |
52 | 52 | #include "hw/opentitan/ot_rom_ctrl.h" |
| 53 | +#include "hw/opentitan/ot_rstmgr.h" |
53 | 54 | #include "hw/opentitan/ot_sensor.h" |
54 | 55 | #include "hw/opentitan/ot_spi_host.h" |
55 | 56 | #include "hw/opentitan/ot_sram_ctrl.h" |
@@ -425,17 +426,25 @@ static const IbexDeviceDef ot_earlgrey_soc_devices[] = { |
425 | 426 | .memmap = MEMMAPENTRIES( |
426 | 427 | { 0x40400000u, 0x80u } |
427 | 428 | ), |
| 429 | + .gpio = IBEXGPIOCONNDEFS( |
| 430 | + OT_EARLGREY_SOC_GPIO_SYSBUS_IRQ(0, PLIC, 152) |
| 431 | + ), |
428 | 432 | .prop = IBEXDEVICEPROPDEFS( |
429 | 433 | IBEX_DEV_UINT_PROP("num-rom", 1u) |
430 | 434 | ), |
| 435 | + .link = IBEXDEVICELINKDEFS( |
| 436 | + OT_EARLGREY_SOC_DEVLINK("rstmgr", RSTMGR) |
| 437 | + ), |
431 | 438 | }, |
432 | 439 | [OT_EARLGREY_SOC_DEV_RSTMGR] = { |
433 | | - .type = TYPE_UNIMPLEMENTED_DEVICE, |
434 | | - .name = "ot-rstmgr", |
435 | | - .cfg = &ibex_unimp_configure, |
| 440 | + .type = TYPE_OT_RSTMGR, |
436 | 441 | .memmap = MEMMAPENTRIES( |
437 | 442 | { 0x40410000u, 0x80u } |
438 | 443 | ), |
| 444 | + .gpio = IBEXGPIOCONNDEFS( |
| 445 | + OT_EARLGREY_SOC_SIGNAL(OPENTITAN_RSTMGR_SW_RST, 0, PWRMGR, \ |
| 446 | + OPENTITAN_PWRMGR_SW_RST_REQ, 0) |
| 447 | + ), |
439 | 448 | }, |
440 | 449 | [OT_EARLGREY_SOC_DEV_CLKMGR] = { |
441 | 450 | .type = TYPE_OT_CLKMGR, |
@@ -480,7 +489,13 @@ static const IbexDeviceDef ot_earlgrey_soc_devices[] = { |
480 | 489 | ), |
481 | 490 | .gpio = IBEXGPIOCONNDEFS( |
482 | 491 | OT_EARLGREY_SOC_GPIO_SYSBUS_IRQ(0, PLIC, 155), |
483 | | - OT_EARLGREY_SOC_GPIO_SYSBUS_IRQ(1, PLIC, 156) |
| 492 | + OT_EARLGREY_SOC_GPIO_SYSBUS_IRQ(1, PLIC, 156), |
| 493 | + OT_EARLGREY_SOC_SIGNAL(OPENTITAN_AON_TIMER_WKUP, 0, PWRMGR, \ |
| 494 | + OPENTITAN_PWRMGR_WKUP_REQ, \ |
| 495 | + OT_PWRMGR_WAKEUP_AON_TIMER), |
| 496 | + OT_EARLGREY_SOC_SIGNAL(OPENTITAN_AON_TIMER_BITE, 0, PWRMGR, \ |
| 497 | + OPENTITAN_PWRMGR_RST_REQ, |
| 498 | + OT_PWRMGR_RST_REQ_AON_TIMER) |
484 | 499 | ), |
485 | 500 | .prop = IBEXDEVICEPROPDEFS( |
486 | 501 | IBEX_DEV_UINT_PROP("pclk", OT_EARLGREY_AON_CLK_HZ) |
|
0 commit comments