• Thomas Petazzoni's avatar
    arch/sh: add sh7786_mm_sel() function · bc05aa6e
    Thomas Petazzoni authored
    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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
    Signed-off-by: default avatarRich Felker <dalias@libc.org>
    bc05aa6e
sh7786.h 3.71 KB