From 6f8d6477788b764e2338ac9443bf1ece13a16ba3 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sun, 24 Jan 2016 00:16:32 +0000
Subject: [PATCH] ramips: re-enable highmem support for MT7621 now that it's
 fixed

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48469
---
 target/linux/ramips/mt7621/config-4.3                  |  3 +++
 .../patches-4.3/0066-mt7621-enable-highmem.patch       | 10 ++++++++++
 2 files changed, 13 insertions(+)
 create mode 100644 target/linux/ramips/patches-4.3/0066-mt7621-enable-highmem.patch

diff --git a/target/linux/ramips/mt7621/config-4.3 b/target/linux/ramips/mt7621/config-4.3
index db240f075d..a70dc264d8 100644
--- a/target/linux/ramips/mt7621/config-4.3
+++ b/target/linux/ramips/mt7621/config-4.3
@@ -13,6 +13,7 @@ CONFIG_ARCH_SUPPORTS_UPROBES=y
 CONFIG_ARCH_SUSPEND_POSSIBLE=y
 CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
 CONFIG_BOARD_SCACHE=y
+CONFIG_BOUNCE=y
 CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 CONFIG_CEVT_R4K=y
 # CONFIG_CEVT_SYSTICK_QUIRK is not set
@@ -106,6 +107,7 @@ CONFIG_HAVE_OPROFILE=y
 CONFIG_HAVE_PERF_EVENTS=y
 CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
 CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
+CONFIG_HIGHMEM=y
 CONFIG_HW_HAS_PCI=y
 CONFIG_HZ_PERIODIC=y
 CONFIG_INITRAMFS_SOURCE=""
@@ -235,6 +237,7 @@ CONFIG_SYS_HAS_CPU_MIPS32_R2=y
 CONFIG_SYS_HAS_EARLY_PRINTK=y
 CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y
 CONFIG_SYS_SUPPORTS_ARBIT_HZ=y
+CONFIG_SYS_SUPPORTS_HIGHMEM=y
 CONFIG_SYS_SUPPORTS_HOTPLUG_CPU=y
 CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y
 CONFIG_SYS_SUPPORTS_MIPS16=y
diff --git a/target/linux/ramips/patches-4.3/0066-mt7621-enable-highmem.patch b/target/linux/ramips/patches-4.3/0066-mt7621-enable-highmem.patch
new file mode 100644
index 0000000000..50f32da629
--- /dev/null
+++ b/target/linux/ramips/patches-4.3/0066-mt7621-enable-highmem.patch
@@ -0,0 +1,10 @@
+--- a/arch/mips/ralink/Kconfig
++++ b/arch/mips/ralink/Kconfig
+@@ -51,6 +51,7 @@ choice
+ 		select SYS_SUPPORTS_MULTITHREADING
+ 		select SYS_SUPPORTS_SMP
+ 		select SYS_SUPPORTS_MIPS_CPS
++		select SYS_SUPPORTS_HIGHMEM
+ 		select MIPS_GIC
+ 		select COMMON_CLK
+ 		select CLKSRC_MIPS_GIC
-- 
2.30.2