add DDRC into singleton

This commit is contained in:
2025-07-30 12:32:11 +02:00
parent 11b5f77bbe
commit f118f292de

View File

@@ -41,6 +41,7 @@ pub struct PsPeripherals {
pub gicc: gic::MmioGicc<'static>, pub gicc: gic::MmioGicc<'static>,
pub gicd: gic::MmioGicd<'static>, pub gicd: gic::MmioGicd<'static>,
pub l2c: l2_cache::MmioL2Cache<'static>, pub l2c: l2_cache::MmioL2Cache<'static>,
pub ddrc: ddrc::MmioDdrController<'static>,
pub uart_0: uart::MmioUart<'static>, pub uart_0: uart::MmioUart<'static>,
pub uart_1: uart::MmioUart<'static>, pub uart_1: uart::MmioUart<'static>,
pub spi_0: spi::MmioSpi<'static>, pub spi_0: spi::MmioSpi<'static>,
@@ -77,6 +78,7 @@ impl PsPeripherals {
gicc: gic::Gicc::new_mmio_fixed(), gicc: gic::Gicc::new_mmio_fixed(),
gicd: gic::Gicd::new_mmio_fixed(), gicd: gic::Gicd::new_mmio_fixed(),
l2c: l2_cache::L2Cache::new_mmio_fixed(), l2c: l2_cache::L2Cache::new_mmio_fixed(),
ddrc: ddrc::DdrController::new_mmio_fixed(),
uart_0: uart::Uart::new_mmio_fixed_0(), uart_0: uart::Uart::new_mmio_fixed_0(),
uart_1: uart::Uart::new_mmio_fixed_1(), uart_1: uart::Uart::new_mmio_fixed_1(),
gtc: gtc::Gtc::new_mmio_fixed(), gtc: gtc::Gtc::new_mmio_fixed(),