• Mathis MARION's avatar
    Support for non-generic iomap: ARM compatibility · a61fca3e
    Mathis MARION authored
    Some architectures such as ARM don't use asm-generic/iomap.h and instead
    define their own implementation for ioread32 and iowrite32.
    This can be checked using the CONFIG_GENERIC_IOMAP preprocessor.
    
    The signature used inside asm-generic/io.h uses volatile for the address
    parameter. Thus it is necessary to accomodate this change.
    
    Moreover, ARM uses macros to define ioread32be and iowrite32be, so it is
    necessary to define a function on top of the macro to allow for
    assignation.
    Note: other architectures may not use macros, or use macros for ioread32
    and iowrite32, in which case this patch may not work and has to be
    adapted.
    Signed-off-by: 's avatarGwenhael GOAVEC <gwenhael.goavec@femto-st.fr>
    Signed-off-by: 's avatarMathis MARION <mathis.marion@grenoble-inp.org>
    a61fca3e
Name
Last commit
Last update
.reuse Loading commit data...
LICENSES Loading commit data...
distribution Loading commit data...
doc Loading commit data...
hdl Loading commit data...
software Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
CHANGELOG.rst Loading commit data...
Manifest.py Loading commit data...