diff --git a/arch/arm/mach-socfpga/include/mach/sdram_config.h b/board/altera/socfpga/qts/sdram_config.h similarity index 100% rename from arch/arm/mach-socfpga/include/mach/sdram_config.h rename to board/altera/socfpga/qts/sdram_config.h diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index 5d8fed36a8..2822d1d59e 100644 --- a/drivers/ddr/altera/sdram.c +++ b/drivers/ddr/altera/sdram.c @@ -8,10 +8,15 @@ #include #include #include -#include #include #include +/* + * FIXME: This path is temporary until the SDRAM driver gets + * a proper thorough cleanup. + */ +#include "../../../board/altera/socfpga/qts/sdram_config.h" + /* define constant for 4G memory - used for SDRAM errata workaround */ #define MEMSIZE_4G (4ULL * 1024ULL * 1024ULL * 1024ULL)