]> git.baikalelectronics.ru Git - kernel.git/commit
arch/sh: add sh7786_mm_sel() function
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 4 Dec 2017 15:09:00 +0000 (16:09 +0100)
committerRich Felker <dalias@libc.org>
Thu, 12 Apr 2018 23:47:53 +0000 (19:47 -0400)
commit6c1e7645f71562cc1d7aff6ea8be90b453a659ab
tree138743620b6021df83f0a908421562e1279d4e90
parentdd4108b3282258fcd53c0c45bcea503a7a6dce4e
arch/sh: add sh7786_mm_sel() function

The SH7786 has different physical memory layout configurations,
configurable through the MMSELR register. The configuration is
typically defined by the bootloader, so Linux generally doesn't care.

Except that depending on the configuration, some PCI MEM areas may or
may not be available. This commit adds a helper function that allows
to retrieve the current physical memory layout configuration. It will
be used in a following patch to exclude unusable PCI MEM areas during
the PCI initialization.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/include/cpu-sh4/cpu/sh7786.h