]> git.sur5r.net Git - u-boot/blobdiff - drivers/spi/mxs_spi.c
dm: core: Add a function to decode a memory region
[u-boot] / drivers / spi / mxs_spi.c
index 2b9f395a97821568dc12c5e28feaaf42b42ffd50..006fe8281c5bd1a691b39a2ad0adde1e89a9757a 100644 (file)
@@ -1,24 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Freescale i.MX28 SPI driver
  *
  * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
  * on behalf of DENX Software Engineering GmbH
  *
- * SPDX-License-Identifier:    GPL-2.0+
- *
  * NOTE: This driver only supports the SPI-controller chipselects,
  *       GPIO driven chipselects are not supported.
  */
 
 #include <common.h>
 #include <malloc.h>
+#include <memalign.h>
 #include <spi.h>
-#include <asm/errno.h>
+#include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
-#include <asm/imx-common/dma.h>
+#include <asm/mach-imx/dma.h>
 
 #define        MXS_SPI_MAX_TIMEOUT     1000000
 #define        MXS_SPI_PORT_OFFSET     0x2000