*/
#include <common.h>
-#include <linux/err.h>
+#include <linux/errno.h>
#include <linux/io.h>
#include <linux/sizes.h>
}
/* is sparse mem? */
- if (bd->dram_ch[0].base + bd->dram_ch[0].size < bd->dram_ch[1].base)
+ if (bd->flags & UNIPHIER_BD_DRAM_SPARSE)
val |= SG_MEMCONF_SPARSEMEM;
if (!have_ch2)