You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/ramips
Chuanhong Guo 49c563a829 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>
(cherry picked from commit 6d91ddf517)
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years ago
..
base-files ramips: fix duplicate network setup for dlink, dir-615-h1 5 years ago
dts ramips: fix ethernet MAC address of ASUS RT-AC57U 5 years ago
files-4.14/drivers ramips: ethernet: remove unused SIOCETHTOOL ioctl handling 5 years ago
image ramips: add factory image for NETGEAR R6220 5 years ago
mt76x8 ramips: enable R6120 USB power 5 years ago
mt7620 ramips: Add support for Head Weblink HDRM200 5 years ago
mt7621 ramips: mt7621: disable CONFIG_MTD_SPLIT_FIRMWARE 6 years ago
patches-4.14 ramips: mt7621: add support for memory detection 5 years ago
rt288x ramips: disable CONFIG_MTD_SPLIT_FIRMWARE 5 years ago
rt305x ramips: disable CONFIG_MTD_SPLIT_FIRMWARE 5 years ago
rt3883 ramips: rt3883: drop jimage support 5 years ago
Makefile ramips: switch to linux 4.14 6 years ago
modules.mk kernel: Fix kmod-regmap split 5 years ago