]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
MIPS: BCM47XX: Slightly clean memory detection
authorRafał Miłecki <zajec5@gmail.com>
Sat, 19 Apr 2014 10:49:46 +0000 (12:49 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 30 May 2014 09:00:21 +0000 (11:00 +0200)
commit96a8123e5f965825a61a74617b8da1199646d392
tree5c4c5a54046601668f23627c733883bd05c60a08
parentd8ce75934b888df0bd73dfd9c030a2b034a04977
MIPS: BCM47XX: Slightly clean memory detection

Patch was tested on devices with 64 MiB and 256 MiB of RAM.
It documents every part nicely and drops this hacky part of code:
max = off | ((128 << 20) - 1);

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Patchwork: https://patchwork.linux-mips.org/patch/6808/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm47xx/prom.c