From 3a37d3ba98aeb13a9834704c7b6acd24c2c01bad Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 20 Aug 2024 17:11:02 +0200 Subject: [PATCH] software/libbase/hyperram: Add missing #ifdef. --- litex/soc/software/libbase/hyperram.c | 4 ++++ 1 file changed, 4 insertions(+) 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