openwrt/target/linux/ramips
Chuanhong Guo 6d91ddf517 ramips: mt7621: add support for memory detection
mt7621 has the following memory map:
0x0-0x1c000000: lower 448m memory
0x1c000000-0x2000000: peripheral registers
0x20000000-0x2400000: higher 64m memory

detect_memory_region in arch/mips/kernel/setup.c only add the first
memory region and isn't suitable for 512m memory detection because
it may accidentally read the memory area for peripheral registers.

This commit adds memory detection capability for mt7621:
1. add the highmem area when 512m is detected.
2. guard memcmp from accessing peripheral registers:
     This only happens when some weird user decided to change
     kernel load address to 256m or higher address. Since this
     is a quite unusual case, we just skip 512m testing and return
     256m as memory size.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2019-07-11 22:11:21 +08:00
..
base-files ramips: Reapply sorting to board.d files 2019-07-10 17:36:29 +02:00
dts ramips: fix bogus MTK_SOC (typo) 2019-07-10 19:28:35 +02:00
files-4.14/drivers ramips: mt7620: add EPHY base mdio address changing possibility 2019-06-20 08:48:19 +02:00
image ramips: fix bogus MTK_SOC (typo) 2019-07-10 19:28:35 +02:00
mt76x8 ramips: use upstream RAW_APPENDED_DTB instead of our OWRTDTB 2019-07-08 22:00:24 +02:00
mt7620 ramips: use upstream RAW_APPENDED_DTB instead of our OWRTDTB 2019-07-08 22:00:24 +02:00
mt7621 ramips: use upstream RAW_APPENDED_DTB instead of our OWRTDTB 2019-07-08 22:00:24 +02:00
patches-4.14 ramips: mt7621: add support for memory detection 2019-07-11 22:11:21 +08:00
rt288x ramips: disable CONFIG_MTD_SPLIT_FIRMWARE 2019-01-26 21:46:33 +01:00
rt305x ramips: use upstream RAW_APPENDED_DTB instead of our OWRTDTB 2019-07-08 22:00:24 +02:00
rt3883 ramips: use upstream RAW_APPENDED_DTB instead of our OWRTDTB 2019-07-08 22:00:24 +02:00
Makefile ramips: switch to linux 4.14 2018-04-06 18:07:43 +02:00
modules.mk kernel: Fix kmod-regmap split 2019-01-27 11:07:14 +01:00