diff --git a/litex/soc/software/libbase/hyperram.c b/litex/soc/software/libbase/hyperram.c index da0cd5242..dc8a3e09c 100644 --- a/litex/soc/software/libbase/hyperram.c +++ b/litex/soc/software/libbase/hyperram.c @@ -7,6 +7,8 @@ #include +#ifdef CSR_HYPERRAM_BASE + static void hyperram_write_reg(uint16_t reg_addr, uint16_t data) { /* Write data to the register */ hyperram_reg_wdata_write(data); @@ -87,3 +89,5 @@ void hyperram_init(void) { hyperram_configure_latency(); printf("\n"); } + +#endif \ No newline at end of file