mirror of https://github.com/hak5/openwrt.git
lantiq: ltq-vmmc: Fix compilation with linux 4.4
gpio.h needs the linux/ prefix with linux 4.4. SVN-Revision: 48057lede-17.01
parent
8c80e915a0
commit
e0019b33a4
|
@ -143,7 +143,7 @@
|
||||||
-#include <asm/ifx/ifx_gptu.h>
|
-#include <asm/ifx/ifx_gptu.h>
|
||||||
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
|
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
|
||||||
+# include <lantiq.h>
|
+# include <lantiq.h>
|
||||||
+# include <irq.h>
|
+# include <linux/irq.h>
|
||||||
+# include <lantiq_timer.h>
|
+# include <lantiq_timer.h>
|
||||||
+
|
+
|
||||||
+# define ifx_gptu_timer_request lq_request_timer
|
+# define ifx_gptu_timer_request lq_request_timer
|
||||||
|
@ -432,7 +432,7 @@
|
||||||
-#include <asm/ifx/common_routines.h>
|
-#include <asm/ifx/common_routines.h>
|
||||||
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
|
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
|
||||||
+# include <lantiq.h>
|
+# include <lantiq.h>
|
||||||
+# include <irq.h>
|
+# include <linux/irq.h>
|
||||||
+# include <lantiq_timer.h>
|
+# include <lantiq_timer.h>
|
||||||
+# include <linux/dma-mapping.h>
|
+# include <linux/dma-mapping.h>
|
||||||
+
|
+
|
||||||
|
@ -513,9 +513,9 @@
|
||||||
-#include <asm/ifx_vpe.h>
|
-#include <asm/ifx_vpe.h>
|
||||||
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
|
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
|
||||||
+# include <lantiq.h>
|
+# include <lantiq.h>
|
||||||
+# include <irq.h>
|
+# include <linux/irq.h>
|
||||||
+# include <lantiq_soc.h>
|
+# include <lantiq_soc.h>
|
||||||
+# include <gpio.h>
|
+# include <linux/gpio.h>
|
||||||
+#define IFXMIPS_MPS_SRAM ((u32 *)(KSEG1 + 0x1F200000))
|
+#define IFXMIPS_MPS_SRAM ((u32 *)(KSEG1 + 0x1F200000))
|
||||||
+#define IFXMIPS_MPS_BASE_ADDR (KSEG1 + 0x1F107000)
|
+#define IFXMIPS_MPS_BASE_ADDR (KSEG1 + 0x1F107000)
|
||||||
+#define IFXMIPS_MPS_CHIPID ((u32 *)(IFXMIPS_MPS_BASE_ADDR + 0x0344))
|
+#define IFXMIPS_MPS_CHIPID ((u32 *)(IFXMIPS_MPS_BASE_ADDR + 0x0344))
|
||||||
|
|
|
@ -783,7 +783,7 @@
|
||||||
+++ b/src/mps/drv_mps_vmmc_device.h
|
+++ b/src/mps/drv_mps_vmmc_device.h
|
||||||
@@ -22,7 +22,12 @@
|
@@ -22,7 +22,12 @@
|
||||||
# include <lantiq_soc.h>
|
# include <lantiq_soc.h>
|
||||||
# include <gpio.h>
|
# include <linux/gpio.h>
|
||||||
#define IFXMIPS_MPS_SRAM ((u32 *)(KSEG1 + 0x1F200000))
|
#define IFXMIPS_MPS_SRAM ((u32 *)(KSEG1 + 0x1F200000))
|
||||||
+#if defined(SYSTEM_FALCON)
|
+#if defined(SYSTEM_FALCON)
|
||||||
+#define IFXMIPS_MPS_BASE_ADDR (KSEG1 + 0x1D004000)
|
+#define IFXMIPS_MPS_BASE_ADDR (KSEG1 + 0x1D004000)
|
||||||
|
|
Loading…
Reference in New Issue