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/patches-4.14
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
..
0001-MIPS-ralink-Add-rt3352-SPI_CS1-pinmux.patch ramips: add rt3352 SPI_CS1 pinmux 6 years ago
0002-MIPS-pci-rt2880-set-pci-controller-of_node.patch ramips: set rt2880 pci controller of_node 6 years ago
0003-MIPS-Fix-memory-reservation-in-bootmem_init-for-cert.patch kernel: bump 4.14 to 4.14.70 6 years ago
0004-MIPS-ralink-add-MT7621-pcie-driver.patch Revert "ramips: Move PCI driver to files directory" 6 years ago
0005-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch
0006-MIPS-ralink-add-cpu-frequency-scaling.patch
0007-MIPS-ralink-copy-the-commandline-from-the-devicetree.patch
0009-PCI-MIPS-enable-PCIe-on-MT7688.patch
0013-owrt-hack-fix-mt7688-cache-issue.patch kernel: bump 4.14 to 4.14.23 6 years ago
0015-arch-mips-do-not-select-illegal-access-driver-by-def.patch
0024-GPIO-add-named-gpio-exports.patch kernel: bump 4.14 to 4.14.118 5 years ago
0025-pinctrl-ralink-add-pinctrl-driver.patch kernel: bump 4.14 to 4.14.79 6 years ago
0026-DT-Add-documentation-for-gpio-ralink.patch ramips: use ralink,nr-gpio instead of ralink,num-gpios 6 years ago
0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch ramips: use ralink,nr-gpio instead of ralink,num-gpios 6 years ago
0028-GPIO-ralink-add-mt7621-gpio-controller.patch kernel: bump 4.14 to 4.14.79 6 years ago
0029-gpio-ralink-Add-support-for-GPIO-as-interrupt-contro.patch kernel: bump 4.14 to 4.14.86 6 years ago
0031-uvc-add-iPassion-iP2970-support.patch kernel: bump 4.14 to 4.14.108 5 years ago
0032-USB-dwc2-add-device_reset.patch kernel: bump 4.14 to 4.14.128 5 years ago
0034-NET-multi-phy-support.patch kernel: bump 4.14 to 4.14.125 (FS#2305 FS#2297) 5 years ago
0037-mtd-cfi-cmdset-0002-force-word-write.patch kernel: bump 4.14 to 4.14.147 5 years ago
0038-Revert-mtd-nand-Remove-unused-chip-write_page-hook.patch ramips: use separated mtd patch reverting write_page() removal 6 years ago
0039-mtd-add-mt7621-nand-support.patch ramips: disable badblock shifting for MT7621 NAND 5 years ago
0040-nand-hack.patch ramips: use separated mtd patch reverting write_page() removal 6 years ago
0041-DT-Add-documentation-for-spi-rt2880.patch
0042-SPI-ralink-add-Ralink-SoC-spi-driver.patch
0043-spi-add-mt7621-support.patch ramips: backport mt7621-spi from linux-next-20190329 5 years ago
0044-i2c-MIPS-adds-ralink-I2C-driver.patch
0045-i2c-add-mt7621-driver.patch
0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch kernel: bump 4.14 to 4.14.97 5 years ago
0047-DMA-ralink-add-rt2880-dma-engine.patch
0048-asoc-add-mt7620-support.patch ramips: fix wrong i2s clock unit from kHz to MHz 5 years ago
0051-serial-add-ugly-custom-baud-rate-hack.patch kernel: bump 4.14 to 4.14.125 (FS#2305 FS#2297) 5 years ago
0052-pwm-add-mediatek-support.patch
0053-mtd-spi-nor-add-w25q256-3b-mode-switch.patch kernel: bump 4.14 to 4.14.91 5 years ago
0054-mtd-spi-nor-w25q256-respect-default-mode.patch kernel: bump 4.14 to 4.14.91 5 years ago
0069-awake-rt305x-dwc2-controller.patch
0070-weak_reordering.patch kernel: bump 4.14 to 4.14.99 5 years ago
0098-disable_cm.patch
0099-pci-mt7620.patch
100-mt7621-core-detect-hack.patch
0100-prom_fixes.patch
101-mt7621-timer.patch kernel: bump 4.14 to 4.14.99 5 years ago
102-mt7621-fix-cpu-clk-add-clkdev.patch kernel: bump 4.14 to 4.14.86 6 years ago
105-mt7621-memory-detect.patch ramips: mt7621: add support for memory detection 5 years ago
110-mt7621-perfctr-fix.patch ramips: fix spurious IRQ7 events when using perf on 4.14 6 years ago
0200-linkit_bootstrap.patch
300-mt7620-export-chip-version-and-pkg.patch ramips: mt7620: export chip version and pkg 5 years ago
302-spi-nor-add-gd25q512.patch kernel: bump 4.14 to 4.14.91 5 years ago
303-spi-nor-enable-4B-opcodes-for-mx66l51235l.patch kernel: bump 4.14 to 4.14.91 5 years ago
304-spi-nor-enable-4B-opcodes-for-mx25l25635f.patch ramips: fix support for MX25L25635F flash 5 years ago
999-fix-pci-init-mt7620.patch